hash

Basic Linux Command Example: 

 

Get help on Linux hash Command.

 

   Linux hash command is use to remember program location or display program location on Linux system.  The Linux hash command is one of bash shell built in command.  The command example below show how to get hash command manual or help on Linux hash command using shell command, this help show information on how to use the Linux hash command, the hash command options and the arguments that can be use with Linux hash command.

 

Get Linux hash command help

 

  Execute help command and the name of Linux command that we want the help file, the example below we execute help command with -m option to get the help for hash command using the manpage format.

hash linux command

[linux@fedora11 ~]$ help -m hash

NAME

    hash - Remember or display program locations.

 

SYNOPSIS

    hash [-lr] [-p pathname] [-dt] [name ...]

 

DESCRIPTION

    Remember or display program locations.

 

    Determine and remember the full pathname of each command NAME.  If

    no arguments are given, information about remembered commands is displayed.

 

    Options:

      -d                forget the remembered location of each NAME

      -l                display in a format that may be reused as input

      -p pathname       use PATHNAME is the full pathname of NAME

      -r                forget all remembered locations

      -t                print the remembered location of each NAME, preceding

                each location with the corresponding NAME if multiple

                NAMEs are given

    Arguments:

      NAME              Each NAME is searched for in $PATH and added to the list

                of remembered commands.

 

    Exit Status:

    Returns success unless NAME is not found or an invalid option is given.

 

SEE ALSO

    bash(1)

 

IMPLEMENTATION

    GNU bash, version 4.0.16(1)-release (i386-redhat-linux-gnu)

    Copyright (C) 2009 Free Software Foundation, Inc.

    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

 

[linux@fedora11 ~]$

 

Keywords: hash, hash command, linux hash command, hash linux command, linux command hash, hash command manual, hash manual, hash help, help hash, command hash help, help hash command