Basic Unix Commands

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 -aux 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
date displays the server date and time
whoami 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
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

(click here to go back to the top)