Skip to content

Commit

Permalink
Update pwd.md #118
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Aug 29, 2019
1 parent 7ec7dae commit dcca140
Showing 1 changed file with 12 additions and 15 deletions.
27 changes: 12 additions & 15 deletions command/pwd.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,56 +3,53 @@ pwd

显示当前工作目录。


## 目录

- [bash内建命令](#内建命令)

- [GNU coreutils中的命令](#外部命令)

### 内建命令
## 内建命令

## 概要
#### 概要

```shell
pwd [-LP]
```

## 主要用途
#### 主要用途

- 显示当前工作目录。


## 选项
#### 选项

```shell
-L (默认值)打印环境变量"$PWD"的值,可能为符号链接。
-P 打印当前工作目录的物理位置。
```

## 返回值
#### 返回值

返回状态为成功除非给出了非法选项或是当前目录无法读取。

### 注意
#### 注意

1. 该命令是bash内建命令,相关的帮助信息请查看`help`命令。


### 外部命令
## 外部命令

## 概要
#### 概要

```shell
pwd [OPTION]...
```

## 主要用途
#### 主要用途

- 显示当前工作目录。


## 选项
#### 选项

```shell
-L, --logical 打印环境变量"$PWD"的值,可能为符号链接。
Expand All @@ -61,11 +58,11 @@ pwd [OPTION]...
--version 显示版本信息并退出。
```

## 返回值
#### 返回值

返回状态为成功除非给出了非法选项或是当前目录无法读取。

### 注意
#### 注意

1. 该命令是`GNU coreutils`包中的命令,相关的帮助信息请查看`man pwd``info coreutils 'pwd invocation'`

Expand Down

0 comments on commit dcca140

Please sign in to comment.