FORGET COMMAND ? GET HELP FROM LINUX


If you are smart enough you really don't need to remember all the commands.What you have to do is just taking help from the Linux system. For this you need to remember the basic help commands which I have mentioned below.


MAN:

man intro #introduction to manual pages and basic commands, important for new users

mandb #update the man index database

man -k "any keyword"   #use when you don't know command name ,just search for your keyword for required action.

for example

man -k "create filesystem" # it will search for all commands related to your serach

man --help # help for man page itself

NOTE : There are 9 sections of Manuals pages which describe each commands category from user command to kernel API and system admin commands

 

APROPOS:

This is the same command as "MAN" . It will show your the description of any command which you will pass your through it

e.g: apropos "create disk" # brief you all commands which contains the key words followed by apropos.

WHATIS

whatis "command" #brief info about any command

e.g.  whatis ls #brief you about ls command

 

INFO

INFO is the same command as MAN and its uses hyperlinks , its was created to replace the MAN command

info 'command_name' # brief you about the command

 

LOCATE

Locate will help us to find the files with proper path

locate 'filename'

WHICH

which command show your the binary path of a command

WHEREIS

its will also show you the binary path of command but aloso give you the another file paths of the given command (e.g. man pages path, configuration file path etc)

 

 

 

Post a Comment

0 Comments