SlideShare a Scribd company logo
Processes
• A process is created every time you issue a command. It is
an instance of a running program.
• Question: What is an instance? (Think programming)
• A running process may spawn child processes
• e.g., a man process may invoke your default pager, thereby spawning a more process.
• The command ps will let you see all of your running processes. Some useful
options include:
• -e – lets you see information about all running processes, even those that are not yours.
• -f – displays more detailed information
Processes
• A interactive process launched by the shell that is not a daemon is called a
job.
• Child processes would not be jobs
• Question: What is a daemon?
• To see your running jobs, issue the jobs command.
Jobs
• There are two was to run processes/jobs in the background:
1. Start the job as you normally would. Suspend the job. Tell the system to
run the suspended job in the background; e.g.,
• man sort
• CTRL^Z
• Bg
2. Start the job in the background using the
ampersand:
• man sort &
• Question: Which of these is a command line command and why?
Running processes/jobs in the background
• To foreground your most recently suspended or backgrounded job, type fg
• To foreground another job:
• Determine its job number, via the jobs command
• Suppose you were interested in foregrounding job number 3. You would then issue the
command:
fg %3
Foregrounding a job
• To kill a process:
kill –SIGKILL processID or kill –s 9 processID
• To kill a job:
 kill –SIGKILL %job-number
**Note the percent symbol!**
• To kill all processes by name rather than process ID:
kill –SIGKILL name
For example: kill –SIGKILL man will all instances of the man command as well as any
child processes
Killing jobs and processes

More Related Content

PPTX
Repetition Structures
primeteacher32
 
PPTX
Variables and User Input
primeteacher32
 
ODP
Cron
Iryney Baran
 
PPT
unix crontab basics
saratsandhya
 
PDF
Linux fundamental - Chap 14 shell script
Kenny (netman)
 
PDF
CRONtab Tutorial
Joseph ...
 
PPTX
Job Automation using Linux
Jishnu Pradeep
 
PPTX
Unix training session 3
Anil Kumar Kapil,PMP®
 
Repetition Structures
primeteacher32
 
Variables and User Input
primeteacher32
 
unix crontab basics
saratsandhya
 
Linux fundamental - Chap 14 shell script
Kenny (netman)
 
CRONtab Tutorial
Joseph ...
 
Job Automation using Linux
Jishnu Pradeep
 
Unix training session 3
Anil Kumar Kapil,PMP®
 

What's hot (20)

PDF
Linux talk | scheduled tasks
YashwantVarma1
 
PDF
Composer Tutorial (PHP Hampshire Sept 2013)
James Titcumb
 
PDF
While and For Loops
باسل قدح
 
PDF
Am I Idempotent?
Dennis Rowe
 
PPTX
unix- the process states, zombies, running jobs in background
Dr. Girish GS
 
DOCX
Automation m ysql_and_customer_photo
Manju Kb
 
PPTX
More Perl Basics
primeteacher32
 
PPTX
Terminal commands ubuntu 2
raj upadhyay
 
PPT
Linux50commands
NIRMAL FELIX
 
PPT
Linux file system
Abir Junayed
 
PDF
EMC Dojo Golang Meetup Cambridge
Xuebin He
 
ODP
Shell programming in ubuntu
baabtra.com - No. 1 supplier of quality freshers
 
ODP
Love Your Command Line
Liz Henry
 
PPTX
How to Add Swap on Ubuntu
VEXXHOST Private Cloud
 
PDF
Using filesystem capabilities with rsync
Hazel Smith
 
PPTX
Shell Script Tutorial
Quang Minh Đoàn
 
PPTX
Pydata beautiful soup - Monica Puerto
PyData
 
PPTX
Powershell alias
LearningTech
 
PPTX
Cse 241
vaminorc
 
PPSX
Sunil phani's take on windows powershell
Sunil Phani
 
Linux talk | scheduled tasks
YashwantVarma1
 
Composer Tutorial (PHP Hampshire Sept 2013)
James Titcumb
 
While and For Loops
باسل قدح
 
Am I Idempotent?
Dennis Rowe
 
unix- the process states, zombies, running jobs in background
Dr. Girish GS
 
Automation m ysql_and_customer_photo
Manju Kb
 
More Perl Basics
primeteacher32
 
Terminal commands ubuntu 2
raj upadhyay
 
Linux50commands
NIRMAL FELIX
 
Linux file system
Abir Junayed
 
EMC Dojo Golang Meetup Cambridge
Xuebin He
 
Love Your Command Line
Liz Henry
 
How to Add Swap on Ubuntu
VEXXHOST Private Cloud
 
Using filesystem capabilities with rsync
Hazel Smith
 
Shell Script Tutorial
Quang Minh Đoàn
 
Pydata beautiful soup - Monica Puerto
PyData
 
Powershell alias
LearningTech
 
Cse 241
vaminorc
 
Sunil phani's take on windows powershell
Sunil Phani
 
Ad

Similar to Processes (20)

PPTX
UNIX Notes
PandurangBiradar2
 
PPT
Processes And Job Control
ahmad bassiouny
 
