SlideShare a Scribd company logo
1 of 8
BASICS OF LINUX OPERATING
SYSTEM
Sunaina
INTRODUCTION
 Linux is open ware/opensource operating system with free
license to use.
 An operating system is a software that establish
communication between computer hardware and software.
 Developed by Linus Torvalds in 1991
BASICS OF LINUX OPERATING SYSTEM 2
31/01/2023
Root directory
Sub
directories
LINUX DIRECTORY STRUCTURE
BASICS OF LINUX OPERATING SYSTEM 4
1. pwd (present working directory) : Displays present
working directory.
2. cd (change directory) : Change the current
directory
• cd ./ : presents this directory
• cd ../ : move to the parent directory of current
directory
• cd - : change to previous directory
3. ls (list command) : Show the full list or content of
the directory
• ls -l : Display the content in long listing format.
• ls -a : Displays all the hidden files and directories
in the current directory.
• ls -t : Sort the files by modification time, showing
the last edited file first.
• ls -r : Sort the file names in the reverse order.
LINUX DIRECTORY
COMMANDS
BASICS OF LINUX OPERATING SYSTEM 5
7. touch : Create a new file(s)
8. rm (remove): Removes a file(s)
9. cp (copy) : Copy a file(s)
10. mv (move) : move a group of files to different directory and also to rename a file or folder
11. cat (concatenate) : used to create, view and concatenate files
• cat [filename] : view the file content
• cat > [file] : create a new file
• cat [file1] > [file2] : copy the content of one file to other
• cat [file1] >>[file2] :append the content of one file to the end of other file
• cat –n [filename] : view the content of the file with line number
• tac : display the content in reverse order
• head : Displays the top 10 lines of the file
• tail : Displays the last 10 lines of the file
4. mkdir (make directory) : create new directory(s)
• mkdir -p [directories] : create directories in the parent directory.
5. rmdir (Remove directory) : Removes the directory
6. rm –rf [directory] : Remove the directory with all the files and directories in it
LINUX
FILE
COMMANDS
BASICS OF LINUX OPERATING SYSTEM 6
12. chmod (change mode) : change the access mode of
the file
13. find : To find files and directories
• find -name pattern : find files and directories that
match the pattern
• find -iname pattern : similar to –name but ignores the
case
14. diff : To compare files/differentiate between file
contents
• sdiff : comparing the files side by side
15. vim : To edit files vim editor is used
16. grep : The grep filter searches a file for a particular
characters, and displays all lines that contain that pattern.
• grep -c : prints the line count that match the pattern
• grep –i :ignore, case for matching
• grep -l :displays list of filenames only
• grep –n :displays matched line and their line number
• grep -v : prints all the lines that do not match the
pattern
• grep -w : match whole word
PRESENTATION TITLE 7
17. wc (word count) : used for counting purpose
• wc -l : print the number of lines in a file
• wc -c : print the number of words in a file
18. sort : sort text in a file
19. clear : clear the terminal
20. exit : exit the terminal
21. history : displays history of all the commands used
22. df : Displays the amount of disk space available on the file system containing
each file name argument
23. tee -a : Read the standard input and writes it to both the standard output and one
or more files
AWK IS A TEXT PROCESSING COMMAND
DIVIDE EACH WORD INTO FIELD{$}
$1 FIRST WORD……LAST WORD{$NF}
AWK –F,(SEPARATED BY WHOM)=HERE BY ,
PRESENTATION TITLE 8

More Related Content

Similar to BASICS OF LINUX OPERATING SYSTEM.pptx

Linux presentation
Linux presentationLinux presentation
Linux presentation
Nikhil Jain
 

Similar to BASICS OF LINUX OPERATING SYSTEM.pptx (20)

Linux administration training
Linux administration trainingLinux administration training
Linux administration training
 
LINUX_admin_commands.pptx
LINUX_admin_commands.pptxLINUX_admin_commands.pptx
LINUX_admin_commands.pptx
 
Know the UNIX Commands
Know the UNIX CommandsKnow the UNIX Commands
Know the UNIX Commands
 
Programming Embedded linux
Programming Embedded linuxProgramming Embedded linux
Programming Embedded linux
 
Linux file commands and shell scripts
Linux file commands and shell scriptsLinux file commands and shell scripts
Linux file commands and shell scripts
 
Karkha unix shell scritping
Karkha unix shell scritpingKarkha unix shell scritping
Karkha unix shell scritping
 
Unix Trainning Doc.pptx
Unix Trainning Doc.pptxUnix Trainning Doc.pptx
Unix Trainning Doc.pptx
 
linux commands.pdf
linux commands.pdflinux commands.pdf
linux commands.pdf
 
