Hello and welcome to Command Line.
In this video, we can learn about
Linux system commands one.
I'm Christopher Haler and let's
begin our learning
objectives for this video.
We're going to learn a little bit
more about the SUDO command kind of
refresher learning the Apte
get command, understand the
Who am I command and understand
the unnamed command as well
or at pre assessment using
the Suto command allows users
to run programs as
is this true or false?
The answer is true.
We learned about this in a previous
video where you need to use
the pseudo command if you need to
have those elevated privileges
in order to install commands,
install new programs and
run these functions as root.
So just like we learned before,
the pseudo command runs commands as
root. And it's very important
to make sure that if you're running
through errors that, you know,
should work properly, make
sure you're running these commands
as root.
So make sure you're using the SUDO
command.
I can't tell you how many times from
my personal experience where
I was able to solve
a problem with either a
user or myself, where I
realized that I was not running a
command as I wasn't using
the pseudo.
So keep that in mind.
Always use that first during
your troubleshooting.
All right, and that we had the act
get command now, what this does
is it allows you to install new
packages, new programs
for your installation
that you may not have already.
And you can also list and search
for available packages as well.
So and keep in mind,
you usually need to permissions
in order to be able to
install these as well.
So let's give a quick demonstration.
So I want to
list for a program called
Extern.
And as you can see, it has
this installed in there as
well already.
So already have this program
installed. Now, let's say I want a
program called Terminator
and you can see it does not have
that installed in there as well.
So in order to install this
type pseudo afte
get installed
and Terminator.
It's going to ask for the password
and make sure it's the right one,
and then it'll run through a bunch
of different operations, it'll tell
you how much it's going to download.
And if you sure can hit the
energy and it'll go
through, download all of this,
install it for you and tell
you if there's any any issues
or errors while it was setting this
up.
So it's important to
make sure that you're running these
ads like we were saying,
and now I can use the
Terminator command.
And check it out.
This is our new program that we just
downloaded,
very useful.
Who am I command now?
This is the command to show who the
current user is.
And it's very useful, especially
on an SSA, to retain the connection
where you may or may not know
exactly which user account you're
in. So in order to
run this command, it'll show you
exactly which user account you
are using at that time.
So it's useful to know
and it's a
tool you're going to use quite often
while you are on the show.
So as you can see,
I can type who am I?
And says I'm a user.
And as you can tell already from the
shell, we are user
at User Virtual Machine, which
is the name of this machine.
Now let's say if I ran Sudo,
who am I?
Comes as route because we were
running this.
Who am I. Command under
Suda.
So it's running as root.
So in my command said
hey you route because route is
running this command.
Then we have the you name Commando's
well, and what this does is it helps
displays all the limbic system
properties as well, and
we can use the dash for all so we
can get all the information about
our current the next installation
and use that to our advantage,
or if we were an attacker, to maybe
even help find any vulnerable
applications, vulnerable
services, any criminal
exploits that may be active for that
specific Linux distribution.
So come over here and
we are going to type in your
name and your name just
by itself is going to say, hey, you
have Linux, so
do a and this
will give us more information about
our machine.
This is our machine.
They use a virtual machine is the
one I created when I created this
virtual machine.
So show us our kernel
and when it was installed as well.
So this is important to keep in
mind, and it's useful
from a penetration test perspective
as well. So you can hopefully try
and find any exploits.
I post assessment which
command would search through
available packages for a terminal
program?
Is it a ticket
terminal B C,
you have to get terminal
C at least terminal
or D act dash dash
list terminal.
The answer is C, at least
terminal.
So this will allow you to search
through any
distribution information for
a program named Terminal
to get Terminal four, A
and B are used to install
a program named Terminal.
And the list
terminal is not a valid command for
the command.
All right, so in this video, we
learned the pseudo command line, the
exit command, understood
the who in my command and understood
the unified command as well.
And I hope to see you in the next
video.