Day-3:Hands-On for Linux Commands

Hi 🖐 Learners,
I'm a technical writer, who specialize in translating complex technical concepts into clear, user-friendly documentation. My goal is to bridge the gap between developers and end-users by creating comprehensive and accessible guides that empower users to navigate and utilize technology effectively.
As a seasoned technical writer transitioning to a DevOps engineering role, I bring a strong foundation in communicating complex technical concepts. Now, I'm leveraging this expertise to design, automate, and optimize seamless software development and deployment pipelines, embracing a hands-on approach to shaping the future of technology infrastructure.
Let's begin a new journey in devops,kindly follow me for more informative content and together build a healthy & strong community to reach our goals.✌️
🔸cat
Used to view what content present in a file
Example: Create a file using 'touch' command & then add the text using 'vim' commad later use 'cat' to know what is written in that file.

🔸chmod
- Used to change access permissions of files
There are 2 methods to change the access,
1) Symbolic/Text Method
2) Numeric Method
The default value for read is 4,write is 2,execute is 1
Example: Here i'm using Numeric method to change file permissions for USER/GROUP/OTHERS

🔸history
- Used to 'check' the commands which are used in the terminal

🔸rmdir
- Used to 'remove' the created or existing directory

🔸touch & cat (example-1)
To create a file we use 'touch' command and for viewing the content for the file we use 'cat'

🔸vim (example-1)
Used to 'add' content in an empty file
Example: Lets create a file named 'devops.txt' and add Apple,Mango,Banana,Cherry,Kiwi,Orange,Guava (one in each line)

Note: While using 'vim' command press 'i' to enter "insert" mode and add the context for the file at last press Escape button then type :wq (write & quit) & Enter to save the file.
🔸head <file name> -n 3
Used to show 'top' 3 text present in a file
Example: Lets use above file to check the response for top 3 values with this command

🔸tail <file name> -n 3
Used to show 'bottom' 3 text present in a file
Example: Lets use above file to check the response for bottom 3 values with this command

🔸touch & cat (example-2)
By using 'touch' command we can create a file and to check the content in the file we will use 'cat' command
Example: Below created an empty file so when using 'cat' command we couldn't see any content stored in that file

🔸vim (example-2)
Used to 'add' content in an empty file
Example: Lets create another file named 'Colors.txt' and add Red,Pink,White,Black,Blue,Orange,Purple,Grey (one in each line)

🔸diff
Used to find difference between any two files

I hope this blog has helped you to uderstand how these commands actually used to in real time scenarios 🚀
Kindly support and follow for more updates ❤️
Happy Learning 😊:)

