To view what's written in a file.
\> cat file_nameTo change the access permissions of files.
\> chmod 777 folder_nameTo check which commands you have run till now.
\> historyTo remove a directory/ Folder.
\> rm -rf foldername\> rmdir folder_name
To create a fruits.txt file and to view the content.
\> touch file_name\> cat file_name
Add content in devops.txt (One in each line) - Apple, Mango, Banana, Cherry, Kiwi, Orange, Guava.
\>made a txt file by the name of devopsTo Show only top three fruits from the file.
\> head -3 devops.txtTo Show only bottom three fruits from the file.
\> tail -3 devops.txtTo create another file Colors.txt and to view the content.
\> vi colors.txt
\> cat colors.txtAdd content in Colors.txt (One in each line) - Red, Pink, White, Black, Blue, Orange, Purple, Grey.
To find the difference between fruits.txt and Colors.txt file.
\> diff colors.txt fruits.txt
Thank you for reading my Blog. I hope you have learnt something from it! If you find this blog helpful, please like, share, and follow me for more interesting posts like this in the future.