Linux Basic Commands & Tasks (p1)
From Eli the Computer Guy:
Basic tasks required in order to maintain a Linux server.
Prerequisites: Installing Linux / Introduction to Linux
Basic Commands:
Sudo is used before a command. It acts like „run as administrator” in Windows
Man pages are reference pages for commands and programs
– Example of usage: man ping
– q quits man pages
tasksel command installs numerous programs at one time to create a server (LAMP or such)
– Example: sudo tasksel
Apt-get Installs, Removes or Updates Software
– Install: sudo apt-get install xxx
– Uninstall: sudo apt-get remove xxx
– Update: Sudo apt-get upgrade
Restart Services Example:
sudo /etc/init.d/xxx (restart start stop)
Top is like „Task Manager” in Windows
– Example: sudo top
– K to kill a process
– H for help
Basic navigation
To change to another directory use the cd command
– Example: cd /etc/var/www (changes to web root folder)
Linux is literal = Capitalization matters !!! Abc and abc are not the same thing!
To Logout just use the exit command