๐ Getting Started with Basic Linux Commands - Day 3 Task
Table of contents
Introduction
Welcome to Day 3 of our Linux journey! Today, we'll dive into some fundamental Linux commands that will empower you to navigate, manage files, and gain insights into your system effortlessly. Whether you're a tech enthusiast or just starting, these commands will become your trusty companions in the Linux world. Let's embark on this exciting adventure together! ๐๐ป
1. Viewing File Contents:
๐ To peek into the secrets of a file, use the cat
command. For instance, cat filename.txt
will display the entire content of the file "filename.txt" in your terminal. Explore your files with ease! ๐ต๏ธโโ๏ธ
2. Changing Access Permissions:
๐ Empower yourself with control over files using the chmod
command. For example, chmod 755 file.txt
grants read, write, and execute permissions to the owner, and read and execute permissions to the group and others. Take charge of your data! ๐ช
3. Checking Command History:
๐ The history
command lets you view a list of commands you've recently run, a helpful tool for tracking your actions and learning from your past steps. Reflect on your Linux journey! ๐ค
4. Removing a Directory/Folder:
๐๏ธ Ready to tidy up your workspace? The rmdir
command removes an empty directory, while rm -r directory
will obliterate a directory and its contents, so be cautious! Clean up clutter with confidence! ๐งน
5. Creating and Viewing File Content:
๐ To create a new file "fruits.txt" and immediately glimpse its insides, type echo -e "Apple\nMango\nBanana\nCherry\nKiwi\nOrange\nGuava" > fruits.txt
. Write and explore like a pro! โ๏ธ๐
6. Showing Top and Bottom Fruits:
๐๐ Dive into the juicy details using head
and tail
commands. head -n 3 fruits.txt
displays the top three fruits, and tail -n 3 fruits.txt
showcases the bottom three. Savour the essence of your files! ๐๐
7. Creating and Viewing Another File:
๐จ Let's create the "Colors.txt" file and fill it with captivating hues using echo -e "Red\nPink\nWhite\nBlack\nBlue\nOrange\nPurple\nGrey" > Colors.txt
. Paint your files with beautiful colours! ๐จ๐
8. Finding the Difference Between Files:
๐ต๏ธโโ๏ธ๐ Curious to spot dissimilarities? Utilize the diff
command, like diff fruits.txt Colors.txt
, to reveal the differences between "fruits.txt" and "Colors.txt." Uncover the uniqueness of your files! ๐งฉ๐
Conclusion
Congratulations on conquering Day 3's Linux tasks! You've learned valuable commands to view, manage, and compare files. Embrace the wonders of Linux, and keep exploring the vast possibilities it offers. With these powerful commands in your arsenal, you're well on your way to becoming a Linux pro! Stay tuned for more exciting Linux adventures ahead! Let's continue learning together and master the art of Linux! ๐ง๐ป #LinuxCommands #TechBeginner #LinuxJourney #TechLearning
Happy Learning!!!
Reference
To develop deeper into the world of DevOps I highly recommend following Shubham Londhe on TrainWithShubham and Bhupinder Rajput on Technical Guftgu.
Subscribe to my newsletter
Read articles from Rohit Ramteke directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
Rohit Ramteke
Rohit Ramteke
As a seasoned IT professional with expertise in Siebel Administration and DevOps, I am passionate about optimizing CRM solutions and enhancing IT infrastructure to drive business success. With a proven track record of implementing and managing Siebel applications, coupled with strong DevOps skills, I bring a unique blend of technical knowledge and strategic thinking to streamline operations and improve customer experience.