Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a21b4ead4963aea1

Jump to content

hash (Unix)

From Wikipedia, the free encyclopedia
hash
DevelopersVarious open-source and commercial developers
Operating systemUnix, Unix-like, IBM i
TypeCommand

hash is a command on Unix and Unix-like operating systems that prints the location information for the commands found. The hash command has also been ported to the IBM i operating system.[1]

Syntax

[edit]
$ hash [name]

Description

[edit]

When the user gives a command, the shell searches for the command in a list of locations specified by the PATH environmental variable. To avoid this work in future, when a command is found its location is stored in a hash table which is consulted before the search. The hash command is used to display or manipulate that hash table, particularly to replace obsolete entries in the rare but possible case that a command is added to the PATH. The hash command is built into the shell. The C shell implements this command in a different way.

Options

[edit]

The following options are supported.

name
Searches the PATH environmental variable for the name given

Exit Status

[edit]

This command returns the following exit values:

0
Successful completion
1
An Error occurred

Examples

[edit]
$ hash

Print the hash table.

$ hash cat

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

See also

[edit]

References

[edit]
  1. IBM. "IBM System i Version 7.2 Programming Qshell" (PDF). IBM. Retrieved 2020-09-05.
[edit]