-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmkdir.re
67 lines (46 loc) · 1.48 KB
/
mkdir.re
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#@#
=={mkdir} @<term>{mkdir}
@<idx>{ディレクトリ((でぃれくとり))<<>>を作成する((をさくせいする))}
=== 書式
//list[][][fontsize=xx-small]{
$ mkdir [option]... DIRECTORY...
//}
* 引数に、作成するディレクトリを少なくとも1つは指定する必要がある
* 引数は可変長。作成したいディレクトリは、引数として複数つなげて書けば良い。
Unixなので、いつものように@<B>{スペース区切り}である
=== 実行例
==== 前提
現状の確認は@<code>{ls}コマンドで行える。
//list[][][fontsize=xx-small]{
$ ls
www.py htdocs/
//}
いま作業しているディレクトリには、
www.pyというファイルとhtdocsというディレクトリがある。
==== 実行例1
//list[][][fontsize=xx-small]{
$ mkdir test
//}
新たに@<code>{test}ディレクトリを作成し、結果をlsコマンドで確認する。
==== 実行結果1
//list[][][fontsize=xx-small]{
$ mkdir test
$ ls
www.py htdocs/ test/
//}
testという名前のディレクトリが追加されていることが分かる
==== 実行例2
//list[][][fontsize=xx-small]{
$ mkdir test/dir
//}
さらに、
@<code>{test}ディレクトリの下に
@<code>{dir}ディレクトリを作成する
==== 実行結果2
//list[][][fontsize=xx-small]{
$ mkdir test/dir
$ ls test
dir/
//}
test内のファイル・ディレクトリを確認すると、
dirという名前のディレクトリが追加されていることが分かる