Mastering Essential Linux Commands for DevOps | Day 3 of 90 Days of DevOps Journey πŸš€πŸ’»

Ajit FawadeAjit Fawade
2 min read

Introduction

Welcome back to my DevOps learning journey! Today, we're diving deeper into essential Linux commands that will skyrocket our efficiency and automation skills, particularly in file operations. These commands are fundamental to DevOps success, enabling us to streamline workflows and enhance productivity. Join me as we explore these powerful Linux commands and unlock their potential in file management!

View File Contents πŸ“„

The cat command displays the contents of a file, allowing us to see the text or data stored within.

Change Access Permissions πŸ”’

The chmod command modifies the access permissions of files, controlling who can read, write, or execute them.

Check Command History ⏰

The history command shows a list of previously executed commands, giving us a recap of our command-line journey.

Remove a Directory/Folder πŸ—‘οΈ

The rmdir command deletes a directory or folder, allowing us to remove unnecessary file structures.

Create and View File Content πŸ“

The touch command creates a file and the cat command displays its contents, enabling efficient file creation and viewing.

Add Content to "devops.txt" πŸ“

The echo command adds content to the devops.txt file, allowing us to append data line by line.

Show Top Three Fruits from the File πŸ”

Description: The head command displays the top three fruits from the "devops.txt" file, helping us extract specific lines from the file.

Show Bottom Three Fruits from the FileπŸ”»

Description: The tail command reveals the bottom three fruits from the "devops.txt" file, extracting the desired lines from the file's end.

Create and View Content in "Colors.txt" πŸ“‚

Similar to "fruits.txt," the touch command creates a "Colors.txt" file, and the cat command displays its contents, facilitating efficient file creation and viewing.

  • touch Colors.txt

  • cat Colors.txt

  1. Add Content to "Colors.txt" πŸ“‚

    The echo command adds various colors to the "Colors.txt" file, allowing us to append data line by line.

    echo -e "Red\nPink\nWhite\nBlack\nBlue\nOrange\nPurple\nGrey" > Colors.txt

  2. Find Differences Between "fruits.txt" and "Colors.txt" Files πŸ”„

    The diff command compares the contents of the "fruits.txt" and "Colors.txt" files, highlighting any differences between the two.

Thats it!

Join me on this exciting DevOps journey as we master essential Linux commands for efficient file operations! Stay tuned for daily updates, practical insights, and valuable tips to enhance your DevOps skills.

Remember to like, comment, and share this post if you find it helpful. Let's inspire and support each other on this incredible 90 Days of DevOps adventure!

#DevOpsJourney #LinuxCommands #Efficiency #Automation #TechSkills #LearningCommunity

19
Subscribe to my newsletter

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

Written by

Ajit Fawade
Ajit Fawade

πŸ‘©β€πŸ’» As a seasoned software engineer with 7+ years of experience, my expertise includes: 🌐 Developing web applications using Javascript (frontend and backend) πŸ’Ό Working across diverse industries like construction, finance, marketing, and entrepreneurship πŸŽ“ Holding a postgraduate degree in Master of Computer Applications from the University of Pune πŸ”§ My technical prowess lies in: βš›οΈ Leading Javascript frameworks: React, Node.js, and Express.js πŸš€ Delivering robust and scalable web applications with the best software engineering practices 🌱 Excitingly, I've started my DevOps learning journey with #90DaysOfDevOps to enhance my skills in this area. 🧠 Beyond technical skills, I offer: πŸ’‘ Exceptional problem-solving abilities and a strong aptitude for learning new technologies 🀝 A collaborative mindset, making me a valuable team player in diverse environments πŸš€ My passion is in delivering high-quality software solutions that solve real-world problems. If you're seeking a skilled and experienced software engineer for top-notch web applications, let's connect and explore potential opportunities together! 🀝