du命令 and touch命令簡單實用
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部落格 ” ,連結:http://blog.itpub.net/24237320/viewspace-746877/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- du 命令
- du命令
- vi命令簡單實用
- du 命令秘籍
- linux命令 之 du 命令Linux
- 簡單實用命令
- linux du命令用法Linux
- linux每日命令(10):touch命令Linux
- Linux基礎命令---duLinux
- Linux du命令詳解Linux
- Linux精講——du命令Linux
- rename命令的簡單應用
- 每天一個 Linux 命令(34): du 命令Linux
- 每天一個linux命令(34):du 命令Linux
- Linux touch命令Linux
- Linux常用命令整理,簡單實用!Linux
- 玩轉linux命令(8):touch命令Linux
- linux 命令之du與dfLinux
- windbg sx命令與簡單應用
- linux命令之touchLinux
- git簡單命令Git
- zookeeper簡單命令
- docker簡單命令Docker
- 3D Touch 簡單應用3D
- 每天一個 Linux 命令(9):touch 命令Linux
- 每天一個linux命令(9):touch 命令Linux
- Linux基礎命令---touchLinux
- Linux基礎命令—touchLinux
- docker命令簡單使用Docker
- Linux簡單命令Linux
- vi命令簡單使用
- tcpdump命令簡單使用TCP
- shell簡單命令大全。
- du 及 df 命令的使用(附帶示例)
- Linux下touch命令的用法Linux
- 簡單使用rpm命令
- git stash 命令簡單使用Git
- Linux簡單命令(一)Linux