For example, when I run man ioctl
the page says IOCTL(2)
at the top. What does that mean? Is there an IOCTL(1)
? And how does one navigate between these?
It's the section that the man page for the command is assigned to. These are split as. General commands. System calls. C library functions.
Grep is an essential Linux and Unix command. It is used to search text and strings in a given file. In other words, grep command searches the given file for lines containing a match to the given strings or words.
$_ (dollar underscore) is another special bash parameter and used to reference the absolute file name of the shell or bash script which is being executed as specified in the argument list. This bash parameter is also used to hold the name of mail file while checking emails.
grep is a Linux text-manipulating utility that searches for a string of characters or patterns known as regular expressions in a file or text. The grep tool belongs to the family of utilities that include egrep, fgrep, and grep, among which fgrep is the fastest of all, while grep is the easiest.
It's the man page section. From memory, section 1 is user programs, 2 is system calls, and 3 is standard C library calls, and 5 is file formats.
Wikipedia has the full explanation here.
That's the man page section number. For example
man printf
(should) Give you section 1, printf
the bash command, while
man 3 printf
gives you the C function printf
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With