Skip to content

Commit 58b25d1

Browse files
aster-voidchvmvd
andauthored
「Linuxコマンド」の章のパスの説明の表を修正 (#808)
Co-authored-by: WATAHIKI Yuto <[email protected]>
1 parent 41279f5 commit 58b25d1

File tree

1 file changed

+10
-9
lines changed
  • docs/3-web-servers/02-linux-commands

1 file changed

+10
-9
lines changed

docs/3-web-servers/02-linux-commands/index.mdx

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,16 @@ Ubuntuの場合は、標準状態でカレントディレクトリがターミ
5353

5454
![カレントディレクトリの確認](./check-current-directory.png)
5555

56-
パスを表現するとき、カレントディレクトリは`.`、親ディレクトリは`..`という記号が利用できます。
57-
次の表は、これらの記号を用いて相対パスを表した例です。
58-
59-
| カレントディレクトリ | 目標のディレクトリ | 相対パス |
60-
| -------------------- | --------------------- | ------------------------------ |
61-
| `/foo/bar` | `/foo/bar/baz` | `baz`又は`./baz` |
62-
| `/foo/bar` | `/foo/bar/baz/foobar` | `baz/foobar`又は`./baz/foobar` |
63-
| `/foo/bar/baz` | `/foo/bar` | `..`又は`./..` |
64-
| `/foo/bar/baz` | `/foo` | `../..`又は`./../..` |
56+
相対パスを表現するとき、カレントディレクトリは`.`、親ディレクトリは`..`という記号が利用できます。
57+
58+
次の表は、カレントディレクトリが`/home/tanaka`のとき、ファイルやディレクトリのパスをそれぞれ絶対パスと相対パスで表した例です。
59+
60+
| 絶対パス | 相対パス |
61+
| -------------------------------- | -------------------------------------------- |
62+
| `/home/tanaka/Documents` | `Documents`又は`./Documents` |
63+
| `/home/tanaka/Documents/foo.txt` | `Documents/foo.txt`又は`./Documents/foo.txt` |
64+
| `/home` | `..`又は`./..` |
65+
| `/` | `../..`又は`./../..` |
6566

6667
## コマンド
6768

0 commit comments

Comments
 (0)