Skip to main content

Command Palette

Search for a command to run...

Linux commands I use as a Cloud and DevOps Engineer

Top 7 Linux commands I use as a Cloud and DevOps Engineer

Published
โ€ข2 min read
Linux commands I use as a Cloud and DevOps Engineer
R

I am a Developer Evangelist at Twilio, co-author of Learn to Cloud, co-host of Random Cloud Chats podcast, AWS Community Builder, and YouTuber. Passionate about helping people get into cloud and sharing my learnings in cloud, DevOps and now DevRel.

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) image.png image.png

๐—ฐ๐—ฑ command

it refers to โ€œchange directoryโ€ meaning it switches to the directory you want. image.png

๐—ฐ๐—ต๐—บ๐—ผ๐—ฑ 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)

image.png

๐—ต๐˜๐—ผ๐—ฝ 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. image.png

๐—ฐ๐—ฎ๐˜ 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. image.png

๐˜๐—ฎ๐—ถ๐—น 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 image.png

๐—ด๐—ฟ๐—ฒ๐—ฝ 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. image.png

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!

M

Great stuff buddy! Thanks for sharing this.

1