Unix Commands

Unix Commands

The following commands can be typed within in a Unix terminal.
CommandFunctionExample(s)
cdChange directorycd mydirectory
pwdDisplay the current directorypwd
lsList the contents of a directoryls
ls documents
mvChange a filenamemv main.c main.cc
cpCopy a filecp myfile.txt yourfile.txt
rmRemove (delete) a filerm badfile.c
mkdirCreate a new directorymkdir programs
rmdirRemove (delete) a directoryrmdir programs
clearClear the screenclear
Control+CForce the current process to quitControl+C (^C)
exitQuit the current terminal sessionquit

No comments: