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.

25 lines
375 B

7 years ago
source
===
5 years ago
在当前Shell环境中从指定文件读取和执行命令命令返回退出状态
7 years ago
6 years ago
## 说明
7 years ago
5 years ago
**source命令** 在当前Shell环境中从指定文件读取和执行命令命令返回退出状态
7 years ago
5 years ago
## 选项
7 years ago
```
source [文件名] [参数]
```
### 例子
5 years ago
读取和执行/root/.bash_profile文件
7 years ago
```bash
[root@localhost ~]# source ~/.bash_profile
```
6 years ago