Let's Hands on the Linux for the Devops
Table of contents
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.
To view what's written in a file.
cat filename
To change the access permissions of files.
Chmod 700 filename or you can give permission according to your need.
To check which commands you have run till now.
Simply, it's history command
To remove a directory/ Folder.
command -> rmdir for the empty directory and rm -r for the directory which has some content
To create a fruits.txt file and to view the content.
vim fruits.txt
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
To Show only the top three fruits from the file
head -n 3 devops.txt
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.