Day 03 - #90daysofdevops - Linux Basic Commands

To view what's written in a file.
\> cat file_name
To change the access permissions of files.
\> chmod 777 folder_name
To check which commands you have run till now.
\> history
To 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 devops
To Show only top three fruits from the file.
\> head -3 devops.txt
To Show only bottom three fruits from the file.
\> tail -3 devops.txt
To create another file Colors.txt and to view the content.
\> vi colors.txt
\> cat colors.txt
Add 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.


