zoukankan      html  css  js  c++  java
  • Linux 磁盘管理命令

    df


    NO1. 显示所有存储系统空间使用情况,同时显示存储系统的文件系统类型s
    [root@rehat root]# df -aT


    NO2. 显示指定文件系统的空间使用情况
    [root@rehat root]# df -t ext3


    NO3. 人性化显示各存储空间大小
    [root@rehat root]# df -ah


    NO4. 有时候挂载了网络文件系统,若只想看本机的文件系统用如下命令
    [root@rehat root]# df -ahlT


    NO5. 查看某个文件系统的磁盘使用情况
    [root@rehat root]# df -h /dev/cdrom

    df -k 以K为单位显示
    df -h 以人性化单位显示,可以是b,k,m,g,t..

    检查目录空间大小的CentOS常用命令 

    du


    NO1. 查看当前文件夹大小
    [root@rehat root]# du -sh


    NO2. 查看当前文件及文件中包含的子文件夹大小
    [root@rehat root]# du -ch


    NO3. 查看文件的大小
    [root@rehat root]# du -h test1.txt


    NO4. 同时查看多个文件的大小
    [root@rehat root]# du -h test1.txt test2.txt

     查看目录的大小(bjchenxu)
    du -sh dirname
    -s 仅显示总计
    -h 以K、M、G为单位,提高信息的可读性。KB、MB、GB是以1024为换算单 位, -H以1000为换算单位。

    cd /yourpath 查看该目录中各文件夹大小

    du -sk * | sort -n

     

  • 相关阅读:
    SQL操作符的优化
    Oracle 模糊查询 优化
    Mysql中的语句优化
    SQL优化
    Pro Git读书笔记
    前端工程化
    前端工程化
    前端工程化
    前端工程化
    前端工程化
  • 原文地址:https://www.cnblogs.com/leefan/p/5445374.html
Copyright © 2011-2022 走看看