| passwd |
allows you to change your password |
| ls |
lists the files in your directory |
| ls -la |
lists all files in your directory and displays their permissions |
| cd <dir> |
change directory, if you type cd by itself it will take you to your home directory. |
| cd .. |
takes you up one level |
| who |
shows you a list of people who are on the server |
| ps |
displays a list of processes you are running |
| ps -ux |
displays the processes you are running along with information about each process. Such as it's PID (Process ID Number) |
| kill -9 -1 |
kills all your processes (programs) that you have running |
| kill -9 <PID> |
replace <PID> with the ID of the program that you want to stop |
| uptime |
displays how long the server has been up and the loads of the server |
| pico |
a text editor where you can edit files |
| vi |
another text edit in UNIX, more complex |
| pine |
a nice simple email program to read and send mail |
| mail |
another email program |
| rm <file> |
allows you to remove a file |
| rm -rf <dir> |
allows you to remove a directory without prompting for confirmation |
| mkdir <dirname> |
allows you to create a directory |
| cp <file1> <file2> |
copy a file to another file |
| mv <file1> <file2> |
move or rename a file |
| pwd |
shows your current directory |
| quota -v |
displays how much hard disk space you are using |
| du -sm /directory |
gets the size of all the files in a directory in megabytes |
| echo -n "" > file |
empties a file. Good for clearing log files |
| date |
displays the server date and time |
| who am i |
displays what username you are logged on as and from what hostname |
| w |
displays a list of people who are on the server, as well as the server uptime and load averages |
| cat <file> |
will print out the content of a file on the terminal screen |
| tail |
display the last 5 lines of a file |
| head |
displays the first 5 lines of a file |
| grep |
will search files for a certain line |
| wc |
displays word, line, and byte count of a file |
| wc -l |
displays the number of lines in a file |
| sort |
sorts text files by lines |
| uniq <file1> <file2> |
reads a file and writes a copy of each unique input line to the standard output |
| chmod |
allows you to change the permissions of a file |
| chmod +x |
allows you to make a file executable |
| su |
log in to super user ( root ) |
| whereis |
search for a file |
| locate |
file files |
| gunzip |
allows you to extract a .gz file |
| tar -xf |
allows you to extract a .tar file |
| tar cpf something.tar <dir> |
create a new tar file |
| gzip -9 something.tar |
compress a file with maximum compression |