2、统计当前目录的大小,以直观方式展现 [linuxmi@linux:~/Linux迷] $ du -sh 查看当前目录总共占的容量,而不单独列出各子项占用的容量。 3、查看当前目录下所有一级子目录文件夹大小 并排序 [linuxmi@linux:~] $ sudo du -h --max-depth=1 |sort 4、以人性化的方式显示文件大小 [linuxmi@linux:~/Li...
In Linux disk free or df command tool is used to print the disk information that includes the available disk space on Linux storage. The given syntax would be followed to utilize the df command tool to find out the disk usage on Linux: df [options…] [device_name…] You can access the...
Ncdu, acronym ofNCursesDiskUsage, is a curses-based version of the well-known ‘du’ command. It provides a fast way to see what directories are using the disk space. Even though there are plenty of tools and ways to analyze the disk usage in Linux, the developer of Ncdu utility is no...
The easiest way to examine what's left for storage on your disk drive is theducommand. This command line utility estimates file space usage. Like all Linux tools,duis very powerful, but knowing how to use it for your particular needs is helpful. I always consult the man page for any uti...
du(是 disk usage 的简称)用来显示目录或文件的大小,查找文件和目录的磁盘使用情况的命令。du 命令在与各种选项一起使用时能以多种格式提供结果。 使用方法 语法:du [-abcDhHklmsSx] [-L <符号连接>][-X <文件>][--block-size][--exclude=<目录或文件>] [--max-depth=<目录层数>][--help][--vers...
There are two popularways to check disk usage in Linux terminal: du command and df command. Thedu command is more for checking the space used by a directoryand the df command gives you the disk utilization on filesystem level. The gdu tool sorts of combined the functionality of both. ...
Here’s an example of its usage: du -sh /home/user The output should resemble the following: 2.5M /home/user How to Check Disk Usage in Linux Using the pydf Command The Python-basedpydfcommand displays the amount of disk space used and is available on all mounted file systems. Compared...
Linux: disk usage df -i df -T df -h --total df -m df -x ext4 -x xfs -x swap du -a . du -h --max-depth=1 . du -shx /home/root du -c /home/* du -L /usr/share/lib/gcc64.so
Check Linux Filesystem Disk Space To disable the color, use the-cflag. $ discus -c To display device names instead of graphs, use the-dflag:. $ discus -d Check Disk Space Usage By Devices If do not want to use smart formatting, you can disable it using the-sswitch as shown. ...
Related:How to Show Disk Usage in Linux With the du Command Why Use duf? One of the biggest advantages of duf over df is its comprehensive feature set; one that gives you the freedom to filter, sort, and export results to JSON, among other things. ...