alias (built-in Bash command)

Content

 

Data

License: GNU GPLv3 +
Version number: GNU Bash 5
Developer / owner: Free Software Foundation Inc.

Short description:

The manual page and help for the alias built-in Bash command. Use the alias command to create command aliases. The alias, without an argument or with the -p option, prints a list of aliases in standard output in the format alias name = value.

 

 

Man page output

man bash
[...]
       alias [-p] [name[=value] ...]
              Alias  with  no  arguments  or with the -p option prints the list of aliases in the
              form alias name=value on standard output.  When arguments are supplied, an alias is
              defined  for  each name whose value is given.  A trailing space in value causes the
              next word to be checked for alias substitution when the  alias  is  expanded.   For
              each  name  in the argument list for which no value is supplied, the name and value
              of the alias is printed.  Alias returns true unless a name is given  for  which  no
              alias has been defined.
[...]

 

 

Help output

alias --help
alias: alias [-p] [név[=érték] ... ]
    Aliasok definiálása vagy kiírása.
    
    Argumentumok nélkül az „alias” kiír egy újrahasználható listát a meglévő
    aliasokról „alias NÉV=ÉRTÉK' formában a szabványos kimenetre.
    
    Különben egy NÉV nevű aliast definiál ÉRTÉK értékkel. Az ÉRTÉK végén a
    záró szóköz lehetővé teszi a következő szó számára is az
    aliashelyettesítést.
    
    Kapcsolók:
      -p        kiír minden aliast a fenti formában
    
    Kilépési kód:
    igazzal tér vissza, kivéve ha nincs megadott NÉV nevű alias definiálva.

 

Related Content