The “df” command is for “disk filesystem” and is a great tool to know about the disk space usage on Linux Systems. The df command displays the amount of disk space available on the file system. If no file name is given, the space available on all currently mounted file systems is...
The `df` command shows disk space usage, along with the mounted filesystems.1. Run the following commands in your terminal:```bashdf /df /home```2. Compare the output. Check the "Filesystem" column for both commands:If the filesystem is the same, both / and /home are on the ...
disk usage:用于显示目录或文件的大小。du 会显示指定的目录或文件所占用的磁盘空间。语法 du [-abcDhHklmsSx][-L <符号连接>][-X <文件>][--block-size][--exclude=<目录或文件>][--max-depth=<目录层数>][--help][--version][目录或文件] ...
用途:删除空的目录(Remove Directory) 1[root@localhost ~]# mkdir -p mydir/level1/level22[root@localhost ~]# ls -R mydir3mydir:4level15mydir/level1:6level27mydir/level1/level2: du命令 用途:统计目录及文件的空间占用情况(estimate file space usage) 格式:du [选项]... [目录或文件名] 常...
du - estimate file space usage , 计算文件的磁盘大小 语法格式: du [OPTION] ... [FILE] 描述: 汇总每个文件的磁盘大小, 递归汇总目录的大小, 默认输出所有目录的大小, 默认的大小单位是k。 常用参数: -a : 输出所有文件的大小,不只有 目录
Users who have switched recently to Linux or still learning it might be curious to know how to see the disk space usage for a file or folder using the terminal application in Linux. While it is easy to view the size with any graphical file manager app, it isn't so obvious via the ...
--挂载远程共享目录 # mount -t nfs <NFS服务器IP>:<共享目录路径> <本地挂载点> # mount -t nfs 192.3.33.1:/backup /backup --卸载共享目录 # umount <本地挂载点> # umount /data # umount -h Usage: umount [-hV] umount -a [options] umount [options] | <directory> Options: -a, --...
3. Using ‘free’ Command – Show Swap Usage 4. Using top Command 5. Using atop Command 6. Using htop Command 7. Using the Glances Command 8. Using the vmstat Command Summary What is Swap space? Swapspace is a restricted amount of physical memory that is allocated for use by the opera...
8.The'-c'flag provides a grand total of the disk space usage at the last line. If your directory takes up 55GB of space, then the last two lines of the output would appear as follows. # du -ch /home/tecmint4.0K /home/tecmint/bin ...
Display Directory Size As I stated already, when we run Ncdu without any flags, it will show us the disk space usage of the HOME directory. We can also display size of a particular directory by specifying its actual path like below. ...