SlideShare a Scribd company logo
Linux Commands
• Basic commands used to interact with the
Linux operating system.
• Essential for navigating and managing files,
directories, and system processes.
ls Command
• Description: Lists files and directories in the
current directory.
• Example:
• `ls` – Lists all files and directories.
• `ls -l` – Provides detailed information including
permissions, owner, size, and modification
date.
mkdir Command
• Description: Creates a new directory.
• Example:
• `mkdir my_directory` – Creates a directory
named 'my_directory'.
rmdir Command
• Description: Removes an empty directory.
• Example:
• `rmdir my_directory` – Removes
'my_directory' if it's empty.
cd Command
• Description: Changes the current directory.
• Example:
• `cd /home/user` – Changes to the
'/home/user' directory.
• `cd ..` – Moves up one level in the directory
hierarchy.
cat Command
• Description: Displays the content of a file.
• Example:
• `cat file.txt` – Displays the content of 'file.txt'.
figlet Command
• Description: Prints text in large ASCII art.
• Example:
• `figlet Welcome` – Prints 'Welcome' in large
characters.
touch Command
• Description: Creates an empty file or updates
the timestamp of an existing file.
• Example:
• `touch newfile.txt` – Creates a file named
'newfile.txt'.
file Command
• Description: Determines the type of a file.
• Example:
• `file myfile.txt` – Displays the type of
'myfile.txt' (e.g., ASCII text).
wc Command
• Description: Counts lines, words, and
characters in a file.
• Example:
• `wc file.txt` – Displays the number of lines,
words, and characters in 'file.txt'.
sort Command
• Description: Sorts lines in a file.
• Example:
• `sort file.txt` – Sorts the lines of 'file.txt'
alphabetically.
cut Command
• Description: Cuts sections from each line of a
file.
• Example:
• `cut -d':' -f1 file.txt` – Cuts the first field
(delimited by colon) from each line of 'file.txt'.
grep Command
• Description: Searches for a pattern in a file.
• Example:
• `grep 'pattern' file.txt` – Finds all lines
containing 'pattern' in 'file.txt'.
dd Command
• Description: Converts and copies files.
• Example:
• `dd if=/dev/sda of=/backup.img` – Creates a
backup of the disk '/dev/sda'.
df Command
• Description: Shows disk space usage.
• Example:
• `df -h` – Displays disk usage in a human-
readable format.
du Command
• Description: Estimates file and directory space
usage.
• Example:
• `du -sh /home/user` – Displays the size of the
'/home/user' directory.
ulimit Command
• Description: Sets user limits for system
resources.
• Example:
• `ulimit -n 1024` – Sets the maximum number
of open files to 1024.

More Related Content

PPTX
Unix Trainning Doc.pptx
PPT
Linux presentation
PPTX
Introduction to linux day1
PPTX
Linux commands
PDF
LinuxCommands (1).pdf
PDF
Basic
PPTX
various shell commands in unix operating system.pptx
PPTX
Basic Linux Commands and implementation with Examples
Unix Trainning Doc.pptx
Linux presentation
Introduction to linux day1
Linux commands
LinuxCommands (1).pdf
Basic
various shell commands in unix operating system.pptx
Basic Linux Commands and implementation with Examples

Similar to Linux commands presentation topic discrete structure.ppt (20)

PPTX
Basic Linux Commands with syntax and functions
PPTX
Basic Linux Administration - 3.pptxon server
PPT
Linux commands
PPT
Linux commands
PPTX
Red hat linux essentials
PPTX
Linux Command.pptx
PPTX
Linux Fundamentals
PPTX
Linux basics
PDF
3.1.a linux commands reference
PPTX
Linux commands
PPTX
Using linux in schools
PPTX
Linux week 2
PPT
LINUX
DOCX
Basic linux commands
PPTX
2. UNIX OS System Architecture easy.pptx
PPT
Linux ppt
PPTX
Basic unix
PDF
Shell intro
PDF
Shell intro
PPTX
Basic Linux Commands with syntax and functions
Basic Linux Administration - 3.pptxon server
Linux commands
Linux commands
Red hat linux essentials
Linux Command.pptx
Linux Fundamentals
Linux basics
3.1.a linux commands reference
Linux commands
Using linux in schools
Linux week 2
LINUX
Basic linux commands
2. UNIX OS System Architecture easy.pptx
Linux ppt
Basic unix
Shell intro
Shell intro
Ad

