Linux Administration Analysing Processes Flashcards
every program is run as a _______
process
what is a process
instance of a running program
command to check the running process
ps
what does ps -f do ?
displays the full information of each process, including the user who owns the process and the command line arguments used to start the process.
what does ps -fe do ?
It shows all processes running on the system, including those of other users
how to show dynamic real-time view of processes and tasks
top
what exactly does top show
PID
PR
SHR
VIRT
USER
%CPU
TIME+
NI
%MEM
what is PID
Shows task’s unique process id.
what is PR
Stands for priority of the task.
WHAT IS SHR
Represents the amount of shared memory used by a task.
what is VIRT
Total virtual memory used by the task.
what is USER
User name of owner of task
what is %cpu
Represents the CPU usage.
what is time+
CPU Time, the same as ‘TIME’, but reflecting more granularity through hundredths of a second
what is NI
Represents a Nice Value of task. A Negative nice value implies higher priority, and positive Nice value means lower priority.
what is mem%
Shows the Memory usage of task.
check if the vim or bash process i running
ps -fe |egrep “vi|bash”
How can you identify conclusively the process ID (PID) for each of the bash shell?
ps -fe | grep “bash”
what is a job
display the status of all the background jobs that are running or stopped in the current shell.
how to list all jobs
jobs
how to start httpd
service httpd start
or
systemctl start httpd
how to kill process
kill [process_id]
kill 12593
how to bring process to the foreground
fg %[job_number]
what are signals
Signals are used to notify a process or thread of a particular event.
Signals are software interrupts.