Day3 of #90daysofdevops | Linux commands

ยท

1 min read

  1. To view what's written in a file. ls (list)

  2. To change the access permissions of files.

    Reference - pluralsight.com/blog/it-ops/linux-file-perm..

  3. To check which commands you have run till now. history

  4. To remove a directory/ Folder. rmdir <directory name>

  5. To create a fruits.txt file and to view the content. touch fruits.txt

  6. Add content in fruits.txt (One in each line) - Apple, Mango, Banana, Cherry, Kiwi, Orange, Guava. vim fruits.txt

  7. To Show only top three fruits from the file. head -n <file name>

  8. To Show only bottom three fruits from the file. tail -n <file name>

  9. To create another file Colors.txt and to view the content. touch colors.txt

  10. Add content in Colors.txt (One in each line) - Red, Pink, White, Black, Blue, Orange, Purple, Grey. vim colors.txt

  11. To find the difference between fruits.txt and Colors.txt file.
    diff fruits.txt colors.txt

Thank you.!!!

ย