๐Ÿš€ Day 3 of DevOps Mastery: Unraveling the Basics of Linux Commands ๐Ÿง

๐Ÿš€ Day 3 of DevOps Mastery: Unraveling the Basics of Linux Commands ๐Ÿง

ยท

2 min read

Welcome back, fellow DevOps enthusiasts! Today, we're sharpening our Linux prowess by tackling essential commands that are the bread and butter of any DevOps professional's toolkit. ๐Ÿ› ๏ธ

What's Today's Mission? ๐ŸŽฏ

We're going to explore commands that allow us to interact with files, view command histories, manage directories, and compare content. Ready? Let's dive in!

Peeking into Files ๐Ÿ”

  • To view a file's content: cat filename.txt is your go-to command.

  • Want to check a file but it's too long? Use less filename.txt or more filename.txt to scroll through the content.

Permission Changing Ceremony ๐Ÿ”

  • Modifying access permissions: If you're looking to change permissions, chmod is your command. Remember, it's about who gets to read (r), write (w), or execute (x).

Historic Commands Chronicles ๐Ÿ“œ

  • To recall your command history: Simply type history and watch your command journey unfold.

Directory Disappearance Act ๐Ÿ—‘๏ธ

  • Removing directories: rmdir directoryName will make it vanish (if it's empty). For a non-empty directory, rm -r directoryName is your magic spell.

The Tale of the Fruits.txt ๐Ÿ“

  • Creating and viewing a file: touch fruits.txt creates it, and cat fruits.txt lets you peek inside.

  • Enlisting fruits: echo -e "Apple\nMango\nBanana\nCherry\nKiwi\nOrange\nGuava" >> fruits.txt will fill your file with fruity goodness.

The Great Fruit Reveal ๐Ÿฅ

  • Top three fruits: head -n 3 fruits.txt will showcase the fruit podium finishers.

  • Bottom three fruits: tail -n 3 fruits.txt reveals who's wrapping up the list.

Colors.txt: A Rainbow Creation ๐ŸŒˆ

  • Crafting Colors.txt: touch Colors.txt and cat Colors.txt to create and view your colorful creation.

  • Coloring the file: echo -e "Red\nPink\nWhite\nBlack\nBlue\nOrange\nPurple\nGrey" >> Colors.txt adds a splash of color to your file.

A Comparative Study: Fruits vs. Colors ๐ŸŠ vs. ๐ŸŽจ

  • Spot the differences: diff fruits.txt Colors.txt will highlight what sets these files apart.

In Conclusion ๐Ÿ

Mastering these commands is a stepping stone to becoming a Linux command-line wizard. Keep practicing, and soon you'll be casting these commands with the ease of a seasoned sorcerer!

Stay tuned for more Linux command-line adventures as we continue our #90DaysOfDevOps journey! ๐ŸŒŸ

Until next time, may the source be with you! ๐Ÿ––

#DevOps #LinuxCommands #Day3DevOpsChallenge #TechSkills

Thank you for reading this Blog. Hope you learned something new today! If you found this blog helpful, please like, share, and follow me for more blog posts like this in the future.

You can connect with me at: https://www.linkedin.com/in/davendersingh/

ย