Linux Basics for Webserver

From 24PinTech Wiki
Revision as of 15:09, 14 April 2022 by Lchristopherson (talk | contribs)
Jump to navigation Jump to search


About

To use the webserver efficiently you will need some basic knowledge of how to navigate through, and operate Linux Ubuntu. Most of the tasks you will perform on our Nginx server will be miniscule and only require knowledge of navigating, and text editing with Vim and Nano. This page on the wiki will guide you through all of the basic commands you will need to know.

Commands

sudo

Sudo is something used before you execute an administrator level command, it stands for super user do. This will require the password to the "root"/"administrator" account.

ls

The command "ls" is used to list all non-hidden files in a directory. This command can be used on its own to list the current working directory, or it can be used with a directory listed after it to list said directory. ex. ls /etc/nginx/sites-available

-l

The "ls -l" option displays the contents in long listed format which includes read and write permissions, space used, etc.

cd

The command cd is used to change the working directory, therefore the command stands for change directory. ex. cd /etc/nginx/sites-available

nano

Nano is like a basic text editor for Linux, nano is often related to notepad from Windows due to its basic nature. See Vim/Nano

vim

man

ifconfig

netstat

apt