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

GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
Tomaz Bratanic
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
shyamraj55
 
CAKE: Sharing Slices of Confidential Data on Blockchain
CAKE: Sharing Slices of Confidential Data on BlockchainCAKE: Sharing Slices of Confidential Data on Blockchain
CAKE: Sharing Slices of Confidential Data on Blockchain
Claudio Di Ciccio
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
panagenda
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
ssuserfac0301
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
Edge AI and Vision Alliance
 
UI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentationUI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentation
Wouter Lemaire
 
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
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
Ivanti
 
“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
Claudio Di Ciccio
 
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
 
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
 
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
 
Full-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalizationFull-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalization
Zilliz
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Tosin Akinosho
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Safe Software
 
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.
 
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
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
Aftab Hussain
 
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
 

Recently uploaded (20)

GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
 
CAKE: Sharing Slices of Confidential Data on Blockchain
CAKE: Sharing Slices of Confidential Data on BlockchainCAKE: Sharing Slices of Confidential Data on Blockchain
CAKE: Sharing Slices of Confidential Data on Blockchain
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
 
UI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentationUI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentation
 
OpenID AuthZEN Interop Read Out - Authorization
OpenID AuthZEN Interop Read Out - AuthorizationOpenID AuthZEN Interop Read Out - Authorization
OpenID AuthZEN Interop Read Out - Authorization
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
 
“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
 
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
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
 
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
 
Full-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalizationFull-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalization
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
 
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
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
 
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
 

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.