SlideShare a Scribd company logo
PROCESS ORIENTED COMMANDS
LINUX COMMANDS : PART 3
1Bhat vijettha
 Dd
This command copies files and coverts them in one
format to another.
General format is,
dd [options =values]
Where options can be,
If input filename
Of output filename
Conv file conversion specificatiton.
The value for this option may be
Lcase ,ucase,ascii and abcdic
 Expand
This command converts all the tabs present in the
specified file into blank spaces and displays the
results on the screen.
Expand [-i] <filename>
Where the –i option converts only the intial tab into
blank spaces.
 Nl
This command numbers all non blank lines in the
specified text file and displays the same on the
screen.
General format is,
nl <filename>
 Tac
This command reverses a file so that last line
becomes the first line.
General format is,
Tac <filename>
 Tail
This command displays the end of the specified file.
general format is,
Tail +n <filename>
+n is used to display the nth line till end of the file .
-n last n lines are displayed.
No option is used then last 10 lines are displayed.
Process oriented commands
 A process is a job in execution.
 There is a program called scheduler always running
in memory which decides which process should get
the cpu time and when.
 Only one process will be executed at a time,because
the system has only one processor.
 Ps
This command is used to know which process is
running at our terminal.
General format is,
ps –a:this command lists the processes of all the
users who are logged on the system.
ps-t <terminal_name>:this command lists the
processes ,which are running on the specified
terminal. <terminal_name>.
 Ps –u<user name>:
This command lists the processes, which are running
for running for specified user-<username>.
 Ps –x:this command lists the system processes.
Apart from the processes that are generated by the
user,there are some processes that keep on running
all the time.these processes are called system
processes .
Examples:
$ps
$ps –a
Background processing
 Linux provides the facility for background processing.
 when one process is running in the
foreground,another process can be executed in the
background.
Example:
$sort emp.doc&
By the execution of this command a number is
displayed..this is called PID(process identification
number).
 Kill
If you want a command to terminate prematurely
press[ctrl+c].
This type of interrupt characters doesnot affect the
background processes because the background
processes are protected by shell from these
interrupt signals.
This kill command is used to terminate a background
process,
General format,
Kill [-signal Number] <PID>
Examples:
$skill 120
This command terminate the process who has the PID
120.
$kill -9 130
$kill -9 0
This command kills the processes including the login
shell.
 Nohup
If a user wants a process that he has executed not to
die even when he logged out from the system you
can use this nohup command.
Normally all the processes of a user are terminated if
he logs out.
General format is,
Nohup <command>&
 Batch
This command is used to execute the specified
commands when the system load permits (when cpu
becomes nearly free).
General format is,
batch
<commands>
^d
Any job scheduled with batch also goes to the at queue
,you can list or delete them through atq and atrm
respectively.
Cont…part4

More Related Content

What's hot

Linux commd
Linux commdLinux commd
Linux commd
ragav03
 
Command line for the beginner - Using the command line in developing for the...
Command line for the beginner -  Using the command line in developing for the...Command line for the beginner -  Using the command line in developing for the...
Command line for the beginner - Using the command line in developing for the...
Jim Birch
 
Vi Editor
Vi EditorVi Editor
Basic linux commands
Basic linux commandsBasic linux commands
Basic linux commands
Nguyen Vinh
 
Linux Basic commands and VI Editor
Linux Basic commands and VI EditorLinux Basic commands and VI Editor
Linux Basic commands and VI Editor
shanmuga rajan
 
Linux Shortcuts and Commands:
Linux Shortcuts and Commands:Linux Shortcuts and Commands:
Linux Shortcuts and Commands:
wensheng wei
 
Command-Line 101
Command-Line 101Command-Line 101
Command-Line 101
Artefactual Systems - AtoM
 
Useful Linux and Unix commands handbook
Useful Linux and Unix commands handbookUseful Linux and Unix commands handbook
Useful Linux and Unix commands handbook
Wave Digitech
 
Chapter 3 Using Unix Commands
Chapter 3 Using Unix CommandsChapter 3 Using Unix Commands
Chapter 3 Using Unix Commands
MeenalJabde
 
CMD Command prompts
CMD Command promptsCMD Command prompts
CMD Command prompts
Ahmed Hesham
 
Linux basic commands with examples
Linux basic commands with examplesLinux basic commands with examples
Linux basic commands with examples
abclearnn
 
Rhel2
Rhel2Rhel2

