You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
928 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

builtin
===
执行shell内部命令
## 说明
**builtin命令** 用于执行指定的shell内部命令并返回内部命令的返回值。builtin命令在使用时将不能够再使用Linux中的外部命令。当系统中定义了与shell内部命令相同的函数时使用builtin显式地执行shell内部命令从而忽略定义的shell函数
## 选项
```
builtin(参数)
```
### 参数
shell内部命令指定需要执行的shell内部命令
## 实例
使用builtin命令执行shell内部命alias显示命令别名输入如下命令
```
builtin alias #执行shell内部指令
alias cp='cp -i'
alias l.='ls -d .* --color=tty'
alias ll='ls -l --color=tty'
alias ls='ls --color=tty'
alias mv='mv -i'
alias rm='rm -i'
alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'
```
上面的命令执行后,将输出当前系统下的命令别名