PDF
Getting a CLUE at the Command Line
Emma Jane Hogbin Westby
 
PPTX
Process management in linux
Mazenetsolution
 
PPTX
04_ForkPipe.pptx
vnwzympx
 
PPTX
System Administration: Linux Process
lucita cabral
 
PDF
System calls
AfshanKhan51
 
PPTX
Advanced windows debugging
chrisortman
 
PDF
Linux Server Deep Dives (DrupalCon Amsterdam)
Amin Astaneh
 
PPTX
Managing Processes in Unix.pptx
Harsha Patil
 
PPTX
Managing Processes in Unix.pptx
Harsha Patil
 
PPTX
Process management in operating system | process states | PCB | FORK() | Zomb...
Shivam Mitra
 
PPT
Lect3 process
santosh rao
 
PPTX
Ultimate Unix Meetup Presentation
JacobMenke1
 
PPTX
Lpt lopsa
ketancmaheshwari
 
PPTX
The basics of hacking and penetration testing 이제 시작이야 해킹과 침투 테스트 kenneth.s.kwon
Kenneth Kwon
 
PDF
concurrency
Jonathan Wagoner
 
PPT
101 3.5 create, monitor and kill processes
Acácio Oliveira
 
PDF
Unit 10 investigating and managing
root_fibo
 
PDF
Process management
Akshay Ithape
 
UNIX Notes
PandurangBiradar2
 
Processes And Job Control
ahmad bassiouny
 
Getting a CLUE at the Command Line
Emma Jane Hogbin Westby
 
Process management in linux
Mazenetsolution
 
04_ForkPipe.pptx
vnwzympx
 
System Administration: Linux Process
lucita cabral
 
System calls
AfshanKhan51
 
Advanced windows debugging
chrisortman
 
Linux Server Deep Dives (DrupalCon Amsterdam)
Amin Astaneh
 
Managing Processes in Unix.pptx
Harsha Patil
 
Managing Processes in Unix.pptx
Harsha Patil
 
Process management in operating system | process states | PCB | FORK() | Zomb...
Shivam Mitra
 
Lect3 process
santosh rao
 
Ultimate Unix Meetup Presentation
JacobMenke1
 
Lpt lopsa
ketancmaheshwari
 
The basics of hacking and penetration testing 이제 시작이야 해킹과 침투 테스트 kenneth.s.kwon
Kenneth Kwon
 
concurrency
Jonathan Wagoner
 
101 3.5 create, monitor and kill processes
Acácio Oliveira
 
Unit 10 investigating and managing
root_fibo
 
Process management
Akshay Ithape
 
Ad

More from primeteacher32 (20)

PPT
Software Development Life Cycle
primeteacher32
 
PPTX
Variable Scope
primeteacher32
 
PPTX
Returning Data
primeteacher32
 
PPTX
Intro to Functions
primeteacher32
 
PPTX
Introduction to GUIs with guizero
primeteacher32
 
PPTX
Function Parameters
primeteacher32
 
PPTX
Nested Loops
primeteacher32
 
PPT
Conditional Loops
primeteacher32
 
PPTX
Introduction to Repetition Structures
primeteacher32
 
PPTX
Input Validation
primeteacher32
 
PPTX
Windows File Systems
primeteacher32
 
PPTX
Nesting Conditionals
primeteacher32
 
PPTX
Conditionals
primeteacher32
 
PPT
Intro to Python with GPIO
primeteacher32
 
PPTX
Variables and Statements
primeteacher32
 
PPTX
Variables and User Input
primeteacher32
 
PPT
Intro to Python
primeteacher32
 
PPTX
Raspberry Pi
primeteacher32
 
PPT
Hardware vs. Software Presentations
primeteacher32
 
PPTX
Block chain security
primeteacher32
 
Software Development Life Cycle
primeteacher32
 
Variable Scope
primeteacher32
 
Returning Data
primeteacher32
 
Intro to Functions
primeteacher32
 
Introduction to GUIs with guizero
primeteacher32
 
Function Parameters
primeteacher32
 
Nested Loops
primeteacher32
 
Conditional Loops
primeteacher32
 
Introduction to Repetition Structures
primeteacher32
 
Input Validation
primeteacher32
 
Windows File Systems
primeteacher32
 
Nesting Conditionals
primeteacher32
 
Conditionals
primeteacher32
 
Intro to Python with GPIO
primeteacher32
 
Variables and Statements
primeteacher32
 
Variables and User Input
primeteacher32
 
Intro to Python
primeteacher32
 
Raspberry Pi
primeteacher32
 
Hardware vs. Software Presentations
primeteacher32
 
Block chain security
primeteacher32
 

Recently uploaded (20)

PDF
Fortinet LAN Edge Architect FCSS_LED_AR-7.6 Certification Study Guide.pdf
sabrina pinto
 
PPTX
FIND ODD SHAPE OUT for placement activity.pptx
YESIMSMART
 
PDF
Left Holding the Bag sequence 2 Storyboard by Mark G
MarkGalez
 