Recently uploaded (20)

PDF
Approach and Philosophy of On baking technology
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
A Presentation on Artificial Intelligence
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
Cloud computing and distributed systems.
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Chapter 3 Spatial Domain Image Processing.pdf
Approach and Philosophy of On baking technology
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
A comparative analysis of optical character recognition models for extracting...
The Rise and Fall of 3GPP – Time for a Sabbatical?
20250228 LYD VKU AI Blended-Learning.pptx
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Mobile App Security Testing_ A Comprehensive Guide.pdf
A Presentation on Artificial Intelligence
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Encapsulation_ Review paper, used for researhc scholars
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Per capita expenditure prediction using model stacking based on satellite ima...
Cloud computing and distributed systems.
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Digital-Transformation-Roadmap-for-Companies.pptx
NewMind AI Weekly Chronicles - August'25-Week II
Programs and apps: productivity, graphics, security and other tools
Assigned Numbers - 2025 - Bluetooth® Document
“AI and Expert System Decision Support & Business Intelligence Systems”
Chapter 3 Spatial Domain Image Processing.pdf
Ad

Linux commands presentation topic discrete structure.ppt

  • 1. Linux Commands • Basic commands used to interact with the Linux operating system. • Essential for navigating and managing files, directories, and system processes.
  • 2. ls Command • Description: Lists files and directories in the current directory. • Example: • `ls` – Lists all files and directories. • `ls -l` – Provides detailed information including permissions, owner, size, and modification date.
  • 3. mkdir Command • Description: Creates a new directory. • Example: • `mkdir my_directory` – Creates a directory named 'my_directory'.
  • 4. rmdir Command • Description: Removes an empty directory. • Example: • `rmdir my_directory` – Removes 'my_directory' if it's empty.
  • 5. cd Command • Description: Changes the current directory. • Example: • `cd /home/user` – Changes to the '/home/user' directory. • `cd ..` – Moves up one level in the directory hierarchy.
  • 6. cat Command • Description: Displays the content of a file. • Example: • `cat file.txt` – Displays the content of 'file.txt'.
  • 7. figlet Command • Description: Prints text in large ASCII art. • Example: • `figlet Welcome` – Prints 'Welcome' in large characters.
  • 8. touch Command • Description: Creates an empty file or updates the timestamp of an existing file. • Example: • `touch newfile.txt` – Creates a file named 'newfile.txt'.
  • 9. file Command • Description: Determines the type of a file. • Example: • `file myfile.txt` – Displays the type of 'myfile.txt' (e.g., ASCII text).
  • 10. wc Command • Description: Counts lines, words, and characters in a file. • Example: • `wc file.txt` – Displays the number of lines, words, and characters in 'file.txt'.
  • 11. sort Command • Description: Sorts lines in a file. • Example: • `sort file.txt` – Sorts the lines of 'file.txt' alphabetically.
  • 12. cut Command • Description: Cuts sections from each line of a file. • Example: • `cut -d':' -f1 file.txt` – Cuts the first field (delimited by colon) from each line of 'file.txt'.
  • 13. grep Command • Description: Searches for a pattern in a file. • Example: • `grep 'pattern' file.txt` – Finds all lines containing 'pattern' in 'file.txt'.
  • 14. dd Command • Description: Converts and copies files. • Example: • `dd if=/dev/sda of=/backup.img` – Creates a backup of the disk '/dev/sda'.
  • 15. df Command • Description: Shows disk space usage. • Example: • `df -h` – Displays disk usage in a human- readable format.
  • 16. du Command • Description: Estimates file and directory space usage. • Example: • `du -sh /home/user` – Displays the size of the '/home/user' directory.
  • 17. ulimit Command • Description: Sets user limits for system resources. • Example: • `ulimit -n 1024` – Sets the maximum number of open files to 1024.