Day 2: Linux Journey for Beginner's
Basic Linux Commands in DevOps

Hello all, I'm Deepika Pinjarla! I'm a passionate Devops Engineer. I like sharing my knowledge and insights through my writing, and I'm here at Hash node. On my blog, you'll find articles covering a wide range of topics related to DevOps. My goal is to provide valuable content that helps learners in their journey. Join me on this learning adventure as we explore the wonderful world of DevOps together!
Feel Free to provide your valuable feedbacks or suggestions for the blogs, if any corrections need to update, please inform me in the comments. Thanks in Advance! Have fun while learning:)
Linux is an open-source operating system kernel that serves as the foundation for numerous operating systems known as Linux distributions. It was developed by linus torvalds.
In DevOps (Development and Operations), Linux plays a crucial role due to its command-line interface (CLI), a vast collection of tools, and robust networking capabilities. Here's how Linux is commonly used in DevOps:
Server Infrastructure
Automation and Scripting
Configuration Management
Containerization and Virtualization
Monitoring and Logging
Security and Access Control
Continuous Integration and Continuous Deployment (CI/CD)
Command
Description
ls
lists files and directories in the current working directory
cd
changes the current working directory
pwd
prints the current working directory
mkdir
creates a new directory
touch
creates a new file
rm
removes files or directories
cp
copies files or directories
mv
moves or renames files or directories
cat
displays the contents of a file
grep
searches for a pattern in a file
sudo
executes a command with administrative privileges
chmod
changes the permissions of a file or directory
tar
creates or extracts an archive file
ssh
connects to a remote machine via SSH
ping
tests network connectivity to a server
- How to check the present working Directory?
To check the present working directory in Linux, the steps: open a terminal, then type a cmd 'pwd' will prompt the present in which directory we are located.

2. List all the files or directories including hidden files.
To list all the files and directories, including hidden files, in a directory or files, you can use the ls command with the -a option. Hidden files and directories are denoted by a dot (.) at the beginning of their names
3. Create a nested directory A/B/C/D/E
To create a nested directory you can use the following command.
mkdir -pv A/B/C/D/E
Here, the "-p" flag will create the parent directory.
To check whether the directories are created are not, you can check with the below command.
ls -R A/

Summary:
Linux provides a powerful and flexible platform for DevOps practitioners, enabling them to automate processes, manage infrastructure, and streamline software development and deployment. Linux makes work easy with simple commands and provides more security.




