linux touchコマンドファイルの作成
2401 ワード
touch , ,touch test.txt, ,
[root@MongoDB ~]# touch /data/text.txt
[root@MongoDB ~]# ls /data/
text.txt
[root@MongoDB ~]# touch text.txt
[root@MongoDB ~]# ls
anaconda-ks.cfg text.txt
touch file{1..3}.txt 创建3个文件
[root@MongoDB ~]# touch file{1..3}.txt [root@MongoDB ~]# ll total 4 -rw-------. 1 root root 1851 Mar 27 08:38 anaconda-ks.cfg -rw-r--r-- 1 root root 0 May 18 07:41 file1.txt -rw-r--r-- 1 root root 0 May 18 07:41 file2.txt -rw-r--r-- 1 root root 0 May 18 07:41 file3.txt
転載先:https://www.cnblogs.com/mingerlcm/p/10731773.html