#Day 2:  - 90 Days of DevOpsChallenge

#Day 2: - 90 Days of DevOpsChallenge

Β·

2 min read

Linux is an open-source operating system that serves as an alternative to proprietary systems like Windows or macOS. It is highly customizable and widely used across various devices. Here's an easy explanation of Linux, its flavors, architecture, and some basic commands :

🐧 What is Linux?

Linux is a free and open-source operating system represented by the penguin mascot. It is designed to be versatile, stable, and secure, offering a customizable environment for users.

🌟 Flavors of Linux:

Linux comes in different flavors called distributions or distros. These flavors are variations of Linux, each with its own set of pre-installed software, desktop environments, and user experiences. Some popular flavors include Ubuntu 🌌, Fedora πŸ•ŠοΈ, Debian 🎣, and Linux Mint πŸƒ.

πŸ›οΈ Architecture of Linux:

Linux follows a modular architecture. At its core, there is the Linux kernel 🌱, which interacts directly with hardware devices, manages resources, and provides essential functionalities. On top of the kernel, various software components and packages are added to create a complete operating system.

πŸ’» Basic Commands:

1️⃣ pwd (Print Working Directory) πŸ—ΊοΈ: Shows the current directory you are in.

2️⃣ ls (List) πŸ“œ: Lists files and directories in the current directory.

3️⃣ cd (Change Directory) πŸ“‚πŸ”€: Navigates to a specified directory.

4️⃣ mkdir (Make Directory) πŸ“: Creates a new directory.

5️⃣ rm (Remove) πŸ—‘οΈ: Deletes a file or directory.

6️⃣ cp (Copy) πŸ“‹βœ‚οΈ: Copies files or directories from one location to another.

7️⃣ mv (Move) πŸ“¦πŸ”€: Moves or renames files and directories.

Task:

  • Check Your Present Working Directory: To check your present working directory, where you are currently located in the file system, we'll use the pwd command. It's like asking Linux, "Where am I right now?" πŸ—ΊοΈ

🌟 Command: pwd

🌟 Output: /home/karan

  • List All Files and Directories, Including Hidden Ones: To list all files and directories, including those hidden from plain sight, we'll use the ls command with the -a flag. It's like shining a light on all the nooks and crannies of your current directory. πŸ“œπŸ‘€

🌟 Command: ls -a

🌟 Output:

Copy code.        ..       file1.txt    file2.txt   .hidden_folder
  • Create a Nested Directory: Now, let's venture into creating a nested directory structure. With the mkdir command and the -p flag, we can create the nested directories A/B/C/D/E in a single stroke. Think of it as constructing a series of nested boxes, one inside the other. πŸ“πŸŽ

🌟 Command: mkdir -p A/B/C/D/E

🌟 Output: (No output means success! The nested directory structure A/B/C/D/E has been created.)

Understanding these concepts and commands empowers you to work efficiently and explore the vast possibilities of the Linux operating system. πŸš€πŸ§

Β