Day 3 : Basic Linux Commands with a Twist

Naushad KhanNaushad Khan
2 min read

Day 3 of #90DaysOfDevOps Challenge: Basic Linux Commands with a Twist

Hey everyone! For Day 3 of my #90DaysOfDevOps challenge, I learned some more Linux commands with fun tasks to practice. Here’s what I did today:

1. View the content of a file with line numbers

learned how to see the content of a file and add line numbers to it:

2. Change file permissions

practiced setting file permissions so that only the owner can read, write, and run the file:

3. Check my last 10 commands

looked at the last 10 commands I had used:

4. Remove a directory and all its contents

also practiced removing an entire directory:

5. Create a file and add City to it

created a file called City.txt and added a list of fruits:

6. Append a City to the list

then added "Shivaji Place" to the end of the file:

7. Show the first three City in reverse order

learned to display the first three Place, but in reverse:

8. Sort the last three City alphabetically

displayed the last three City and sorted them alphabetically:

9. Create a file with colors

created a file called Colors.txt and added some colors:

10. Prepend a color to the file

added "Yellow" to the beginning of the colors list:

11. Find common lines between two files

found the lines that were the same in both City.txt and Colors.txt:

12. Count lines, words, and characters

Lastly, I counted the number of lines, words, and characters in both files:

That’s it for Day 3! These Linux tasks were really fun and helped me get more comfortable with the command line. Let’s keep the learning going!

#Day3 #DevOpsJourney #LinuxCommands #LearningLinux #Automation #90DaysChallenge

1
Subscribe to my newsletter

Read articles from Naushad Khan directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Naushad Khan
Naushad Khan

DevOps engineer with a passion for automation, CI/CD, and cloud platforms like AWS. I bridge dev and ops, optimizing workflows and sharing insights through technical blogs. Let’s automate the future! 🌐⚙️