Print

Files Manipulation Commands

lsdisplays the files and subdirectories in the current working directory.
pwddisplays the current directory. Normally, a user will be placed in his home directory after logging-in.
mkdir <dir name>makes the subdirectory called <dir name> under the current directory.
rmdir <dir name>removes the subdirectory called <dir name> under the current directory.
cd <dir name>changes the current directory to another directory.
cat <filename>Can be used to display the content of a file.
cp <file1> <file2>copies the content of the file <file1> to the file <file2>.
mv <file1> <file2>renames the file <file1> with the name <file2>.
rm <file>removes or deletes the file <file>.

 

Other Useful Commands

who –displays the login information of all the users who currently log in.
write <user> –interactively writes messages between you and the user <user>.
mail –send mail to other users, e.g.

$mail c01 c02 < test (file “test” will be mailed to c01, c02)

$mail c01

This will require you to enter the mail body. To finish typing,   press <ctrl> + <d>.

man <command> –displays the online help manual of the command <command>. E.g. $man ls
ps –displays the process status