Running processes in the background in Linux, whether you are working from the command line or the
graphical user interface you're working with in a show.
So all comments are thrown or executed from within the shell.
So I mean, if they run from the graphical interface, then execute the command.
The show waits until the command is completed before opening it under command prompt at times.
Uh, you may want the process to run in the background rather than having to wait for it to complete
in the terminal.
For instance, say we want to work on a script in a text editor and so have called our text editor.
In this case, our mouse pad by entering here mouse pad.
Mousepad, for example, in the script here, as you can see here, we open it, but we cannot import
any comments here.
So in this case, the Basho will open the emails per text editor to create a new script here, as you
can see here.
Uh, so while we work in the text editor, the terminal is occupied with running the text editor.
So if a return to the terminal and we shall see that is running our text editor and we have no new prompt,
for example, unless like then we have no new prompt to allow us to enter more commands.
So we called, of course, opening another terminal like that.
Uh, and.
Use this common sewer like that.
And.
But a better option to save resources and the screen real estate is to start a text editor running in
the background.
Uh, so running a person in the background simply means that it will continue to run without needing
to needing the terminal in the swinging, the terminal is freed up for other other jobs and duties.
So to start then takes editor in the background.
Just opened an ampersand.
Here, I will show you.
So, uh, we deleted, um, closed our, uh, mouse pad here.
So now, uh, for if we want to.
Started texting during the background, just opened an ampersand to the end of the comment like that,
for example, mousepad um.
Example, uh, a text here and ad ampersand, um, here and enter.
So as you can see here, we can see our society is three thousand two hundred eighteen and now we can
use commands here.
So.
So now the text editor opens here like that's determined a lot of times a new comment prompt so we can
enter other comments on our system while also editing our new script here.
Uh, example text.
So this is effective for any process that may run for a significant length of time.
When you want to use HTML as a hacker, you will find this useful for running multiple terminals within
multiple tasks to save resources and the screen space.
Moving process to the foreground, if you want to move the process running in the background to the
foreground, you can use the F G F G command so that if you command requires the process idea here.
Uh, press side here and of the presses you want to return the foreground as shown here.
For example, the twenty thousand two hundred eighteen here jab not found.
So we will now find that these, uh, my examples and here, for example, uh, PSP is out here and
grab examples here.
Uh, this is the example of texts or three, uh, three thousand two hundred eighteen.
Here so.
If you don't know, they're here.
Uh, this is the piece here.
Three hundred.
So you can see here.
Like that, so.
Now I want to show you the scheduling processes.
So as a hacker, you're.
Uh, what Linux system administrators and hackers often need to schedule this tool will run at a particular
time of day.
So a system administrator might want to schedule system backup to run every Saturday night at two a.m.,
for example, a hacker might want to set a script to run the perform reconnaissance on a regular basis,
finding open ports or vulnerabilities.
So in Linux, you can accomplish this in at least two ways with add and uh, and current currently.
We have two comments to do that, so the Ad Month is a damning e-book from Perseus, useful for scheduling
a job to run once at some point in the future.
The current deal is more suited for scheduling tasks to occur every day, every week, every month,
and we will cover this in detail in later lectures.
So we use the ATM at Diamond to schedule the execution of a program, our command or set of commands
in the future.
So the syntax is simply the at command, followed by the time to execute the process.
The time argument can be provided by in various formats here, for example.
What we can do like that, and it's open this, so this will be useful, and I will show how this looks.
So, for example, at seven, 12 p.m., for example, at seven, 20 p.m., June 25.
And actually, uh, and it's I was twenty five.
Know, for example, at noon.
At noon.
One, for example, or August 23.
And two more road.
At No.
Plus 20 minutes.
That's now put hours, 10 hours at now, plus five days at now, plus three weeks and at 7:20 pm.
Uh, for example, uh, six or for example, September here, uh, September, uh, nineteen uh, in
two thousand twenty, uh, twelve.
Yeah, twenty twenty two here.
So this is scheduled, uh, to run at seven twenty p.m. on the current day.
This scheduled to run at seven, uh, twenty p.m. on August 25.
This is scheduled to end around noon.
This scheduled to run Aug. 23 and, uh, tomorrow and we can specify and, uh, uh, time as well.
So, uh, when you enter the them on, uh, with the specified time at goes into interactive mode and
you are greeted with an at prompt.
So let's try it, for example, at seven.
Uh, four to six.
Let's hear.
Yes, install it.
Currently, my passport, yes.
It may take some minutes, uh, so it's actually 50 megabytes here, so it will download now.
Here at, uh, so at, uh, seven, four to seven, as you can see here now is four six.
And now we will now use common sense, for example, road or, uh, for example, Ellis.
So.
Then it is a snippet.
Uh, well executed here, for example, uh, see they here home.
Like that, so.
Managing processes in Linux is a is a key skill for every Linux user and hacker, so you must be able
to leave, find, kill, prioritize and schedule processes to make sure Linux instance optimally.
A hacker often will will need to find processes on the target so they want to kill, such as the antivirus
software or a firewall, so they will also need to manage multiple processes in a reasoned attack and
prioritize them.