Ubuntu 10.04
Basic Linux Tasks:
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
The tasksel command installs numerous programs at one time to create a server (L
AMP 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!!!
Final Thoughts
To Logout just use the exit command
Resources
Vim For Editing Files:
Introduction
No .txt -- no file association
Starting VIM
Sudo vim XXX (opens a file, or creates file)
Sudo -- sometimes you need, sometimes not... if you use it it will always work..
.
To change ownership of a file (Sometimes needed to edit .ini and configuration f
iles)- Sudo chown user file
Editing and Navigating
a = insert, esc = exit insert
:/ = find (use wildcards)
:/? = Find backward
n = next
Exiting and Saving
:q = quit
:q! = quit no save
:wq = save and quit
:e = open file
:w = save as
Final Thoughts...
Very complicated... Lots of options... these are good enough to start with....
Resources
Navigation:
Changing Directories
CD
ls --l or ls -m
Searching = sudo find -iname XXX (You can use Wild Cards)
-iname arguement is to make the search case insensitive