The Linux Command Line Chapter 10

Slides:



Advertisements
Similar presentations
June 1, 1999Foreground/Background Processing1 Introduction to UNIX H. Foreground/Background Processing.
Advertisements

Processes and Job Control. Foreground and Background (1)  Unix is a multi-tasking operating system –some of these tasks are being done by other users.
Job Control Copyright © Software Carpentry 2010 This work is licensed under the Creative Commons Attribution License See
Introduction to Unix – CS 21 Lecture 10. Lecture Overview Midterm questions Jobs and processes description The foreground and background Controlling jobs.
Process Relationships Terminal and Network Logins Process Groups and Sessions Job Control Relationships.
Lesson 10-Controlling User Processes. Overview Managing and processing processes. Managing jobs. Exiting/quitting when jobs have been stopped.
A Practical Guide to Red Hat ® Linux ®, Third Edition. © 2007 Mark G. Sobell, Prentice Hall,
System Programming Project 2 Due : 4/19...?. Foreground & Background Foreground job Foreground job Only one at moment Only one at moment Having user’s.
1 The Shell and some useful administrative Unix Commands How Unix works along with some additional, useful administrative Unix commands you might need.
Chapter 13 Processes. What is a process? A process is a program in execution A process is created whenever an external command is executed Whenever the.
Process Relationships Chien-Chung Shen CIS, UD
Linux+ Guide to Linux Certification, Second Edition
Processes & Daemons Chapter IV / Part III. Commands Internal commands: alias, cd, echo, pwd, time External commands, code is in a file: grep, ls, more.
Lecture 3  Shell Variables  Shell Command History  Job / Process Control  Directory Control.
5 UNIX Processes. Introduction  Processes  How to list them  How to terminate them  Process priorities  Scheduling jobs  Signals.
1 The Shell and some useful administrative Unix Commands How Unix works along with some additional, useful administrative Unix commands you might need.
Operating Systems Yasir Kiani. 22-Sep Agenda for Today Review of previous lecture Process management commands: bg, fg, ^Z, jobs, ^C, kill Thread.
Managing Processes CSCI N321 – System and Network Administration Copyright © 2000, 2011 by Scott Orr and the Trustees of Indiana University.
Chapter 4 UNIX Common Shells Commands By C. Shing ITEC Dept Radford University.
The process concept (section 3.1, 3.3 and demos)  Process: An entity capable of requesting and using computer resources (memory, CPU cycles, files, etc).
The Shell Chapter 7. Overview The Command Line Standard IO Redirection Pipes Running a Program in the Background Killing (a process!)
Linux+ Guide to Linux Certification, Third Edition
Processes and Threads CS550 Operating Systems. Processes and Threads These exist only at execution time They have fast state changes -> in memory and.
Additional UNIX Commands. 222 Lecture Overview  Multiple commands and job control  More useful UNIX utilities.
1 Day 10 Process Control. 2 Running a program in the background Here’s a trick: You can actually log onto a UNIX server as many times as you want Try.
Process Control. Module 11 Process Control ♦ Introduction ► A process is a running occurrence of a program, including all variables and other conditions.
SUSE Linux Enterprise Server Administration (Course 3037) Chapter 6 Manage Linux Processes and Services.
Managing processes and services. 1. How Linux handles processes 2. Managing running processes 3. Scheduling processes.
Linux+ Guide to Linux Certification, Second Edition Chapter 10 Managing Linux Processes.
RH030 Linux Computing Essentials
The kernel considers each program running on your system to be a process A process lives as it executes, with a lifetime that may be short or long A process.
Hands On UNIX II Dorcas Muthoni. Processes A running instance of a program is called a "process" Identified by a numeric process id (pid)‏  unique while.
Agenda  Working with Processes: Purpose Running Programs within same process (execl, execlp, execle, execv, execvp, execve) “Spawning” other process (fork,
Scis.regis.edu ● CS 468: Advanced UNIX Class 4 Dr. Jesús Borrego Regis University 1.
EMT 2390L Lecture 5 Dr. Reyes Reference: The Linux Command Line, W.E. Shotts.
Linux+ Guide to Linux Certification Chapter Eleven Managing Linux Processes.
1 Lecture 6 Introduction to Process Management COP 3353 Introduction to UNIX.
Course materials may not be reproduced in whole or in part without the prior written permission of IBM. 5.1 © Copyright IBM Corporation 2008 Unit 9 Working.
PTA Linux Series Copyright Professional Training Academy, CSIS, University of Limerick, 2006 © Workshop VI Scheduling & Process Management Professional.
CSC414 “Introduction to UNIX/ Linux” Lecture 3
Agenda Managing Processes (Jobs) Command Grouping Running jobs in background (bg) Bringing jobs to foreground (fg), Background job status (jobs) Suspending.
Unix System Administration Controlling Processes Chapter 5.
Agenda The Bourne Shell – Part I Redirection ( >, >>,
An Introduction to processes R Bigelow. A Unix Process A process in Unix is simple a program The Unix system is made up of a group of processes all interacting.
Process Relationships Chien-Chung Shen CIS/UD
Linux 101: Managing Jobs, Schedules, and Backups Purdue Linux Users Group Speaker: Thor Smith.
IT244 - Introduction to Linux / Unix Instructor: Bo Sheng
Chapter 11 – Processes and Services
The Linux Command Line Chapter 14
The Linux Command Line Chapter 2
The Linux Command Line Chapter 29
The Linux Command Line Chapter 27
Operating Systems Lecture 12.
The Linux Command Line Chapter 24
The Linux Command Line Chapter 11
The Linux Command Line Chapter 26
The Linux Command Line Chapter 28
CHAPTER 13 Processes.
The Linux Command Line Chapter 9
The Linux Command Line Chapter 17
The Linux Command Line Chapter 25
The Linux Command Line Chapter 14
Lab 6: Process Management
Linux Filesystem Management
Lecture 6 Introduction to Process Management
The Linux Command Line Chapter 5
The Linux Command Line Chapter 11
The Linux Command Line Chapter 24
The Linux Command Line Chapter 26
The Linux Command Line Chapter 27
Presentation transcript:

The Linux Command Line Chapter 10 Processes Prepared by Dr. Reyes, New York City College of Technology

Processes When the system starts, the kernel executes the init program init runs several shell scripts that start the services When a program launch another program, these are know as parent process and child process respectively. Each process is assigned a process ID (PID)

Processes Commands ps – command used to view a snapshot of the processes top – command used to view process dynamically

Processes Commands & - used after the process name to send it to the background jobs – command used to list the jobs that have been launched from our terminal.

Processes Commands fg – command used to return a process to the foreground To terminate a process use Ctrl+C To stop a process without terminating it use Ctrl+Z

Processes Commands kill – command used to kill a process killall – command used to send signals to multiple processes matching a specified program or username

Controlling a Process Practice Execute the following commands xlogo Ctrl + C xlogo & ps jobs fg %1 Ctrl + Z ps (Check the PID of xlogo) kill PID (where PID is the Process ID of xlogo) kiallall xlogo