SlideShare a Scribd company logo
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

DOCX
40 basic linux command
DOCX
40 basic linux command
PPTX
Basic Linux Commands with syntax and functions
PPTX
Basic Linux Commands and implementation with Examples
DOCX
Directories description
PPT
linux-lecture4.pptuyhbjhbiibihbiuhbbihbi
PPT
Linux commands and file structure
PPT
linux-lecture4.ppt
40 basic linux command
40 basic linux command
Basic Linux Commands with syntax and functions
Basic Linux Commands and implementation with Examples
Directories description
linux-lecture4.pptuyhbjhbiibihbiuhbbihbi
Linux commands and file structure
linux-lecture4.ppt

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

PDF
Raspberry Pi - Lecture 2 Linux OS
PDF
Module 02 Using Linux Command Shell
PPT
Linux ppt
PPTX
Linux administration training
PPTX
LINUX_admin_commands.pptx
PPTX
Know the UNIX Commands
PPTX
TERMINAL COMMANDS IN LINUX TERMINAL USED TO INTERACT WITH SYSTEM
PDF
Programming Embedded linux
PDF
Linux file commands and shell scripts
PPT
Karkha unix shell scritping
PPTX
Unix Trainning Doc.pptx
PDF
linux commands.pdf
PPT
workshop_1.ppt
PPT
Linux directory commands:more options on cd and ls command
PPTX
OS-Module 2 Linux Programming Important topics
PPTX
UNIX.pptx
DOCX
Chapter 4 Linux Basic Commands
DOCX
Linux basic commands
PPT
Linux presentation
PDF
Basic unix commands_1
Raspberry Pi - Lecture 2 Linux OS
Module 02 Using Linux Command Shell
Linux ppt
Linux administration training
LINUX_admin_commands.pptx
Know the UNIX Commands
TERMINAL COMMANDS IN LINUX TERMINAL USED TO INTERACT WITH SYSTEM
Programming Embedded linux
Linux file commands and shell scripts
Karkha unix shell scritping
Unix Trainning Doc.pptx
linux commands.pdf
workshop_1.ppt
Linux directory commands:more options on cd and ls command
OS-Module 2 Linux Programming Important topics
UNIX.pptx
Chapter 4 Linux Basic Commands
Linux basic commands
Linux presentation
Basic unix commands_1
Ad

Recently uploaded (20)

PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Mushroom cultivation and it's methods.pdf
PPTX
cloud_computing_Infrastucture_as_cloud_p
PDF
Machine learning based COVID-19 study performance prediction
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPT
Teaching material agriculture food technology
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
Spectroscopy.pptx food analysis technology
PPTX
1. Introduction to Computer Programming.pptx
PDF
Empathic Computing: Creating Shared Understanding
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
A comparative study of natural language inference in Swahili using monolingua...
PDF
Encapsulation theory and applications.pdf
PDF
Getting Started with Data Integration: FME Form 101
PDF
Unlocking AI with Model Context Protocol (MCP)
Advanced methodologies resolving dimensionality complications for autism neur...
Network Security Unit 5.pdf for BCA BBA.
Mushroom cultivation and it's methods.pdf
cloud_computing_Infrastucture_as_cloud_p
Machine learning based COVID-19 study performance prediction
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Teaching material agriculture food technology
Digital-Transformation-Roadmap-for-Companies.pptx
Spectroscopy.pptx food analysis technology
1. Introduction to Computer Programming.pptx
Empathic Computing: Creating Shared Understanding
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
NewMind AI Weekly Chronicles - August'25-Week II
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Assigned Numbers - 2025 - Bluetooth® Document
A comparative study of natural language inference in Swahili using monolingua...
Encapsulation theory and applications.pdf
Getting Started with Data Integration: FME Form 101
Unlocking AI with Model Context Protocol (MCP)
Ad

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