Create source.md

This commit is contained in:
小弟调调™ 2017-05-12 00:54:35 +08:00 committed by GitHub
parent 7b02441967
commit f1d4dbd737
1 changed files with 24 additions and 0 deletions

24
command/source.md Normal file
View File

@ -0,0 +1,24 @@
source
===
在当前Shell环境中从指定文件读取和执行命令命令返回退出状态。
## 补充说明
**source命令** 在当前Shell环境中从指定文件读取和执行命令命令返回退出状态。
### 语法
```
source [文件名] [参数]
```
### 例子
读取和执行/root/.bash_profile文件。
```bash
[root@localhost ~]# source ~/.bash_profile
```
<!-- Linux命令行搜索引擎https://jaywcjlove.github.io/linux-command/ -->