DevOps, Day - 2

DevOps, Day - 2

Introduction to Linux & Basic Linux commands(Part - 1)

Table of contents

No heading

No headings in the article.

What is Linux?
Linux is a free and open-source operating system. it is known for its stability, security, and flexibility. It is widely used on servers, personal computers, and other computing devices. Some of the popular flavors of Linux are Ubuntu, Kali Linux, Fedora, etc.

Linux Architecture

Difference between Linux and Unix - Naukri Learning

Application - It is the first layer in Linux architecture and consists of various applications that run on the OS.
Ex - Browsers, Mail, MP3 players, etc.
Shell - It is a program that interprets user commands and executes them, allowing users to interact with the system and run applications.
Ex - BASH shell, Korn shell, etc.
Kernel - The kernel is the heart of OS that controls how software and hardware interact.
Hardware - It consists of several peripheral devices.
Ex - CPU, RAM, Mouse, Keyboard, etc.
Utility - A program that helps users perform specific tasks or manage their system.

Basic Linux Commands

CommandDescription
cdchange directory.
cd . .moves to the previous directory.
cd ~takes you back to the home directory.
lslist directory contents.
ls -alists all the files including hidden files.
ls -xlists the content in row-wise format.
ls -rlists the contents sorted in reverse alphabetical order.
ls -tlists the directory contents sorted by last creation time.
ls -Rlists all sub_directories under a current directory.
ls -ldisplays all files & directories in long format.
ls -ulists the contents based on access time or usage time.
ls [abc]*lists all the files starting with the letter a/b/c.
ls [!abc]*lists all the files that don't start with the letter a/b/c.
ls /root directory contents will be displayed.
ls ../displays the content of the parent directory.
ls */lists the contents of all subdirectories of the current directory.
ls -d*displays all directories followed by filenames.
touchcreates an empty file.
touch -achanges the access time of a file.
touch -mchanges the modification time of a file.
mvused to move or rename files and directories.
mv -fforces overwriting of the target file.
mv -iprompts before overwriting the destination file.
mv -ppreserves the attributes from 1 file to another file.
rmremoving or deleting 1 or more files.
rm -iprompts before deleting each file.
rm -rrecursively delete a directory and all its contents.
unameshows the name and certain features of the system.
uname -rdisplays OS release details.
uname -mdisplays machine details.
uname -vdisplays version details.
cpcopy file or a group of files across directories.
pwdprints current working directory.
mkdircreates the directory.
rmdirremoves the directory.
echodisplays messages.
catused to concatenate and display files.
whoamigives self-login details.
sudolets us use our account and password to execute system commands with root privileges.

Thank you so much for reading

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

Linkedin

Β