workshop_1.ppt
workshop_1.pptworkshop_1.ppt
workshop_1.ppt
 
Linux directory commands:more options on cd and ls command
Linux directory commands:more options on cd and ls commandLinux directory commands:more options on cd and ls command
Linux directory commands:more options on cd and ls command
 
UNIX.pptx
UNIX.pptxUNIX.pptx
UNIX.pptx
 
Chapter 4 Linux Basic Commands
Chapter 4 Linux Basic CommandsChapter 4 Linux Basic Commands
Chapter 4 Linux Basic Commands
 
Linux basic commands
Linux basic commandsLinux basic commands
Linux basic commands
 
Linux presentation
Linux presentationLinux presentation
Linux presentation
 
Basic unix commands_1
Basic unix commands_1Basic unix commands_1
Basic unix commands_1
 
Unix_QT.ppsx
Unix_QT.ppsxUnix_QT.ppsx
Unix_QT.ppsx
 
Unix_QT.ppsx
Unix_QT.ppsxUnix_QT.ppsx
Unix_QT.ppsx
 
Group13
Group13Group13
Group13
 
Introduction to linux day1
Introduction to linux day1Introduction to linux day1
Introduction to linux day1
 
linux-file-system01.ppt
linux-file-system01.pptlinux-file-system01.ppt
linux-file-system01.ppt
 

Recently uploaded

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Recently uploaded (20)

GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 

BASICS OF LINUX OPERATING SYSTEM.pptx

  • 1. BASICS OF LINUX OPERATING SYSTEM Sunaina
  • 2. INTRODUCTION  Linux is open ware/opensource operating system with free license to use.  An operating system is a software that establish communication between computer hardware and software.  Developed by Linus Torvalds in 1991 BASICS OF LINUX OPERATING SYSTEM 2 31/01/2023
  • 4. BASICS OF LINUX OPERATING SYSTEM 4 1. pwd (present working directory) : Displays present working directory. 2. cd (change directory) : Change the current directory • cd ./ : presents this directory • cd ../ : move to the parent directory of current directory • cd - : change to previous directory 3. ls (list command) : Show the full list or content of the directory • ls -l : Display the content in long listing format. • ls -a : Displays all the hidden files and directories in the current directory. • ls -t : Sort the files by modification time, showing the last edited file first. • ls -r : Sort the file names in the reverse order. LINUX DIRECTORY COMMANDS
  • 5. BASICS OF LINUX OPERATING SYSTEM 5 7. touch : Create a new file(s) 8. rm (remove): Removes a file(s) 9. cp (copy) : Copy a file(s) 10. mv (move) : move a group of files to different directory and also to rename a file or folder 11. cat (concatenate) : used to create, view and concatenate files • cat [filename] : view the file content • cat > [file] : create a new file • cat [file1] > [file2] : copy the content of one file to other • cat [file1] >>[file2] :append the content of one file to the end of other file • cat –n [filename] : view the content of the file with line number • tac : display the content in reverse order • head : Displays the top 10 lines of the file • tail : Displays the last 10 lines of the file 4. mkdir (make directory) : create new directory(s) • mkdir -p [directories] : create directories in the parent directory. 5. rmdir (Remove directory) : Removes the directory 6. rm –rf [directory] : Remove the directory with all the files and directories in it LINUX FILE COMMANDS
  • 6. BASICS OF LINUX OPERATING SYSTEM 6 12. chmod (change mode) : change the access mode of the file 13. find : To find files and directories • find -name pattern : find files and directories that match the pattern • find -iname pattern : similar to –name but ignores the case 14. diff : To compare files/differentiate between file contents • sdiff : comparing the files side by side 15. vim : To edit files vim editor is used 16. grep : The grep filter searches a file for a particular characters, and displays all lines that contain that pattern. • grep -c : prints the line count that match the pattern • grep –i :ignore, case for matching • grep -l :displays list of filenames only • grep –n :displays matched line and their line number • grep -v : prints all the lines that do not match the pattern • grep -w : match whole word
  • 7. PRESENTATION TITLE 7 17. wc (word count) : used for counting purpose • wc -l : print the number of lines in a file • wc -c : print the number of words in a file 18. sort : sort text in a file 19. clear : clear the terminal 20. exit : exit the terminal 21. history : displays history of all the commands used 22. df : Displays the amount of disk space available on the file system containing each file name argument 23. tee -a : Read the standard input and writes it to both the standard output and one or more files
  • 8. AWK IS A TEXT PROCESSING COMMAND DIVIDE EACH WORD INTO FIELD{$} $1 FIRST WORD……LAST WORD{$NF} AWK –F,(SEPARATED BY WHOM)=HERE BY , PRESENTATION TITLE 8