Friday, December 20, 2013

Whatis Command Examples in Linux

Linux Whatis Command Examples

Command: whatis

Command Usage: it displays a single line information about a command

Syntax Of What is Command: $  whatis [option] keyword

Example:

1. To emit debugging messages of ls command

    $ whatis -d ls

2. To print verbose warning messages

    $ whatis -v ps

3. To search only these sections of keyword

    $ whatis -s "1","8" keyword

4. To print the keywords contain wildcards

    $ whatis -w 'bc*'

5. To interpret each keyword as regex

    $ whatis -r '^bc'

    it displays linux commands start from 'bc'

    $ whatis -r 'ee$'

    it displays linux commands ends with 'ee'

6. To disable trimmed output

    $ whatis -l tee

7. To print help info of this command

    $ whatis -h

8. To set search path for manual pages to path

    $ whatis -M /usr/share/man ps


Whatis Command Examples in Linux

No comments:

Post a Comment

Linux Tips and tricks,Online Linux Helpers