Day 2 DevOps challenge

Day 2 DevOps challenge

Introduction to Linux and Basic Linux Commands(part -1)


What is Linux?

Linux is a free and open-source operating system kernel that was created by Linus Torvalds in 1991. It is the foundation for many popular Linux distributions like Ubuntu, Fedora, and Debian. Linux is known for its stability, security, and flexibility, making it widely used in servers, desktop computers, and embedded systems. It supports a wide range of hardware and software, and its source code is openly available for modification and distribution. Linux has a vibrant community of developers and users who contribute to its ongoing development and support.


The basic architecture of Linux :

Linux-Architecture

✔️Application: -The application layer in Linux refers to the highest level of the software stack that interacts directly with users and provides specific functionality through various applications and services.

💡Examples: Web browsers, media players, etc.

✔️Shell: The shell layer in Linux is a command-line interface that acts as an intermediary between the user and the operating system, allowing users to interact with the system by executing commands and managing processes.

💡Examples: BASH,korn etc.

✔️Kernel: It is the heart of os. it is the core component of the operating system that manages system resources, provides device drivers, and facilitates communication between software and hardware.

✔️Hardware: Hardware refers to the physical components of a computer system that interact with the operating system through device drivers.

💡Examples: RAM ,Mouse, ROM, keyboard,CPU etc.

Basic commands in Linux you should know:

CommandsDescription
lsList of directories
cdChange the current directory
cd . .Previous directory
cd ~Back to the home directory
mkdirMake a new directory
whoamiUsername
ls-aList all the files and hidden files also
ls-xList all the contents row-wise
clearClear the command prompt
echoTo display something
lessTo display paged outputs in the terminal
manmanual of any command
unameTo get basic information about the OS
grepSearch for a string within an output
headReturn the specified number of lines from the top
tailReturn the specified number of lines from the bottom
diffFind the difference between the two files
cmpAllows you to check if two files are identical
iptablesBase firewall for all other firewall utilities to interface with
sudoCommand to escalate privileges
sshSecure Shell command
serviceTo start and stop services
useradd & usermodAdd a new user or change existing users data
ifconfigDisplay network interfaces and IP addresses
passwdCreate or update passwords for existing users
touchTo create an empty file
touch -achange access time of file
touch -mChange the modification time of a file
rmdirRemove directory
catDisplay file contents on the terminal
killKill active processes by process ID or name
pwdPresent working directory
cpFor copying files
mvMove or rename files

Thank you for reading

Follow me at LinkedIn to see interesting posts like this :)

https://www.linkedin.com/in/prabir-kumar-mahatha-6a0025248/