Skip to main content

Command Palette

Search for a command to run...

Let's Hands on the Linux for the Devops

Published
1 min read
U

Hello, lovely people! This is Utkarsh, and I am passionate about DevOps. I have embarked on a journey to share my experience with all of you through my beginner-friendly blog.

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.