What's hot (12)

Linux commd
Linux commdLinux commd
Linux commd
 
Command line for the beginner - Using the command line in developing for the...
Command line for the beginner -  Using the command line in developing for the...Command line for the beginner -  Using the command line in developing for the...
Command line for the beginner - Using the command line in developing for the...
 
Vi Editor
Vi EditorVi Editor
Vi Editor
 
Basic linux commands
Basic linux commandsBasic linux commands
Basic linux commands
 
Linux Basic commands and VI Editor
Linux Basic commands and VI EditorLinux Basic commands and VI Editor
Linux Basic commands and VI Editor
 
Linux Shortcuts and Commands:
Linux Shortcuts and Commands:Linux Shortcuts and Commands:
Linux Shortcuts and Commands:
 
Command-Line 101
Command-Line 101Command-Line 101
Command-Line 101
 
Useful Linux and Unix commands handbook
Useful Linux and Unix commands handbookUseful Linux and Unix commands handbook
Useful Linux and Unix commands handbook
 
Chapter 3 Using Unix Commands
Chapter 3 Using Unix CommandsChapter 3 Using Unix Commands
Chapter 3 Using Unix Commands
 
CMD Command prompts
CMD Command promptsCMD Command prompts
CMD Command prompts
 
Linux basic commands with examples
Linux basic commands with examplesLinux basic commands with examples
Linux basic commands with examples
 
Rhel2
Rhel2Rhel2
Rhel2
 

Similar to Linux commands part3

IntroCommandLine.ppt
IntroCommandLine.pptIntroCommandLine.ppt
IntroCommandLine.ppt
GowthamRaju15
 
IntroCommandLine.ppt
IntroCommandLine.pptIntroCommandLine.ppt
IntroCommandLine.ppt
TECHWORLDwithphotoed
 
unix_ref_card.pdf
unix_ref_card.pdfunix_ref_card.pdf
unix_ref_card.pdf
GiovaRossi
 
unix_ref_card.pdf
unix_ref_card.pdfunix_ref_card.pdf
unix_ref_card.pdf
GiovaRossi
 
unix_ref_card.pdf
unix_ref_card.pdfunix_ref_card.pdf
unix_ref_card.pdf
GiovaRossi
 
lec4.docx
lec4.docxlec4.docx
lec4.docx
ismailaboshatra
 
Linux Command.pptx
Linux Command.pptxLinux Command.pptx
Linux Command.pptx
SaileshB5
 
Linux commands
Linux commandsLinux commands
Linux commands
Meenu Chopra
 
Examples -partII
Examples -partIIExamples -partII
Examples -partII
Kedar Bhandari
 
58518522 study-aix
58518522 study-aix58518522 study-aix
58518522 study-aix
homeworkping3
 
Unit 10 investigating and managing
Unit 10 investigating and managingUnit 10 investigating and managing
Unit 10 investigating and managing
root_fibo
 
50 Most Frequently Used UNIX Linux Commands -hmftj
50 Most Frequently Used UNIX  Linux Commands -hmftj50 Most Frequently Used UNIX  Linux Commands -hmftj
50 Most Frequently Used UNIX Linux Commands -hmftj
LGS, GBHS&IC, University Of South-Asia, TARA-Technologies
 
Prabu linux
Prabu linuxPrabu linux
Prabu linux
Prabu Cse
 
Group13
Group13Group13
II BCA OS pipes and filters.pptx
II BCA OS pipes and filters.pptxII BCA OS pipes and filters.pptx
II BCA OS pipes and filters.pptx
Savitha74
 
50 most frequently used unix
50 most frequently used unix50 most frequently used unix
50 most frequently used unix
Teja Bheemanapally
 
50 most frequently used unix
50 most frequently used unix50 most frequently used unix
50 most frequently used unix
Teja Bheemanapally
 
Babitha.linux
Babitha.linuxBabitha.linux
Babitha.linux
banubabitha
 
Babitha.linux
Babitha.linuxBabitha.linux
Babitha.linux
banubabitha
 
Babitha.linux
Babitha.linuxBabitha.linux
Babitha.linux
banubabitha
 

Similar to Linux commands part3 (20)

IntroCommandLine.ppt
IntroCommandLine.pptIntroCommandLine.ppt
IntroCommandLine.ppt
 
IntroCommandLine.ppt
IntroCommandLine.pptIntroCommandLine.ppt
IntroCommandLine.ppt
 
