TABLE OF CONTENTS |
1. What is Linux? |
2. Architecture of Linux |
3. File System Hierarchy |
4. Commands in Linux |
5. Linux command to |
What is Linux?
Linux is a free and open-source operating system that was first developed in the early 1990s by Linus Torvalds. It has become one of the most widely used operating systems in the world. It is open-source software, which means that it is free to use, modify, and distribute.
Linux is known for its stability, security, and flexibility, and is used in a variety of applications ranging from servers and supercomputers to desktops and mobile devices.
Architecture of Linux
Linux is a monolithic kernel-based operating system with four layers: hardware, kernel, system libraries, and shell. The kernel provides a communication interface between hardware and software applications, while the system libraries allow applications to interact with the kernel. The shell provides a command-line interface for users to interact with the system.
File System Hierarchy
The Linux file system hierarchy is organized in a hierarchical structure that starts at the root directory ("/") and branches out into different directories for different types of files and data.
Here are some various directories.
/bin: contains essential system binaries (programs) that are required for basic system functionality.
/sbin: contains system binaries that are primarily used by system administrators.
/etc: contains system configuration files.
/dev: contains device files, which are used to interact with hardware devices.
/usr: contains user binaries, libraries, and documentation.
/var: contains variable data files, such as log files and spool files.
/tmp: contains temporary files that are created by the system and by applications.
/home: contains user home directories.
/root: the home directory for the root user.
Commands in Linux
Linux commands are text-based instructions that allow users to interact with the Linux operating system. These commands are entered through the command-line interface, which is also known as the shell. Linux commands can be used to perform a variety of tasks, such as managing files and directories, launching applications, configuring network settings, and monitoring system performance.
What is the Linux command to
Check your present working directory.
The "pwd" command is a basic Linux command that stands for "Print Working Directory". When you type "pwd" in the command-line interface (CLI) of a Linux system and press enter, it prints the full path of the current working directory.
List all the files or directories including hidden files.
The "ls -la" command is a Linux command used to list the files and directories in the current working directory, including hidden files and directories, with detailed information about file permissions, ownership and it's creation along with date and time.
Create a nested directory A/B/C/D/E.
The "mkdir -p" command is a Linux command used to create a new directory or a series of nested directories in a specified location.
In conclusion, Linux is a free and open-source operating system that offers a powerful and flexible platform for users and developers. In this blog, we have covered some of the most essential Linux commands, including "pwd", "ls -la", and "mkdir -p". Understanding and using these commands can help users navigate and manage the Linux file system with ease.
Thanks For Reading!
#devops#90DaysOfDevOps#TrainWithShubham
Let's connect on Linkedin - linkedin.com/in/namya-khullar-7b5758200