Skip to main content

Command Palette

Search for a command to run...

Day 03 - #90daysofdevops - Linux Basic Commands

Published
•1 min read•View as Markdown
Day 03 - #90daysofdevops - Linux Basic Commands
  1. To view what's written in a file.
    \> cat file_name

  2. To change the access permissions of files.
    \> chmod 777 folder_name

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

  4. To remove a directory/ Folder.
    \> rm -rf foldername

    \> rmdir folder_name

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

    \> cat file_name

  6. 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

  7. To Show only top three fruits from the file.
    \> head -3 devops.txt

  8. To Show only bottom three fruits from the file.
    \> tail -3 devops.txt

  9. To create another file Colors.txt and to view the content.
    \> vi colors.txt
    \> cat colors.txt

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

  11. 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.

More from this blog

Untitled Publication

22 posts