SlideShare a Scribd company logo
1)COMMAND FORMAT
2)WILD CARD CHARACTERS
3) DIRECTORY ORIENTED COMMANDS
LINUX COMMANDS
1bhatvijetha
Command format
A command is an instruction given to the shell.
The general format of a command is,
command –options command_arguments
A command is normally entered in a line by typing from the
keyboard.
Commands , options and command arguments must be
seperated by white space or tabs.
Several commands are written in a single line.They must be
seperated by semicolon(;).
Directory Oriented commands
Ls
This command is used to list the contents of specified
directory.
General format is,
ls [-options] <directory _name>
Where options can be,
a- list all the directories including the hidden files.
l- lists the files in long format.
r-list the files in reverse order.
t-lists the files sorted by the last modification time.
R-Recursively lists all the files and sub-directories as well as files
in sub-directories.
p-puts a slash after each directory.
s-Displays the number of storage blocks used by a file.
x-lists the contents by lines instead of by columns in sorted order
F-marks executable files with *
If directory name is not specified the contents of the current directory
are displayed.
Wild Card Characters
* represents any number of characters
? Represents a single character.
For example,
$ ls pgm*
This command will list out all the file names of the current
directory which are starting with “pgm”.
$ ls *s
This command will list out all the filenames of the current
working directory which are ending with “s”.
Prefix to s may be any number of characters.
$ ls ?gms
This command will display four characters filenames
which is ending with “gms” starting with any of the
allowed character.
Note: prefix to “gms”is a single character.
Mkdir
This mkdir command (make directory) is used to make new
directories.
General format is,
Mkdir [-p] <directory_name1><directory_name2>
The option –p is used to create consequences of directories using
a single mkdir command.
Rmdir
This rmdir (remove directory )command is used to remove
the specified directories .
A directory should be empty before removing it.
General format is,
Rmdir [-p] <directory_name1> <directory_name2>
The option –p is used to create consequences of directories
using a single rmdir command.
Cd
This is change directory command used to change the current
working directory to the specified directory.
General format is,
Cd <directory_name>
Pwd
This pwd (print working directory )command displays the full
pathname for the current working directory.
General format is,
Pwd
Example
$pwd
/home/bmi
Your present working directory is /home/bmi.
df
Disk free command reports the available free space on the
mounted file systems.
General format is,
df [-options]
Where options can be
L shows local file systems only
K displays the size in kilobytes.
m displays the sizes in megabytes.
I reports free,used and percentage of used i-nodes.

More Related Content

PPTX
Linux commands part -2
PDF
Basic linux commands
PDF
Linux basic commands with examples
PPTX
Basic unix commands
PPT
Linux directory commands:more options on cd and ls command
DOCX
40 basic linux command
PPTX
Unix slideshare
PPTX
Linux Basic commands and VI Editor
Linux commands part -2
Basic linux commands
Linux basic commands with examples
Basic unix commands
Linux directory commands:more options on cd and ls command
40 basic linux command
Unix slideshare
Linux Basic commands and VI Editor

What's hot (11)

ODP
Prabu linux
PPT
Linux commands
ODP
Babitha.linux
ODP
Babitha.linux
PDF
Basic linux commands
PDF
Basic linux commands for bioinformatics
PPT
101 3.4 use streams, pipes and redirects
PDF
Linux cheat-sheet
PDF
Unix Command-Line Cheat Sheet BTI2014
PDF
Unix commands in etl testing
PDF
Linux Bash Shell Cheat Sheet for Beginners
Prabu linux
Linux commands
Babitha.linux
Babitha.linux
Basic linux commands
Basic linux commands for bioinformatics
101 3.4 use streams, pipes and redirects
Linux cheat-sheet
Unix Command-Line Cheat Sheet BTI2014
Unix commands in etl testing
Linux Bash Shell Cheat Sheet for Beginners
Ad

Similar to Linux commands (20)

