1.touch //建新文件
[root@localhost ~]# touch text.txt
[root@localhost ~]# ls
total 4.0K
-rw-------. 1 root root 2.6K Nov 17 12:11 anaconda-ks.cfg
lrwxrwxrwx. 1 root root 48 Nov 18 04:38 ifcfg-eno16777736 -> /etc/sysconfig/network-scripts/ifcfg-eno16777736
-rw-r--r--. 1 root root 0 Nov 27 06:06 text.txt
2.du //查看文件大小
[root@localhost ~]# du -sh /usr/bin
74M /usr/bin
网友评论