Skip to main content

Command Palette

Search for a command to run...

Linux for DevOps

A Guide to Linux Architecture in DevOps

Published
•3 min read•View as Markdown
Linux for DevOps

What is Linux & Why do we use it?

Linux came from a UNIX family. Linux is a free and open-source software operating system, which Linus Torvalds developed in September 1991. In 1991, Linus Torvalds was a student at the University of Helsinki, Finland, USA. He developed the first code of Linux 0.01 and posted it on the Minix newsgroup on 17 Sep 1991, his code became so popular that people encouraged him to develop new code and he was led to develop new code and release the first “official” version of Linux, version 0.02 on October 5, 1991.

  • Application: Software that performs specific tasks for the user within the operating system.

  • Kernel: The core component that manages system resources, hardware, and communication between software and hardware.

  • Shell: A command-line interface that allows users to interact with the operating system through commands.

-——-Linux File System Hierarchy-———

In Linux, everything, including a hardware program, is represented as a file. The files are stored in a directory, and every directory contains a file with a tree structure. That is called the File System Hierarchy. Linux uses a single-root, inverted tree-like structure.

The root directory is represented by / (forward slash). It is a top-level directory in Linux.

DirectoryUses
/If someone says to look into the slash directory, they refer to the root directory
/rootIt is the home directory for the root user (superuser).
/binContains binary executable
/sbinThe Linux commands located under this directory are used typically by the system administrator for system maintenance purposes
/devIt contains hardware device files.
/varThe variable data files, such as log file,s are located in the /var directory
/mntThis directory is used to mount a file system temporarily
/mediaThis directory contains sub-directories where removable media devices inserted into the computer are mounted
/usrThis directory contains applications and files used by users, as opposed to applications and files used by the system
/etcIt contains all the configuration files of the server
/bootThis directory contains the files needed to boot the system
/optThis directory is used for installing the application software from third-party vendors that are not available in the Linux distribution
/homeIt contains the secondary users’ home directory
/tmpDirectory that contains temporary files created by the system and users