PPTX
PPT Lapkas helminthiasiiiiiiiiiiiiis.pptx
ratnaernawati4
 
PPTX
Title The Power of Oral Communication (2).pptx
amankumar7762044
 
PPTX
The actual field of Real_Estate_CRM_Strategy.pptx
SanjivaMudada
 
PDF
Meatball of Canyon Valley sequence 1 storyboard by Mark G.
MarkGalez
 
PPTX
MASTERING COMMUNICATION SKILLS.pptxgdee33w
akramm8009
 
PPTX
beforjkkkvbjkklkccghjjjkjjjjjje after.pptx
JayeshTaneja4
 
PPTX
ASP MVC asderfewerwrwerwrefeewwfdewfewfdsfsd
faresslaam82
 
PPTX
Tags_of_Chaman_Lifestyle Balochistan.pptx
MuhammadAkramKhan9
 
PPTX
ASP MVC asderfewerwrwerwrefeewwfdewfewfdsfsd
faresslaam82
 
PPTX
Induction_Orientation_PPT.pptx for new joiners
baliyannisha12345
 
PPTX
Digital Marketing training in Chandigarh
chetann0777
 
PPTX
FARZ ACADEMY MRCP EXAM PREPARATION-GUIDE & TIPS.pptx
dawnmarketingmaveric
 
PDF
Invincible season 2 storyboard revisions seq2 by Mark G
MarkGalez
 
PPTX
tech vs soft skill .pptxhgdvnhygnuufcbnbg
spnr2427
 
PPTX
introduction to python in detail including .pptx
urvashipundir04
 
PPTX
Jaipur Sees Exponential Growth in Data Analytics Jobs Salarite Smart Hiring P...
vinay salarite
 
PPTX
Quattro Resourcing - Recruitment that works for you
neilsimon919
 
Fortinet LAN Edge Architect FCSS_LED_AR-7.6 Certification Study Guide.pdf
sabrina pinto
 
FIND ODD SHAPE OUT for placement activity.pptx
YESIMSMART
 
Left Holding the Bag sequence 2 Storyboard by Mark G
MarkGalez
 
PPT Lapkas helminthiasiiiiiiiiiiiiis.pptx
ratnaernawati4
 
Title The Power of Oral Communication (2).pptx
amankumar7762044
 
The actual field of Real_Estate_CRM_Strategy.pptx
SanjivaMudada
 
Meatball of Canyon Valley sequence 1 storyboard by Mark G.
MarkGalez
 
MASTERING COMMUNICATION SKILLS.pptxgdee33w
akramm8009
 
beforjkkkvbjkklkccghjjjkjjjjjje after.pptx
JayeshTaneja4
 
ASP MVC asderfewerwrwerwrefeewwfdewfewfdsfsd
faresslaam82
 
Tags_of_Chaman_Lifestyle Balochistan.pptx
MuhammadAkramKhan9
 
ASP MVC asderfewerwrwerwrefeewwfdewfewfdsfsd
faresslaam82
 
Induction_Orientation_PPT.pptx for new joiners
baliyannisha12345
 
Digital Marketing training in Chandigarh
chetann0777
 
FARZ ACADEMY MRCP EXAM PREPARATION-GUIDE & TIPS.pptx
dawnmarketingmaveric
 
Invincible season 2 storyboard revisions seq2 by Mark G
MarkGalez
 
tech vs soft skill .pptxhgdvnhygnuufcbnbg
spnr2427
 
introduction to python in detail including .pptx
urvashipundir04
 
Jaipur Sees Exponential Growth in Data Analytics Jobs Salarite Smart Hiring P...
vinay salarite
 
Quattro Resourcing - Recruitment that works for you
neilsimon919
 

Processes

  • 2. • A process is created every time you issue a command. It is an instance of a running program. • Question: What is an instance? (Think programming) • A running process may spawn child processes • e.g., a man process may invoke your default pager, thereby spawning a more process. • The command ps will let you see all of your running processes. Some useful options include: • -e – lets you see information about all running processes, even those that are not yours. • -f – displays more detailed information Processes
  • 3. • A interactive process launched by the shell that is not a daemon is called a job. • Child processes would not be jobs • Question: What is a daemon? • To see your running jobs, issue the jobs command. Jobs
  • 4. • There are two was to run processes/jobs in the background: 1. Start the job as you normally would. Suspend the job. Tell the system to run the suspended job in the background; e.g., • man sort • CTRL^Z • Bg 2. Start the job in the background using the ampersand: • man sort & • Question: Which of these is a command line command and why? Running processes/jobs in the background
  • 5. • To foreground your most recently suspended or backgrounded job, type fg • To foreground another job: • Determine its job number, via the jobs command • Suppose you were interested in foregrounding job number 3. You would then issue the command: fg %3 Foregrounding a job
  • 6. • To kill a process: kill –SIGKILL processID or kill –s 9 processID • To kill a job:  kill –SIGKILL %job-number **Note the percent symbol!** • To kill all processes by name rather than process ID: kill –SIGKILL name For example: kill –SIGKILL man will all instances of the man command as well as any child processes Killing jobs and processes