PC.net
HomeHome : Resources : Unix Commands
ShareShare

Unix Commands

The following commands can be typed in a Unix terminal command-line interface.

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

Resources Home

space