unix_ref_card.pdf
unix_ref_card.pdfunix_ref_card.pdf
unix_ref_card.pdf
 
unix_ref_card.pdf
unix_ref_card.pdfunix_ref_card.pdf
unix_ref_card.pdf
 
unix_ref_card.pdf
unix_ref_card.pdfunix_ref_card.pdf
unix_ref_card.pdf
 
lec4.docx
lec4.docxlec4.docx
lec4.docx
 
Linux Command.pptx
Linux Command.pptxLinux Command.pptx
Linux Command.pptx
 
Linux commands
Linux commandsLinux commands
Linux commands
 
Examples -partII
Examples -partIIExamples -partII
Examples -partII
 
58518522 study-aix
58518522 study-aix58518522 study-aix
58518522 study-aix
 
Unit 10 investigating and managing
Unit 10 investigating and managingUnit 10 investigating and managing
Unit 10 investigating and managing
 
50 Most Frequently Used UNIX Linux Commands -hmftj
50 Most Frequently Used UNIX  Linux Commands -hmftj50 Most Frequently Used UNIX  Linux Commands -hmftj
50 Most Frequently Used UNIX Linux Commands -hmftj
 
Prabu linux
Prabu linuxPrabu linux
Prabu linux
 
Group13
Group13Group13
Group13
 
II BCA OS pipes and filters.pptx
II BCA OS pipes and filters.pptxII BCA OS pipes and filters.pptx
II BCA OS pipes and filters.pptx
 
50 most frequently used unix
50 most frequently used unix50 most frequently used unix
50 most frequently used unix
 
50 most frequently used unix
50 most frequently used unix50 most frequently used unix
50 most frequently used unix
 
Babitha.linux
Babitha.linuxBabitha.linux
Babitha.linux
 
Babitha.linux
Babitha.linuxBabitha.linux
Babitha.linux
 
Babitha.linux
Babitha.linuxBabitha.linux
Babitha.linux
 

More from bhatvijetha

LINUX:Control statements in shell programming
LINUX:Control statements in shell programmingLINUX:Control statements in shell programming
LINUX:Control statements in shell programming
bhatvijetha
 
Shellvariables in Linux
Shellvariables in Linux Shellvariables in Linux
Shellvariables in Linux
bhatvijetha
 
Vi editor
Vi editorVi editor
Vi editor
bhatvijetha
 
Unix vs linux
Unix vs linuxUnix vs linux
Unix vs linux
bhatvijetha
 
Pipes and filters
Pipes and filtersPipes and filters
Pipes and filters
bhatvijetha
 
Introduction to unix
Introduction to unixIntroduction to unix
Introduction to unix
bhatvijetha
 

More from bhatvijetha (6)

LINUX:Control statements in shell programming
LINUX:Control statements in shell programmingLINUX:Control statements in shell programming
LINUX:Control statements in shell programming
 
Shellvariables in Linux
Shellvariables in Linux Shellvariables in Linux
Shellvariables in Linux
 
Vi editor
Vi editorVi editor
Vi editor
 
Unix vs linux
Unix vs linuxUnix vs linux
Unix vs linux
 
Pipes and filters
Pipes and filtersPipes and filters
Pipes and filters
 
Introduction to unix
Introduction to unixIntroduction to unix
Introduction to unix
 

Recently uploaded

Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
Kumud Singh
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
Ivanti
 
Serial Arm Control in Real Time Presentation
Serial Arm Control in Real Time PresentationSerial Arm Control in Real Time Presentation
Serial Arm Control in Real Time Presentation
tolgahangng
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
innovationoecd
 
Infrastructure Challenges in Scaling RAG with Custom AI models
Infrastructure Challenges in Scaling RAG with Custom AI modelsInfrastructure Challenges in Scaling RAG with Custom AI models
Infrastructure Challenges in Scaling RAG with Custom AI models
Zilliz
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
Zilliz
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
Pixlogix Infotech
 
OpenID AuthZEN Interop Read Out - Authorization
OpenID AuthZEN Interop Read Out - AuthorizationOpenID AuthZEN Interop Read Out - Authorization
OpenID AuthZEN Interop Read Out - Authorization
David Brossard
 
Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
Zilliz
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
Kari Kakkonen
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Malak Abu Hammad
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
Matthew Sinclair
 
