Linux for DevOps🐧

Linux for DevOps🐧

What is Linux and why is it important for DevOps?🤔

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, making it an ideal choice for DevOps practices.

Some Basics Commands of Linux😎

1. Check your present working directory.

Description: Displays the path of the current working directory.

Command: pwd

pwd
/home/user/documents

2. List all the files or directories including hidden files.

Command: ls-a

Description: Lists all files and directories, including hidden files (those starting with a dot '.').

ls -a
.  ..  file1.txt  file2.txt  dir1  dir2  .hidden_file

3. Creating a nested directory A/B/C/D/E

Command: mkdir -p (Make Directory - Parent)

Description: Creates a nested directory structure even if parent directories don't exist.

mkdir -p A/B/C/D/E