Hash (Unix)

Hash (Unix)

hash is a Unix command that prints the location information for the commands found.

yntax

ksh: hash [name]

Description

When the user gives a command, the shell searches for the command in the path specified in the PATH environmental variable and stores the location in the hash. This command can be used to search for the command given. The command is built into the shell. csh shell implements this command in the different way.

Options

The following options are supported name Searches the PATH environmental variable for the name given

Exit Status

This command returns the following exit values:

0 Successful completion

1 An Error occurred

Examples

1. hash

Print the hash table.

2. hash cat

Searches for command cat in the path specified by PATH environmental variable; if found, adds it to the hash.

ee also

The bash command, csh command, find command, ksh command, sh command.


Wikimedia Foundation. 2010.

Игры ⚽ Поможем решить контрольную работу

Look at other dictionaries:

  • Unix security — Unix security: maintaining a secure environment on Unix and Unix like operating systems is dependent on design concepts of these operating systems, but vigilance through user and administrative techniques is important to maintain security… …   Wikipedia

  • Unix time — Unix time, or POSIX time, is a system for describing points in time, defined as the number of seconds elapsed since midnight Coordinated Universal Time (UTC) of January 1 1970, not counting leap seconds. It is widely used not only on Unix like… …   Wikipedia

  • Hash-Bang — Die Shebang Zeichen – hash bang Bei unixoiden Betriebssystemen wird die Zeichenkombination #! am Anfang eines Skript Programms shebang oder auch Magic Line genannt. Die Markierung führt dazu, dass das folgende Kommando mitsamt aller angegeben… …   Deutsch Wikipedia

  • Hash-bang — Shebang Le shebang, représenté par #!, est un en tête d un fichier qui indique au système que ce fichier est un ensemble de commandes pour l interpréteur indiqué, possiblement un mot valise pour sharp bang[1]. On trouve aussi d autres… …   Wikipédia en Français

  • crypt (Unix) — In Unix computing, crypt is the name of both a utility program and a C programming function. Though both are used for encrypting data, they are otherwise essentially unrelated. To distinguish between the two, writers often refer to the utility… …   Wikipedia

  • Crypt (Unix) — In Unix computing, crypt is the name of both a commonly available utility program and a C programming function. Though both are used for encrypting data, they are otherwise essentially unrelated. To distinguish between the two, writers often… …   Wikipedia

  • Sha1sum (Unix) — Saltar a navegación, búsqueda sha1sum es un comando de los sistemas Unix que permite identificar la integridad de un fichero mediante la suma de comprobación del hash SHA 1 de un archivo. Se suele utilizar para comprobar la integridad de los… …   Wikipedia Español

  • List of Unix utilities — This is a list of UNIX utilities as specified by IEEE Std 1003.1 2008, which is part of the Single UNIX Specification (SUS). These utilities can be found on UNIX Operating systems and most UNIX like operating systems. List IEEE Std 1003.1 2008… …   Wikipedia

  • Программы UNIX-подобных операционных систем — Это список популярных программ, работающих в операционных системах основанных на UNIX (POSIX совместимых). Некоторые из этих программ являются стандартными для UNIX подобных систем. Содержание 1 Системный софт 1.1 Общего назначения …   Википедия

  • MD5 Hash — MD5 (Message Digest Algorithm 5) ist eine weit verbreitete kryptographische Hashfunktion, die einen 128 Bit Hashwert erzeugt. MD5 wurde 1991 von Ronald L. Rivest entwickelt. Die errechneten MD5 Summen (kurz md5sum) werden zum Beispiel zur… …   Deutsch Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”