Essential Linux Commands
Greetings, fellow tech explorers! ๐ Welcome to Day 3 of the #90DaysOfDevOpsChallenge. Today, we're delving into some fundamental Linux commands that every aspiring Linux enthusiast should have in their toolkit.
Hey, before you go through this blog, if you haven't cleared the understanding of Linux permissions, I would highly suggest checking out my previous blog on the topic. It's titled 'Linux: File Permissions' and provides a comprehensive guide to mastering Linux file permissions.
1. View Contents of a File:
cat filename
2. Change Access Permissions:
chmod options filename
3. Check Command History:
history
4. Remove a Directory:
rmdir directoryname
5. Create and View a File:
touch fruits.txt
cat fruits.txt
6. Add Content to devops.txt:
echo -e "Apple\nMango\nBanana\nCherry\nKiwi\nOrange\nGuava" > devops.txt
7. Show Top Three Fruits:
head -n 3 devops.txt
8. Show Bottom Three Fruits:
tail -n 3 devops.txt
9. Create and View Another File:
touch Colors.txt
cat Colors.txt
10. Add Content to Colors.txt:
echo -e "Red\nPink\nWhite\nBlack\nBlue\nOrange\nPurple\nGrey" > Colors.txt
11. Find the Difference:
diff fruits.txt Colors.txt
Embark on these Linux commands and witness the magic unfold! Stay tuned for more insights into the world of DevOps. Happy coding! ๐๐ป
Subscribe to my newsletter
Read articles from Tanishq Shah directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
Tanishq Shah
Tanishq Shah
๐ Aspiring BCA Student and DevOps Enthusiast Hello there! ๐ I'm Tanishq, a dedicated Bachelor of Computer Applications (BCA) student with a passion for mastering the intricacies of DevOps. Eager to leverage technology to streamline development processes and drive innovation.