Hello everyone and welcome
to this video.
In this video. We are going to see the process Management
in Linux. So in case
you want to see any processes that
has been running into your Linux operating
system, then you can simply use the command which is
PS.
PS stands for process
As you can see this is the output which gives you
the PID, which is the process ID attached
to that particular process, which is
a number you can also see that TTY time
and the CMD.
Alright, so this is the output of
the PS command now in case
you want to see all the processes that are being
running in the background. You can simply type PS
space - EF and
it is going to give you the list of all the
processes.
Similarly, you can use the command which is
PS aux and it will give you the similar
output now remember?
when you type the command PS aux
here a stands for to show all
the processes for all users U stands
for display the processes users or
owner and X stands
for to show the processes which are not
been attached to the terminal which basically
means you are able to see all the processes that are
being running into the background as well all so to
note.
PS space - EF and PS aux
both exactly gives the same
output.
That's why I have shown both the commands
over here. Alright, so let's quickly run
Nano XYZ and quickly start
a new process. So you can see I
have opened up the Nano terminal and obviously
if we start any command
it is going to run a process and a new
process ID is going to get assigned to
that process. Let's quickly verify that
let's go into a new terminal.
And type the command + ox and here we
are going to grab which is basically filter the
process name, which is nano
and hit enter.
And you can see over here here is the process which
is being running. So the command that we executed was
Nano XYZ and the
process ID that has been assigned to
this process is 9 1 0 3
a perfect till here now. Let's
see a new command which is kill using
this command. We can kill any process
that has been running. So let's
quickly kill the process that is nano XY
said which is open over here.
So we have copied the process ID and hit enter and
this should kill the process and you can see we got
error which says received signal Hub
or signal term. This basically means
the process has been terminated. I hope you
guys understood how you can see the processes which
have been running using the PS aux command and how
you can kill processes. Thank you.