Skip to content

Commit f1d4dbd

Browse files
authored
Create source.md
1 parent 7b02441 commit f1d4dbd

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

command/source.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
source
2+
===
3+
4+
在当前Shell环境中从指定文件读取和执行命令,命令返回退出状态。
5+
6+
## 补充说明
7+
8+
**source命令** 在当前Shell环境中从指定文件读取和执行命令,命令返回退出状态。
9+
10+
### 语法
11+
12+
```
13+
source [文件名] [参数]
14+
```
15+
16+
### 例子
17+
18+
读取和执行/root/.bash_profile文件。
19+
20+
```bash
21+
[root@localhost ~]# source ~/.bash_profile
22+
```
23+
24+
<!-- Linux命令行搜索引擎:https://jaywcjlove.github.io/linux-command/ -->

0 commit comments

Comments
 (0)