Situation is there is no internet on production servers..!! Suddenly you need help to execute an commands in Linux Servers, How..?? Read this Getting Help 5 command line tools article end of this article you will get an confidence.
- Reading Manual Pages (man)
- Reading Page Information (pinfo)
- Reading info pages (info)
- Identify where is the command path (whereis)
- Know what the command will do (whatis)
- Help command to get options on the go (help command/command –help)
Getting help 5 command line tools
1. man command
man is an interface to the on-line reference manuals.
Man Pages has 8 categories to refer the manual
- Executable programs or shell commands
- System calls (functions provided by the kernel)
- Library calls (functions within program libraries)
- Special files (usually found in /dev)
- File formats and conventions eg /etc/passwd
- Games
- Miscellaneous (including macro packages and conventions)
- System administration commands (usually only for root)
- Kernel routines [Non standard]
Navigating Man Pages
- Spacebar – Scrolling man page down
- PageDown/Down Arrow – Scrolling man page down
- PageUp/Up Arrow – Scrolling man page UP
- /string – Search for particular string
- n (key) – Repeat search Up to down
- N (key) – Repeat search Down to up
- g – Go to first to man page
- G – Go to end of the man page
- q – Exit from man page
Search the short manual page descriptions for keywords and display any matches
To see man page of particular command
Lookup for smail/short description about command
2. pinfo command to Getting help
pinfo is the command to access man pages and get help to execute commands same like man command. Page info will be displayed in different format.
3. info command to read info documents
3. info command to read info documents
Read info documents, which will open all the documents continuous to one
- UP Arrow/Page Up – To go upwards of the document
- Down Arrow / Page Down – To go downwards of the document
- /String – Search for particular word
- Press ‘q’ – Quit from info document
info command options
- -k = look up STRING in all indices of all manuals
- -d = Add DIR to INFOPATH
- -f = Specify info file and read
- -R = Output “RAW” ANSI escapes
4. Whereis command to Locate binaries
whereis command is very handy when your environment is secured with path variables, where you have to type entire path to execute commands example like .i.e. /bin/ls
all the binaries are not located in same path like /bin/ binaries are located in different path like /bin /sbin /usr/bin/ /usr/sbin/, to identify banary location we have to execute whereis command to know binary exact location
5. whatis command line tool
whatis utility will help you when you would like to know about any command which you don’t know. Command i know but when i execute it what happens.
6. instance help on command
you can use <command –help> to get command options with little bit explanation
Use help command
Conclusion
Getting help from 5 command line tools is very handy to do our regular daily to daily activities
No comments:
Post a Comment