File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed
docs/3-web-servers/02-linux-commands Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments