Skip to content
- Clear screen: $clear
- Show current date and time: $date
- To print current working directory: $pwd
- To list files and directory: $ls
- To make a new directory: $mkdir directory_name
- To navigate to directory directory_name: $cd directory_name
- To create a new file(not a directory) called README.txt: $touch README.txt
- To copy a file from directory d1 to directory d2: $cp /home/d1/README.txt /home/d2/
- To move a file from directory d1 to directory d2: $mv /home/d1/README.txt /home/d2/
- To search an input in a file say README.txt: $grep search_term README.txt
- To list file with detailed information: $ls -l
- To list all files in a directory including filename starting with .(dot): $ls -a
- To remove a file: $rm filename
- To change into user’s directory: $cd ~userid
Like this:
Like Loading...