At any given time, a ring system typically has hundreds or sometimes even thousands of processes running
simultaneously.
It processes a simple a program that runs running and using resources.
It includes a terminal web server and running commands.
Any databases in the graphical user interface and much more.
Any good Linux administrator, particularly a hacker, needs to understand how to manage the processor
to optimize their systems.
For example, once a hacker takes control of a target system, they might want to find and stop a certain
processes, like an entourage application or firewall to do so.
The hacker world first need to know how to find the processes.
So the hacker might also want to set the scanning script to run periodically to find vulnerable systems.
So we will also look at how to schedule such a script.
So in this lecture, we will learn the many dos processes.
So first, you will learn to weave and find processes and how to discover which processes are using
the most resources.
Then you will learn to manage persistence by running them in the background, prioritizing them and
killing them if necessary, not loading well.
So finally, you will learn to schedule the processes to run on specified dates and dates at any specific
times, leaving processor processes.
In most cases, the first step in managing processes is to leave.
Word processors are running on your system.
The primary primary tool for leaving processes and one of the Linux administrators best friend, is
P as command here.
So run it in your common line like me and to see what processes are active, the Linux kernel, the
inner core of the operating system that controls nearly everything, assigns a unique process idea to
each process sequentially as the processes are created.
When working with these processes in Linux, you often need to specify their process.
I this year.
So, so it's so far more important to note that the Pearce's idea of the process than the name of this
process or process idea is more important than the name of Perseus.
So all along, the app is common, doesn't really provide you with much information.
So running the command without any options lists the process has started said to be invoked by the currently
logged in user in your case is Carly.
Uh, so.
And what processes are running on the terminal?
So here it.
Simple says that the base shell is open and running and what?
We run the p as com month here.
So we want to we want and need far more information than that particular Windows process, run by other
users and by the system in the background.
Without this information, we know very little to what is actually taking place on our system.
So we're running the command with the options.
Uh, Alex will show our processes running with the system for all users.
See if it's run it p, I'll see it.
So you can see here, we can see all the processes is running here and what process is which user and
present.
Say the old CPU is running these processes here, as you can see here.
We have Carly and Reed here.
So.
Not that you don't prefix these options with a dash.
So everything is in lower case because it is a case sensitive.
As you can see, we have not other than a dash here, and everything is in a lower case.
Because an index is case sensitive, using uppercase options will give significantly different results.
As you can see the common now so many re processes that likely run off the bottom of your screen.
So the first process is in it.
Yes.
So list in the final column here, the last person is the command.
We ran to display.
Our folks here, as you can see here and user, is there one of these Colligan, which is my user account
here?
You know, Linux.
Many of the details and like here, um.
Process idea, CPU time, uh, memory command and so on here may be different on your system, but should
have the same format for our purposes.
Here are the most important columns in this output.
So the user is the user for in the process process.
It is, as you know, as we discussed earlier, this is the process CPU them is them at the present
of the CPU.
This process is using, uh, so memory here is the present of memory this process is using, and the
command is the name of the command that started the process in general to perform any action in a process.
We must specify the process idea.
So let's see.
You have to use these identifiers to our advantage here.
So.
Filtering by process name.
I want look at those pictures.
Yes, see.
So actually in this in this picture, we will do it.
So I am waiting you in this section.