






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







Commands Description < (^) Direct input from a file to a command e.g. wc < input.txt
(^) Direct output from a command to a file e.g. ls > output.txt
(^) Append output from a command to a file e.g. date >> output.txt | (^) Redirect (pipe) the standard output of one command to the standard input of another e.g. echo hello world | tr โa-zโ โA-Zโ
./ (^) Execute a script in the current directory e.g. ./myscript.sh .. Parent directory e.g. cd ..
e.g. df โ m diff Compare two files, line by line and show the differences e.g. diff file1 file diff3 (^) Compare three files, line by line and show the differences e.g. diff3 file1 file2 file du (^) Display disk usage of directories or files
less (^) Display content, page by page Use Page Down and Page Up keys to move Hit the Q key to return to a prompt e.g. less longfile.txt ls (^) List the contents of the current directory Options: Options Description
rmdir (^) Remove an empty directory โ use the rm command to delete non-empty directories scp (^) Securely copy files between two machines โ encrypting transmission and requesting passwords where required sort (^) Display lines of text sorted alphabetically ssh (^) Secure shell login to a remote machine where you already have an account tail (^) Output the last ten lines of a file
Which (^) Display the source file location of a program whoami (^) Display the number of the current effective user zip (^) Create a compressed archive in zip format