Command, Syntex, every time you run a command, you have the option and you have an argument, command
typically have the Syntex like command, like as if you are running command, let's say, else the command,
the option is going to be the minus L. or LTI or whatever.
We used an argument.
If you are looking for a specific fall now, what are the options?
Again, it modifies the way that a command works usually consist of a hyphen or dash, followed by a
single letter.
Sometimes some commands accept multiple options, which can usually be grouped together for a single
hyphen.
And what are the arguments?
Most commands are used together with one or more arguments.
Some commands assume a default argument if none is supplied and arguments are optional for some commands
and acquired by others.
Let's look at our Linux machine and I will explain to you exactly how the command syntax works.
So we are in this Linux machine again.
The first thing you always have to do is find out who are you or how rich you are.
You logged in as though you do.
Who am I?
You are yourself.
Second thing, which director you are in your own slash home and slash user.
This is your home directory.
And by the way, every time you type CD, no matter which directory you are and you're always going
to come back to your home directory.
Now when I mean by command, so the first when we run command ls in your directory you will see all
the directories and files it has without other details that you get.
So when you use the option, so you do else minus L..
This will list.
Everything that you have in your home directory, and then it will also give you all the details, whether
it's a directory file size, who owns it and all the bunch of stuff.
So you adding the option with minus.
So options can also be grouped with when I meant the group is a means minus L, and you could add another
option to it, which is T, so you see the it will.
List all the contents of your directory by the time they were created.
Then when you do another option with that else minus LTA, it will still give you the all the listing,
but it will list all the newest files or directories starting at the bottom and the oldest one from
the top.
So that covers are URLs as a command.
And then the second one is the option which we use a list minus L tr.
And what do we mean by argument.
Let's look at the argument again.
Argument can be used to be more specific, meaning, let's say if you wanted to know, just a file board.
So you do X minus L be a R T, this is going to only list.
The file baat if you want to know the details about the file baad, who owns it was a commission on
it.
You could just use that argument to list this.
Now you have command, you have options and you have argument.
If you wanted to, let's say, delete a directory, which is, by the way, the command to delete is
R.M. remove minus F, which is to remove without asking you whether they should delete it or not.
So you could just move Linus F and then let's say I want to remove Sinovel.
And when you hit enter, it's going to say, cannot remove Seidenfeld, it's a directory, so we have
to use an option to remove it and Touru to remove a directory with an option.
It is to let's say if this time we take out F and we just do R, so our is an option to remove a directory.
So when you hit enter it will remove the Seinfeld.
And how do you validate that.
You do a list minus all TR and you're going to see in your listing.
Seinfeld directory is gone and I want you to recreate it again as mkdir.
Sinovel.
You do a lesbian assault here and there you go, this has at the bottom, it has your new directory,
Seidenfeld.
So again, to wrap up this lesson, we covered the command, the option and argument and the best way
to find out which options you have available with the command you always run, man, which is stands
for manual and else, which is the command.
When you hit enter, it will give you a user command, a manual which will give you all the options,
like if you run minus A it will ignore entry, starting with DOD, if you uppercase A, B and C and
so on, and you could just hit space to go down and see other option, keep hitting space, keep hitting
space, keep hitting space and you see all the different options.
And by the time you get to the bottom and you cannot hit space anymore, you could just hit queue to
get your product back.
You could also run a man else hit enter.
And if you just wanted to view the first page reja without going any further, you could just simply
quit out of it right away instead of just hitting space base and go to the end.
So you hit.
Q So this is what primarily covered in this lesson.
Again, command option, an argument.