PDF
linux commands.pdf
DOCX
Chapter 4 Linux Basic Commands
PPTX
Basic Linux Commands with syntax and functions
PPTX
Basic Linux Commands and implementation with Examples
PDF
basic-unix.pdf
PPTX
Operating System Laboratory presentation .ppt
PDF
Basic linux commands
TXT
PPTX
Unix Trainning Doc.pptx
PPT
Linux presentation
DOCX
40 basic linux command
PDF
Basic shell programs assignment 1_solution_manual
PPTX
Linux basic commands_part1
DOCX
Directories description
PPTX
linux chapter 5.pptx lesson About introduction to linux
PPTX
Lab 3 -Linux Files, Directories and Basic Commands.pptx
PPTX
Lab 3 -Linux Files, Directories and Basic Commands.pptx
PDF
Basics of UNIX Commands
PDF
Os lab manual
PDF
Linux file commands and shell scripts
linux commands.pdf
Chapter 4 Linux Basic Commands
Basic Linux Commands with syntax and functions
Basic Linux Commands and implementation with Examples
basic-unix.pdf
Operating System Laboratory presentation .ppt
Basic linux commands
Unix Trainning Doc.pptx
Linux presentation
40 basic linux command
Basic shell programs assignment 1_solution_manual
Linux basic commands_part1
Directories description
linux chapter 5.pptx lesson About introduction to linux
Lab 3 -Linux Files, Directories and Basic Commands.pptx
Lab 3 -Linux Files, Directories and Basic Commands.pptx
Basics of UNIX Commands
Os lab manual
Linux file commands and shell scripts
Ad

More from bhatvijetha (8)

PPTX
LINUX:Control statements in shell programming
PPT
Shellvariables in Linux
PPTX
Vi editor
PPTX
Unix vs linux
PPTX
Pipes and filters
PPTX
Linux commands part4
PPT
Linux commands part3
PPTX
Introduction to unix
LINUX:Control statements in shell programming
Shellvariables in Linux
Vi editor
Unix vs linux
Pipes and filters
Linux commands part4
Linux commands part3
Introduction to unix

Recently uploaded (20)

PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
KodekX | Application Modernization Development
PPTX
Big Data Technologies - Introduction.pptx
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Electronic commerce courselecture one. Pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
KodekX | Application Modernization Development
Big Data Technologies - Introduction.pptx
Understanding_Digital_Forensics_Presentation.pptx
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Electronic commerce courselecture one. Pdf
20250228 LYD VKU AI Blended-Learning.pptx
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Digital-Transformation-Roadmap-for-Companies.pptx
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Network Security Unit 5.pdf for BCA BBA.
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Review of recent advances in non-invasive hemoglobin estimation
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
NewMind AI Weekly Chronicles - August'25 Week I
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf

Linux commands

  • 1. 1)COMMAND FORMAT 2)WILD CARD CHARACTERS 3) DIRECTORY ORIENTED COMMANDS LINUX COMMANDS 1bhatvijetha
  • 2. Command format A command is an instruction given to the shell. The general format of a command is, command –options command_arguments A command is normally entered in a line by typing from the keyboard. Commands , options and command arguments must be seperated by white space or tabs. Several commands are written in a single line.They must be seperated by semicolon(;).
  • 3. Directory Oriented commands Ls This command is used to list the contents of specified directory. General format is, ls [-options] <directory _name> Where options can be, a- list all the directories including the hidden files.
  • 4. l- lists the files in long format. r-list the files in reverse order. t-lists the files sorted by the last modification time. R-Recursively lists all the files and sub-directories as well as files in sub-directories. p-puts a slash after each directory. s-Displays the number of storage blocks used by a file. x-lists the contents by lines instead of by columns in sorted order F-marks executable files with * If directory name is not specified the contents of the current directory are displayed.
  • 5. Wild Card Characters * represents any number of characters ? Represents a single character. For example, $ ls pgm* This command will list out all the file names of the current directory which are starting with “pgm”. $ ls *s This command will list out all the filenames of the current working directory which are ending with “s”. Prefix to s may be any number of characters.
  • 6. $ ls ?gms This command will display four characters filenames which is ending with “gms” starting with any of the allowed character. Note: prefix to “gms”is a single character.
  • 7. Mkdir This mkdir command (make directory) is used to make new directories. General format is, Mkdir [-p] <directory_name1><directory_name2> The option –p is used to create consequences of directories using a single mkdir command.
  • 8. Rmdir This rmdir (remove directory )command is used to remove the specified directories . A directory should be empty before removing it. General format is, Rmdir [-p] <directory_name1> <directory_name2> The option –p is used to create consequences of directories using a single rmdir command.
  • 9. Cd This is change directory command used to change the current working directory to the specified directory. General format is, Cd <directory_name>
  • 10. Pwd This pwd (print working directory )command displays the full pathname for the current working directory. General format is, Pwd Example $pwd /home/bmi Your present working directory is /home/bmi.
  • 11. df Disk free command reports the available free space on the mounted file systems. General format is, df [-options] Where options can be L shows local file systems only K displays the size in kilobytes. m displays the sizes in megabytes. I reports free,used and percentage of used i-nodes.