Computer Services & Repairs
Chicago and Suburbs
 

Table of Contents

 

5.09 Jobs Control (precesses) Utilities

ps - process status report a snap shot of the current processes

Options:

-a all with tty

-A all

-e environment

-f full

-h header

-j jobs

-l long

-m memory

-t terminal

-u user

-w wide

-x includes



pstree - display tree of processes (parent and child)

Options:

-p shows PID's



top - display Linux tasks

Options:

-d time delay

-P pid processes

-q no delay

-S cumulative

 

Interactive Options for top command:

space immediately update display

A sorts tasks by age with newest listed first

f or F adds or removes fields from the display

h display help screen

k kills a process. You will be promped for the pid number of the process you want to kill and the signal to send to it. A normal signal is 15

M sorts processes by memory used in descending order

n changes the number of processes to display

N sorts tasks by pid numerically

o or O changes the order of displayed fields

s changes the delay between updates

S toggles cumulative mode on or off

q quit

T sorts by the amount of processor time the process has used in descending order, either cumulatively or since the last refresh of the top screen.



jobs - display a list of currently running jobs



fg - brings a job to the foreground


Example:

[bash]$ fg PID number



bg - moves a process into the background (Use CTRL-Z before putting the job in the background)



& - when placed at the end of the commands, puts a running program in the background


Example:

[bash]$ d & e & f &



kill - terminate a process

Options:

-s signal

-l list # sigterm(15) is normally sent when you want to kill a process

-p print

pid process ID



killall - kill process by name

Options:

-signal signal

-I interactive

-l list

-v verbose


 

uptime - Tell how long the system has been running

 
 
   

Copyright 2006 © Burnnet Computers LLC.