Create source.md
This commit is contained in:
parent
7b02441967
commit
f1d4dbd737
|
|
@ -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/ -->
|
||||
Loading…
Reference in New Issue