How to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For FlutterHow to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For Flutter
Daiki Mogmet Ito
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
Jason Packer
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
Uni Systems S.M.S.A.
 
Things to Consider When Choosing a Website Developer for your Website | FODUU
Things to Consider When Choosing a Website Developer for your Website | FODUUThings to Consider When Choosing a Website Developer for your Website | FODUU
Things to Consider When Choosing a Website Developer for your Website | FODUU
FODUU
 
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
akankshawande
 
UI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentationUI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentation
Wouter Lemaire
 
Mariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceXMariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceX
Mariano Tinti
 
Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
Zilliz
 

Recently uploaded (20)

Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
 
Serial Arm Control in Real Time Presentation
Serial Arm Control in Real Time PresentationSerial Arm Control in Real Time Presentation
Serial Arm Control in Real Time Presentation
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
 
Infrastructure Challenges in Scaling RAG with Custom AI models
Infrastructure Challenges in Scaling RAG with Custom AI modelsInfrastructure Challenges in Scaling RAG with Custom AI models
Infrastructure Challenges in Scaling RAG with Custom AI models
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
 
OpenID AuthZEN Interop Read Out - Authorization
OpenID AuthZEN Interop Read Out - AuthorizationOpenID AuthZEN Interop Read Out - Authorization
OpenID AuthZEN Interop Read Out - Authorization
 
Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
 
How to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For FlutterHow to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For Flutter
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
 
Things to Consider When Choosing a Website Developer for your Website | FODUU
Things to Consider When Choosing a Website Developer for your Website | FODUUThings to Consider When Choosing a Website Developer for your Website | FODUU
Things to Consider When Choosing a Website Developer for your Website | FODUU
 
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
 
UI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentationUI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentation
 
Mariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceXMariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceX
 
Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
 

Linux commands part3

  • 1. PROCESS ORIENTED COMMANDS LINUX COMMANDS : PART 3 1Bhat vijettha
  • 2.  Dd This command copies files and coverts them in one format to another. General format is, dd [options =values] Where options can be, If input filename Of output filename Conv file conversion specificatiton. The value for this option may be Lcase ,ucase,ascii and abcdic
  • 3.  Expand This command converts all the tabs present in the specified file into blank spaces and displays the results on the screen. Expand [-i] <filename> Where the –i option converts only the intial tab into blank spaces.  Nl This command numbers all non blank lines in the specified text file and displays the same on the screen. General format is, nl <filename>
  • 4.  Tac This command reverses a file so that last line becomes the first line. General format is, Tac <filename>  Tail This command displays the end of the specified file. general format is, Tail +n <filename> +n is used to display the nth line till end of the file . -n last n lines are displayed. No option is used then last 10 lines are displayed.
  • 5. Process oriented commands  A process is a job in execution.  There is a program called scheduler always running in memory which decides which process should get the cpu time and when.  Only one process will be executed at a time,because the system has only one processor.
  • 6.  Ps This command is used to know which process is running at our terminal. General format is, ps –a:this command lists the processes of all the users who are logged on the system. ps-t <terminal_name>:this command lists the processes ,which are running on the specified terminal. <terminal_name>.
  • 7.  Ps –u<user name>: This command lists the processes, which are running for running for specified user-<username>.  Ps –x:this command lists the system processes. Apart from the processes that are generated by the user,there are some processes that keep on running all the time.these processes are called system processes . Examples: $ps $ps –a
  • 8. Background processing  Linux provides the facility for background processing.  when one process is running in the foreground,another process can be executed in the background. Example: $sort emp.doc& By the execution of this command a number is displayed..this is called PID(process identification number).
  • 9.  Kill If you want a command to terminate prematurely press[ctrl+c]. This type of interrupt characters doesnot affect the background processes because the background processes are protected by shell from these interrupt signals. This kill command is used to terminate a background process, General format, Kill [-signal Number] <PID>
  • 10. Examples: $skill 120 This command terminate the process who has the PID 120. $kill -9 130 $kill -9 0 This command kills the processes including the login shell.
  • 11.  Nohup If a user wants a process that he has executed not to die even when he logged out from the system you can use this nohup command. Normally all the processes of a user are terminated if he logs out. General format is, Nohup <command>&
  • 12.  Batch This command is used to execute the specified commands when the system load permits (when cpu becomes nearly free). General format is, batch <commands> ^d Any job scheduled with batch also goes to the at queue ,you can list or delete them through atq and atrm respectively.