du(是 disk usage 的简称)用来显示目录或文件的大小,查找文件和目录的磁盘使用情况的命令。du 命令在与各种选项一起使用时能以多种格式提供结果。 使用方法 语法:du [-abcDhHklmsSx] [-L <符号连接>][-X <文件>][--block-size][--exclude=<目录或文件>] [--max-depth=<目录层数>][--help][--
How to Check Disk Usage in Linux Using the ncdu Command The NCurses Disk Usage (ncdu) command is a disk usage analyzer with an ncurses interface. It provides an interactive way to view and manage disk usage, suitable for identifying large files and directories. To installncduon Debian or Ubu...
2、统计当前目录的大小,以直观方式展现 [linuxmi@linux:~/Linux迷] $ du -sh 查看当前目录总共占的容量,而不单独列出各子项占用的容量。 3、查看当前目录下所有一级子目录文件夹大小 并排序 [linuxmi@linux:~] $ sudo du -h --max-depth=1 |sort 4、以人性化的方式显示文件大小 [linuxmi@linux:~/Li...
In our last article, we have explained how to usedf (disk filesystem) utilityto report file system disk space usage in Linux. We have discovered yet a another great utility for the same purpose but with a prettier output, calleddiscus. Discusis a df-like, highly configurable utility for c...
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. ...
Explore how to check disk usage using the df and the du commands and learn how a variety of simple arguments can enhance your workflow.
In general, we talk about all directories in the filesystem relative to the root directory. 3.df– Filesystem Usage dfis the command we’ll use to look at filesystem usage. Let’s try running this in a shell: user@host:~$ df Filesystem 1K-blocks Used Available Use% Mounted on udev...
In conclusion, tracking down where disk space has gone on Linux can be a daunting task, but with right tools and techniques, it can be a simple process. By checking disk usage, identifying large files, checking log files, trash, package cache, temporary files, and using disk usage analyzers...
This brief tutorial describes how to find the largest files and folders in the Linux file system using thedu (disk usage)andfind commands. If you want to learn more about these two commands, then head over to the following articles.
atop in action Here we’re runningatopwith an interval of 1 second. The top section should be read from left to right: PRC shows process information, CPU the split of CPU usage, CPL the load averages, MEM the memory usage, SWP the swap file usage and DSK and NET the disk and networ...