Run the following command in the terminal to check the size of the current directory. # sudo du The output of the command shows all files in the current directory with their size in kilobytes (KB). Usually, these numbers are too huge to be useful. You can include the-hflag to improve ...
最直接的就是du命令,它是“disk usage”的缩写,用来查看文件或文件夹的磁盘使用情况。比如,我有个习...
du命令 参考文章:how to check directory size in Linux 用于显示目录或文件的大小。...显示当前目录文件或者文件占用空间:du 显示指定文件或文件夹的大小:du test.txt 方便阅读的格式查看目录所占空间情况:du -h test 仅显示当前文件夹的总计:du -s * 以方便阅读的方式查看指定目录层级的空间占用情况...:du...
blocks,andsizesPass 2:CheckingdirectorystructurePass 3:CheckingdirectoryconnectivityPass 4:CheckingreferencecountsPass 5:Checkinggroupsummaryinformationvbird_logical:11/251968files(9.1%non-contiguous),36926/1004046blocks
63 sectors/track, 2610 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x56f40944 Device Boot Start End Blocks Id System /dev/xvdb2 1 2610 20964793+ 83...
fsck(file system check)用来检查和维护不一致的文件系统。 若系统掉电或磁盘发生问题,可利用fsck命令对文件系统进行检查。 语法: fsck [-t 文件系统] [-ACay] 装置名称 选项与参数: 实例1 查看系统有多少文件系统支持的 fsck 命令: [root@ylg ~]# fsck[tab][tab]fsck fsck.cramfs fsck.ext2 fsck.ext3...
In Chapter 3, we discussed some of the top-level disk devices that the kernel makes available. In this chapter, we’ll discuss in detail how to work with disks on a Linux system. You’ll learn how to partition disks, create and maintain the filesystems that go inside disk partitions, ...
]] [-T last_check_time] [-U UUID] [-I new_inode_size] [-z undo_file] device 这些命令可以帮助管理员在日常维护中监控磁盘空间使用情况、挂载和卸载文件系统、创建和修复文件系统,以及调整文件系统的参数。熟练掌握这些命令可以提高文件系统管理的效率和准确性。 3 SWAP管理 Swap是一种用于扩展Linux系统...
To access a file or directory on our command line, we must specify its file path or directory path. The path can be written in two ways: absolute or relative. To learn more about this, check out this blog: Linux - Create, Delete, Copy, and Move Files and Directories. Prerequisite To...
Warning: skipping journal recovery because doing a read-only filesystem check. /dev/vdb1: clean, 11/1310720 files, 126322/5242624 blocks btrfs文件系统的示例结果如下所示,例如found 114688 bytes used err is 0表示文件系统状态正常。如果查询结果中存在报错提示,请排查并修复。 [testuser@ecshost ~]# ...