PC.netPC.net

Unix Commands

The following commands can be typed within in a Unix terminal.

Command Function Example(s)
cd Change directory cd mydirectory
pwd Display the current directory pwd
ls List the contents of a directory ls
ls documents
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
Control+C Force the current process to quit Control+C (^C)
exit Quit the current terminal session quit

All Command Lists

Resources Home

space