天天看点

linux 命令

目录大小

 windows下用treesize free 软件

看整个当前目录的详细各个子目录的大小 

  #du -sh * 

或者 du -h --max-depth=1

看硬盘上各个分区的使用的大小。

#df -h 

打包成tar.gz格式压缩包

# tar -zcvf renwolesshel.tar.gz /renwolesshel
      

解压tar.gz格式压缩包

# tar zxvf renwolesshel.tar.gz
      

打包成tar.bz2格式压缩包

# tar -jcvf renwolesshel.tar.bz2 /renwolesshel
      

解压tar.bz2格式的压缩包

# tar jxvf renwolesshel.tar.bz2
      
# zip -q -r renwolesshel.zip renwolesshel/
      
# unzip renwolesshel.zip
      
上一篇: linux at 命令
下一篇: linux命令

继续阅读