ITPub博客

首页 > Linux操作系统 > Linux操作系统 > du命令 and touch命令简单实用

du命令 and touch命令简单实用

原创 Linux操作系统 作者:tolilong 时间:2012-10-21 17:02:31 0 删除 编辑
linux中du命令:主要是查看大小
[root@oracle10g u01]# ll
total 28
drwxrwxr-x 2 oracle oinstall  4096 Oct 19 10:14 arch
drwxrwxr-x 2 oracle oinstall 16384 Sep 21 04:17 lost+found
drwxrwxr-x 5 oracle oinstall  4096 Sep 21 22:06 oracle
drwxrwxr-x 3 oracle oinstall  4096 Sep 21 22:06 oradata
[root@oracle10g u01]# du -sh
2.9G    .
[root@oracle10g u01]# du -sh /u01/
2.9G    /u01/

linux 中touch:新建空文件,或更新文件时间标识

创建空文件:
[root@oracle10g shell]# touch 1.sh
[root@oracle10g shell]# touch 2.sh 3.sh
[root@oracle10g shell]# ll
total 0
-rw-r--r-- 1 root root 0 Oct 22 07:54 1.sh
-rw-r--r-- 1 root root 0 Oct 22 07:54 2.sh
-rw-r--r-- 1 root root 0 Oct 22 07:54 3.sh

变更时间:
[root@oracle10g shell]# touch 1.sh 
[root@oracle10g shell]# ll
total 0
-rw-r--r-- 1 root root 0 Oct 22 07:55 1.sh
-rw-r--r-- 1 root root 0 Oct 22 07:54 2.sh
-rw-r--r-- 1 root root 0 Oct 22 07:54 3.sh

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/24237320/viewspace-746877/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: vi命令简单实用
请登录后发表评论 登录
全部评论

注册时间:2010-07-13

  • 博文量
    406
  • 访问量
    1208666