doc: Update touch.md

This commit is contained in:
小弟调调™ 2022-04-21 20:42:35 +08:00 committed by GitHub
parent d854712ff7
commit 41fc4f5249
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -39,4 +39,14 @@ touch ex2
在当前目录下建立一个空文件ex2然后利用`ls -l`命令可以发现文件ex2的大小为0表示它是空文件。
批量创建文件
```shell
touch file{1..5}.txt
```
创建 `job1.md` 文件,并写入 `job 1`
```shell
echo "job 1" > job1.md
```