Команда alias

Используется для длинных строк, которые часто используются. Alias позволяет иметь небольшое более запоминающееся имя команды, чтобы выполнить длинную строку.

Синтаксис

alias [name=['command']]

nameSpecifies the alias name.
commandSpecifies the command the name should be an alias for.
-aRemoves all alias definitions from the current shell execution environment.
-tSets and lists tracked aliases.
-xSets or prints exported aliases. An exported alias is defined for scripts invoked by name.

Примеры

alias home 'cd public_html' - Sets home to type cd public_html

to remove this alias use the unalias command

We recommend that ISP's or Unix systems with users who may be unfamiliar with Unix setup the following aliases:

clr clear
cls clear
copy cp -i
del rm -i
delete rm -i
dir ls -alg
home cd ~
ls ls -F
md mkdir
move mv -i
pwd echo $cwd
type more

Обратно к списку команд




металлопластиковые окна salamander