Skip to content

Commit 41fc4f5

Browse files
authored
doc: Update touch.md
1 parent d854712 commit 41fc4f5

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

command/touch.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,14 @@ touch ex2
3939

4040
在当前目录下建立一个空文件ex2,然后,利用`ls -l`命令可以发现文件ex2的大小为0,表示它是空文件。
4141

42+
批量创建文件
4243

44+
```shell
45+
touch file{1..5}.txt
46+
```
47+
48+
创建 `job1.md` 文件,并写入 `job 1`
49+
50+
```shell
51+
echo "job 1" > job1.md
52+
```

0 commit comments

Comments
 (0)