๐ Day 3 of DevOps Mastery: Unraveling the Basics of Linux Commands ๐ง
Table of contents
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
ormore 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, andcat 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
andcat 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/