Linux Basic Commands & Tasks (p1)

By in Computer Science on martie 14, 2017
Part 4 of 4 in the series: Linux Admin

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

Lasă un răspuns

Adresa ta de email nu va fi publicată. Câmpurile obligatorii sunt marcate cu *