Linux commands I use as a Cloud and DevOps Engineer
Top 7 Linux commands I use as a Cloud and DevOps Engineer
Hey Friends, as we know that I am a huge advocate of Linux and I think it is important aspect if you are entering Cloud Computing or DevOps. I wanted to reflect back on some commonly used linux commands while my time as a Cloud and DevOps Engineer.
Here are the top 7 commands:
๐น๐ command
ls
is probably the most typed command in the terminal.
it lists the content of a directory (current directory by default)
๐ฐ๐ฑ command
it refers to โchange directoryโ meaning it switches to the directory you want.
๐ฐ๐ต๐บ๐ผ๐ฑ command
It let's you change the permission of the file.
It has a lot of options, the most I used was ๐ค๐ฉ๐ฎ๐ฐ๐ฅ +๐น ๐ง๐ช๐ญ๐ฆ.๐น
which added the execute flag.
Basic permissions:
- r (read)
- w (write)
- x (execute)
๐ต๐๐ผ๐ฝ command
interactive process viewer that lets you manage your machineโs resources directly from the terminal. note, it's not installed by default certain times.
๐ฐ๐ฎ๐ command
Stands for concatenate, lets you create, view, and concatenate files directly from the terminal. I mostly used it to preview a file without opening text editor.
๐๐ฎ๐ถ๐น command
it's pretty similar to cat, but only print last 10 lines by default, but it can be changed by adding -n.
You can also have a live tail of log file running, that's what I used it for the most. It can be done by adding -f
to the command - tail -f filename
๐ด๐ฟ๐ฒ๐ฝ command
I think grep is really powerful, when working with text files. It searches for lines that match a regular expression. This really helped navigating large log files.
So these are the commands that I feel I used the most on daily basis.
If you are interested in learning Cloud and DevOps, checkout Learn To Cloud. Also, sign up for my newsletter to stay up to date!