Unix Commands
A list of commands you can type at the Unix command line
Vi Command Reference
|
Command
|
Function
|
Example
|
| cd |
change directory |
cd mydirectory |
| pwd |
display the current directory you are in |
pwd |
| ls |
list the contents of a directory |
ls |
| mv |
change a filename |
mv main.c main.cc |
| cp |
copy a file |
cp myfile.txt yourfile.txt |
| rm |
remove (delete) a file |
rm badfile.c |
| mkdir |
create a new directory |
mkdir programs |
| rmdir |
remove (delete) a directory |
rmdir programs |
| clear |
clear the screen |
clear |
