Hello, everyone.
In this lesson, I'm going to talk about the absolute path and the relative path.
Also, I'm going to talk about the command options and arguments in Linux.
We have two different types of batting.
We have the absolute path and we have the relative path.
And absolute path.
We have to write the complete path.
And also we have to start the path from the root directory.
The forward slash.
Then we continue writing the the name of the directory and we separate them by typing the slash.
So you can see here in this example.
So this is the command CD.
We want to change the current directory in order to go to the, to the directory of test here.
So we can see here this is the forward slash, this is the root directory and this is the directory
home slash Tom So we separate between the directories by typing the slash.
Then slash lfcs, then slash test.
So this is the way how we write the absolute path.
You can go to now to the relative path.
The relative path path is basically defined as a short path.
As we already inside the directory or the working directory, we don't start the path from the root
directory.
The forward slash, for example, we can see here we are already inside.
The current working directory and we would like all listeners to go to the next directory so we don't
have to write the complete path.
So this is the relative path.
It's short.
We just, uh, we're going to just change the current path to the next path.
But here we have for the absolute path, we write the complete path from the beginning till the end.
Majority of the commands usually have options and we run these options after the commands.
We can write or run these options either as a short notation or a long notation.
So as we can see here, this is the command we have to is to list the directory contents and then we
have the options.
And this option, either we write them as a short notation or a long notation.
For example, we have the dashes.
So we were just this is the short notation.
And we can also write the long notation.
Dash.
Dash size.
And we can see here is the argument comes after.
The argument comes after the options here.
For instance, we have a slash fa and slash.
This is the we would like to list the content of what?
Of the root directory.
And here we would like to list the content, for example, for the slash home slash tom slash lfc's.
So for the options, we can write them either short notation, as we can see here, or a long notation,
and the arguments comes after.
So we just need to remember this commands options, then arguments.
The main reason for writing options and arguments after the commands is to adjust the behavior of these
commands.
Therefore, when when we pass options and arguments to the command, for example, here we want to adjust
the behavior and execution of these commands in order to receive different results.
Thus.
That's it for this session.
Thank you and see you in the next lesson.