To set an alias, use the built-in shell alias statement, specifying the required expansion in quotes.
要设置别名,请使用内置的外壳alias语句,并在引号中指定所需的展开形式。
For example, it's common to set an alias (' ll '), which expands to 'ls -l', for a long listing of a directory or list of files.
例如,设置别名(' ll ')是很普遍的,该别名展开为' ls - l ',用于获得目录或文件列表的长清单。
The type command reports that the ls command is an alias, but it identifies the set command as a shell builtin.
type 命令报告指出,ls 命令是一个别名,但是它将 set 命令标识为一个 shell 内置命令。
应用推荐