- ali [-alias aliasfile] [-list | -nolist] [-user | -nouser] [-version] [-help] [aliases ...]
By default, when an aliases expands to multiple addresses, the addresses are separated by commas and printed on as few lines as possible. If the -list option is specified, then when an address expands to multiple addresses, each address will appear on a separate line.
The switch -user 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).
FILESAlias files are looked up in multiple locations: if the pathname is absolute or starts with ``.'' or ``..'' then it's 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.
- The user's profile.
- To determine the user's nmh directory
- For a default alias file
BUGSThe -user option with -nonormalize is not entirely accurate, as it does not replace local nicknames for hosts with their official site names.