Now let's cover some basic Linux commands.
The first thing we need to do is to open the terminal.
So I'm going to click on this application.
And then I'm going to type the password of this virtual machine which is called Osint.
And from this terminal window we are going to use Linux commands and run some Osint tools.
And I'm going to cover how we can use many Osint tools in a future section.
So the first command that I would like to show you is called PWD, which will print your current working
directory.
So let me hit enter.
We can see that right now we are in root as you can see.
So let me open the file explorer as root.
And if I change my directory to root we can see that there is a folder called GitHub tools.
So how can we display all folders and files that are in our current working directory?
To do this all we have to do is just to type ls, which will list all the folders and files in our current
working directory.
And since we are in root, then we should see this folder.
So let me hit enter.
And as you can see this is the folder that is in root.
The next command that I would like to show you will change your working directory.
So let's say that you would like to change your directory to this folder.
So to enter this folder all we have to do just to type CD.
And then the folder name.
So I'm going to type GitHub minus tools.
Or you can type the first letters of the file or the folder.
So I'm going to say G and then click on tab on my keyboard which will autocomplete the folder name.
So I'm going to hit enter.
And right now we are in the GitHub tools directory.
So let me say pwd and hit enter.
And as you can see right now we are in root GitHub tools.
So let me go to the folders that are in this directory.
So I'm going to say CD.
And since I do not know what files and folders that are in this directory, I always like to click on
tab once, which will autocomplete the folder name, and then I'm going to hit enter.
Now let's say that I would like to move to the previous directory.
So right now I am in TJ Osint notebook.
And I would like to come back to GitHub tools.
So to do this I'm going to use the same command that I've used before CD and then space and then double
dots and then hit enter.
And this will take me back to the GitHub tools.
Now if I would like to use previous commands that I've used before, then I can click on the up arrow
and you can see that this is the last command that we have used.
And if you would like to use the previous one.
So I'm going to click on the up arrow again.
And you can keep doing this until you find the command that you would like to execute again.
Now let's say that you would like to know what a certain command does and what options that you can
use with a certain command.
In this case, we can use the manual command like this, followed by the name of the command that you
would like to find it's manual.
So I'm going to say LZ and hit enter.
And as you can see this will tell us that this tool will list directories content.
And here we can see a full description of this tool.
We can also see that we can use arguments with this command.
So we can see that we can use minus a, minus B, etc..
Now to exit the manual all you have to do is just to type Q on your keyboard.
And now we have come back to our terminal.
There is another command that you can use similar to man, which is called help.
That will show you the arguments that you can use with a certain tool.
So all you have to do just to type for example, the tool name LZ for example, and then minus minus
help and then hit enter.
And as you can see these are the arguments that you can use with this tool.
For example, let's use the minus l argument which will use a long listing format providing more information
about the folders and files in our current working directory.
So I'm going to hit enter and then say LS minus L and then hit enter, which will give us more information
about this folder.
So we can see the creation time, the folder size, the group and owner of this folder and the permissions.
Now there will be a link in the description that contains a number of Linux commands that you can use.
Now obviously you don't need to learn all of these commands.
These are all commands that you will learn as you use Linux more often.
But you can see the command name.
For example, here we have CP and the description which will copy one or more files to another location.
Now most Linux tools that you are going to use use only the command line interface and do not have a
graphical user interface.
And we are going to learn how to use all of these tools in a future section.