Categories
Informative ubuntu

Help of Ubuntu/Linux Commands

usage of man command,
How to get help in ubuntu?
How to get help of commands in ubuntu?

How to get HELP of any command in Ubuntu/Linux from command line?

HELP is not a command mind well.

We have man pages to get help of any commands.

 

But what is the right way?       

ʙᴇʀɴʜᴀʀᴅ ʟɪʟʟ 💻📲 on Twitter: "Hmmm ...… "

 Syntax:

$man *commandname

(* Here you can write name of command of which you require help)

When we right man with command name on command line, you will get long list

For example if I write following command:

$man ls

 

It will give everything related to “ls” command, and it is of many pages help.

 

This will give you all the help related to the asked command, by pressing ‘q’ you may come out of the help.

If you don’t want all information, you may feel, OMG…what to do with all this stuff….?

So, here lets see some  helpful trick is use commands help

First one is…. “whatis”

whatisis useful when you know name of command but don’t know what it is for?

This command give you one liner answer that the command you have written will do what?

Example:

$whatis grep

Or you may use…

$man –f grep

You can see, both are same.

$man –k grep

This will give you a list of command related to grep

It is also same as apropos command (we are not going to discussed apropos this time)

 

Happy Learning !!