# ali(1mh) - man - phpMan

[ALI(1mh)](https://www.chedong.com/phpMan.php/man/ALI/1mh/markdown)                                                                                    [ALI(1mh)](https://www.chedong.com/phpMan.php/man/ALI/1mh/markdown)



## NAME
       ali - list nmh mail aliases

## SYNOPSIS
       **ali** [**-help**] [**-version**] [**-alias** _aliasfile_] [**-list** | **-nolist**] [**-user** | **-nouser**] [_aliases_ ...]

## DESCRIPTION
       **ali**  searches the named mail alias files for each of the given _aliases_.  It creates a list of
       addresses for those _aliases_, and writes that list on standard output.  If  no  arguments  are
       given, **ali** outputs all alias entries.

       By  default, when an alias expands to multiple addresses, the addresses are separated by com‐
       mas and printed on as few lines as possible.  If the **-list** switch is specified,  and  an  ad‐
       dress expands to multiple addresses, each address will appear on a separate line.

       The  **-user**  switch  directs  **ali** to perform its processing in an inverted fashion: instead of
       listing the addresses that each given alias expands to, **ali** will list the aliases that expand
       to each given address.

       The  files specified by the profile entry “_Aliasfile_” and any additional alias files given by
       the **-alias** _aliasfile_  switch  will  be  read.   Each  _alias_  is  processed  as  described  in
       [_mh-alias_(5)](https://www.chedong.com/phpMan.php/man/mh-alias/5/markdown).

## FILES
       Alias  files  are looked up in multiple locations: if the pathname is absolute or starts with
       “_._”  or “_.._”  it is accessed directly; otherwise tilde expansion is done on  usernames,  then
       files  are  searched  for in the user's _Mail_ directory as specified in their profile.  If not
       found there, the directory “_/etc/nmh_” is checked.

       $HOME/.mh_profile   The user's profile.

## PROFILE COMPONENTS
       Path:               To determine the user's nmh directory
       Aliasfile:          For a default alias file

## SEE ALSO
       [_mh-alias_(5)](https://www.chedong.com/phpMan.php/man/mh-alias/5/markdown)

## DEFAULTS
       aliasfile           /etc/nmh/MailAliases
### -nolist
### -nouser

## CONTEXT
       None



nmh-1.7.1                                    2013-12-05                                     [ALI(1mh)](https://www.chedong.com/phpMan.php/man/ALI/1mh/markdown)
