Alias (command)
Command in various command line interpreters
alias is a shell command that defines a word that the shell replaces with associated text before interpreting a command line. It is often used to enhance productivity by abbreviating a command or for including commonly used arguments with a command.
Nº Q285142 ★
Common · Literature
Alias (command)
Command in various command line interpreters
alias is a shell command that defines a word that the shell replaces with associated text before interpreting a command line. It is often used to enhance productivity by abbreviating a command or for including commonly used arguments with a command.
From Wikipedia
alias is a shell command that defines a word that the shell replaces with associated text before interpreting a command line. It is often used to enhance productivity by abbreviating a command or for including commonly used arguments with a command. The command is available in Unix shells, AmigaDOS, 4DOS/4NT, FreeDOS, KolibriOS, PowerShell, ReactOS, EFI shell, and IBM i. Aliasing functionality in MS-DOS and Command Prompt is provided by the DOSKEY command. Since aliases are defined only for a shell session, regularly used aliases are often defined in a session startup shell script such as .bashrc. The alias commands may either be written in the config script directly or sourced from a separate file. Aliases were introduced in the C shell to survive in descendant shells such as tcsh and bash. As these aliases were limited to one line they were useful for creating relatively simple shortcut commands, but not more complex constructs. Older versions of the Bourne shell did not offer aliases, but did provide functions, which are more powerful than the csh alias. Eventually, the csh alias was implemented in the bash and ksh shells. With shells that support both functions and aliases but no parameterized inline shell scripts, the use of functions wherever possible is recommended. Nonetheless, aliases are necessary where chained aliases are required.
Text: Wikipédia, CC BY-SA 4.0. ·
Related cards
-
Del (command)
Command in DOS, OS/2 and Microsoft Windows command line interpreters
Nº Q838029 ★
Not listed
-
Echo (command)
Command of DOS, OS/2, Microsoft Windows, Unix and Unix-like operating systems
Nº Q709571 ★
Not listed
-
Dir (command)
Command of CP/M, DOS, OS/2, Singularity, Microsoft Windows, VMS, RT-11 and RSX-11 command line interpreters
Nº Q277012 ★★
Not listed
-
Cmd.exe
Shell for Windows NT and other operating systems
Nº Q310897 ★★★
Not listed
-
Yes (Unix)
Unix command
Nº Q306574 ★
Not listed
-
File (command)
Standard Unix program
Nº Q181820 ★★★
Not listed