# Linux For DevOps

#90daysofDevOps

🛜Day2:Basic Linux commands for DevOps

# 🎆**Introduction**

Now days fast-paced and highly competitive IT industry, DevOps has become a crucial methodology for organizations looking to streamline their software development and deployment processes. In this methodology lies Linux, the open-source operating system that empowers DevOps engineers to achieve scalability, flexibility, and automation.

## ♾️What is Linux?

Linux is an open-source operating system that was initially developed as a free alternative to proprietary Unix-based systems. It has grown into a robust and widely adopted operating system used in various domains, including servers, embedded systems, desktops, and mobile devices. Linux is known for its stability, security, flexibility, and scalability.

### 🚨Architecture Of Linux

• kernel: It is like the heart of the Linux operating system (OS), acting as the central connection between the computer's hardware and its running programs.

• Shell: It is a text-based interface where users can enter commands, run programs, and control files like handling files, setting permissions, and managing directories.

• Application: A group of functions created to accomplish specific tasks.

• Hardware: It includes devices such as processor(CPU), memory(RAM), storage devices(hard disk drive), input/output devices(keyboard, mouse, display), network interfaces, and other peripherals.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1707393219806/25868f69-728b-48ec-b5e1-13deca4863a4.png align="center")

## **🤖Linux Commands That DevOps Engineers Should Know**

As a DevOps engineer, Must know the Linux commands is essential for efficient system administration, automation, and troubleshooting. Here are some Linux commands that DevOps engineer should know:

ls -&gt; It shows available files and directory lists in the present working directory.

ls -l -&gt; It is used for knowing the details of files and directories.

ls -a -&gt; It is used for showing the list of all the hidden files.

pwd -&gt; It displays the present working directory.

cd -&gt; It is used for changing the directory.

cd .. -&gt; It is used to move one directory back from the present directory.

cd ../.. -&gt; It is used to move two previous directories from the present directory.

echo -&gt; It is used to display the line of text or strings that are passed as argument.

cp -&gt; It is used to copy files from one directory to another.

mv -&gt; It is used to rename and replace the files.

touch -&gt; It is used to create empty files.

cat -&gt; It is used to display file content on the terminal.

mkdir -&gt; It is used for creating a new directory

tree -&gt; It is used to display the file system's directory structure in a tree-like format.

rm -&gt; It is used to remove the file.

rm -r -&gt; It is used to remove the directory.

whoami -&gt; It is used to display the current username.

man -&gt; It is used for accessing the lab manual of Linux commands

sudo -&gt; It is used to run commands with administrative privileges.

useradd -&gt; It is used for creating a new user account.

passwd -&gt; It is used for creating a password for the user.

vim -&gt; It is used as an editor to create or edit a text file.

head -&gt; It is used for printing the first ten lines(by default) of a text file.

tail -&gt; It is used to display the last ten lines(by default) of a text file.

I hope this blog has helped you to know the concept of Linux& how it is benefiting the organizations🚨

kindly support and follow for more updates

Happy Learning😊:)
