Let's Hands on the Linux for the Devops

Table of contents

No heading

No headings in the article.

Now in this article, we are going to learn the commands that are going to be daily used for the DevOps journey.

  1. To view what's written in a file.

    cat filename

  2. To change the access permissions of files.

    Chmod 700 filename or you can give permission according to your need.

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

    Simply, it's history command

  4. To remove a directory/ Folder.

    command -> rmdir for the empty directory and rm -r for the directory which has some content

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

    vim fruits.txt

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

    commands: -> vim devops.txt then press i for insert mode and write it

  7. To Show only the top three fruits from the file

    head -n 3 devops.txt

  8. Show only the bottom three fruits from the file.

    tail -n 3 devops.txt or sort devops.txt | tail -n 3

for more subscribe it and join it the journey of 90 days of DevOps. if you have any doubt feel free to ask.