Day3 of #90daysofdevops | Linux commands
To view what's written in a file. ls (list)
To change the access permissions of files.
Reference - pluralsight.com/blog/it-ops/linux-file-perm..
To check which commands you have run till now. history
To remove a directory/ Folder. rmdir <directory name>
To create a fruits.txt file and to view the content. touch fruits.txt
Add content in fruits.txt (One in each line) - Apple, Mango, Banana, Cherry, Kiwi, Orange, Guava. vim fruits.txt
To Show only top three fruits from the file. head -n <file name>
To Show only bottom three fruits from the file. tail -n <file name>
To create another file Colors.txt and to view the content. touch colors.txt
Add content in Colors.txt (One in each line) - Red, Pink, White, Black, Blue, Orange, Purple, Grey. vim colors.txt
To find the difference between fruits.txt and Colors.txt file.
diff fruits.txt colors.txt
Thank you.!!!