{
    "mode": "man",
    "parameter": "ali",
    "section": "1mh",
    "url": "https://www.chedong.com/phpMan.php/man/ali/1mh/json",
    "generated": "2026-06-15T14:01:21Z",
    "synopsis": "ali [-help] [-version] [-alias aliasfile] [-list | -nolist] [-user | -nouser] [aliases ...]",
    "sections": {
        "NAME": {
            "content": "ali - list nmh mail aliases\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "ali [-help] [-version] [-alias aliasfile] [-list | -nolist] [-user | -nouser] [aliases ...]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "ali  searches the named mail alias files for each of the given aliases.  It creates a list of\naddresses for those aliases, and writes that list on standard output.  If  no  arguments  are\ngiven, ali outputs all alias entries.\n\nBy  default, when an alias expands to multiple addresses, the addresses are separated by com‐\nmas and printed on as few lines as possible.  If the -list switch is specified,  and  an  ad‐\ndress expands to multiple addresses, each address will appear on a separate line.\n\nThe  -user  switch  directs  ali to perform its processing in an inverted fashion: instead of\nlisting the addresses that each given alias expands to, ali will list the aliases that expand\nto each given address.\n\nThe  files specified by the profile entry “Aliasfile” and any additional alias files given by\nthe -alias aliasfile  switch  will  be  read.   Each  alias  is  processed  as  described  in\nmh-alias(5).\n",
            "subsections": []
        },
        "FILES": {
            "content": "Alias  files  are looked up in multiple locations: if the pathname is absolute or starts with\n“.”  or “..”  it is accessed directly; otherwise tilde expansion is done on  usernames,  then\nfiles  are  searched  for in the user's Mail directory as specified in their profile.  If not\nfound there, the directory “/etc/nmh” is checked.\n\n$HOME/.mhprofile   The user's profile.\n",
            "subsections": []
        },
        "PROFILE COMPONENTS": {
            "content": "Path:               To determine the user's nmh directory\nAliasfile:          For a default alias file\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "mh-alias(5)\n",
            "subsections": []
        },
        "DEFAULTS": {
            "content": "aliasfile           /etc/nmh/MailAliases",
            "subsections": [
                {
                    "name": "-nolist",
                    "content": ""
                },
                {
                    "name": "-nouser",
                    "content": ""
                }
            ]
        },
        "CONTEXT": {
            "content": "None\n\n\n\nnmh-1.7.1                                    2013-12-05                                     ALI(1mh)",
            "subsections": []
        }
    },
    "summary": "ali - list nmh mail aliases",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "mh-alias",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/mh-alias/5/json"
        }
    ]
}