Most Linux distributions include an online manual for looking up information on shell commands, as
well as a lot of new utilities included in the distribution.
You should become familiar with the manual because it's invaluable for working with commands, especially
when you are trying to figure out various command line parameters.
In this lecture of our course, we will learn about how to interact with the Bash manual.
My name is Stephan and let's get started.
The man command provides access to the manual page stored on the Linux system Entering the man command,
followed by a specific command name, provides the utilities manual entry.
For example, in this case, we're going to write the man here, which is we're going to see almost
all the commands.
And as manual, which is the most important, one of the most important commands in Linux ecosystem
here.
So notice this command here.
We have also the description paragraphs, the synopsis and the name here.
As Linux said, this is the list directory contents.
We have description here, which is the list information about the files and or the current directory
by default.
And we also can sort entries alphabetically.
If none of the c, f or two is x or sort is specified.
So mandatory arguments is a long options are mandatory for short options too as written here.
So when you use the Mac command to view the comments manual page, they are displayed with something
called pager.
So a pager is utility that allows you to pick a page to display text as you can page here.
For example.
Page here.
With the various texts here and scroll down so you can also use the arrow keys to scroll forward and
backward through the man page text.
Assuming that your terminal emulation package supports arrow key functions, so when you are finished
with the man page press Q Press Q to exit as here press Hutch for help or Q for quit here.
So we're going to press the Q here and here, and the man is gone and we are finished with man pages.
And as you can see here, the man page is gone whenever we've written the Q here.
Oops.
What what happened here?
So the manual page here divides information about the comma into separate sections, and each section
has a conventional naming standards.
Here we're going to make another man here, man Cat here.
So here we have the name.
This name here.
This place.
Common name and a short description.
In this case, Cat is consented files and print on the standard output.
And we also have synopsis here.
Actually, let's delete this synopsis here.
The synopsis shows command syntax.
So firstly, we enter the cat, then option and then lastly file.
And we also have the configuration.
The configuration provides information configuration information here.
So we also have the description here, the description.
The description describes commands generally.
So as you can see here, the concentrate files to standard output with no file or when file is read
standard output.
And we also at the bottom here, we should go to bottom.
And we have the.
It's copyright examples author reporting bugs um the copyright and see also page here in cat command
so the copyright defines the command obviously copyright defines the command code copyright status.
In this case, the copyright is Free Software Foundation, uh, GPL, V3 plus version three plus.
And there is no variant to the extent permitted by law.
This is a free software.
And we also have the author here.
The author, uh, obviously provides information on comments developers written by the Torbjorn Grandel
and Richard Stallman.
And we also have the see also.
So this is the tech.
So this see also refers similar available comments in this case, the similar available command is tech
here.
So not every comment man page has all the section described here.
Also some comments um have sections names that are not uh, we discussed in next lecture, but in next
lecture we will also learn about several common steps in this man, uh, command here.
And here what you can remember the common name so you can search here.
Let's actually quit and search.
So let's actually we have a case that you don't you you are not remembering the common name so you can
search the main page using keywords.
So the syntax is here, man, man here, key key here.
And then you going to enter the keyword in this case, for example, 80.
And here, as you can see here, we're going to find the comments that has.
18 it.
And if we go if we scroll down like this.
And here we should be able to find the cat that we're here.
And as you can see here, this is a cat.
This command here, man find command finds us that and that has contains a T in it.
And in this case, we found our cat command here.