参数-h 表示使用「Human-readable」的输出,也就是在档案系统大小使用 GB、MB 等易读的格式。 上面的命令输出的第一个字段(Filesystem)及最后一个字段(Mounted on)分别是档案系统及其挂入点。我们可以看到 /dev/sda1 这个分割区被挂在根目录下。 接下来的四个字段 Size、Used、Avail、及 Use% 分别是该分割区...
Show information about the file system on which each FILE resides, or all file systems by default. df displays the amount of disk space available on the file system containing each file nameargument. If no file name is given, the space available on all currently mounted file systems is show...
Update on 3/6/2022– Sometimes we want to see the sizes of files as returned by the ls command displayed in some reasonable format or in other words in human readable presentation. To display the filesizes in units like 7K, 5M, 8.2G, etc… use the -lh option with ls. ls -lh Note...
这df命令提供了一个选项来显示尺寸Human Readable格式通过使用'-h'(以人类可读的格式打印结果(例如,1K 2M 3G))。[root@local ~]# df -hFilesystem Size Used Avail Use% Mounted on/dev/cciss/c0d0p2 75G 23G 49G 32% //dev/cciss/c0d0p5 24G 22G 1.2G 95% /home/dev...
这df命令提供了一个选项来显示尺寸Human Readable格式通过使用'-h'(以人类可读的格式打印结果(例如,1K 2M 3G))。 代码语言:javascript 复制 [root@local~]# df-h Filesystem Size Used Avail Use%Mounted on/dev/cciss/c0d0p2 75G 23G 49G32%//dev/cciss/c0d0p5 24G 22G1.2G95%/home/dev/cciss/c0d0...
--time show time of the last modification of any file in the directory, or any of its subdirectories --time=WORD show time as WORD instead of modification time: atime, access, use, ctime or status --time-style=STYLE show times using style STYLE: ...
-b, --bytes show output in bytes -k, --kilo show output in kilobytes -m, --mega show output in megabytes -g, --giga show output in gigabytes --tera show output in terabytes --peta show output in petabytes -h, --human show human-readable output ...
see SIZE format below --direct show statistics for a file instead of mount point --total produce a grand total -h, --human-readable print sizes in human readable format (e.g., 1K 234M 2G) -H, --si likewise, but use powers of 1000 not 1024 ...
-h, --human-readable:以人类可读的方式打印,如:KB、MB、GB,打印大小以1024为单位。 df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 863M 0 863M 0% /dev tmpfs 893M 168K 893M 1% /dev/shm tmpfs 893M 9.5M 883M 2% /run ...
Filesystem:文件系统Size: 分区大小Used: 已使用容量Avail: 还可以使用的容量Use%: 已用百分比Mounted on: 挂载点 相关命令: df -hl:查看磁盘剩余空间df -h:查看每个根路径的分区大小du -sh [目录名]:返回该目录的大小du -sm [文件夹]:返回该文件夹总M数du -h [目录名]:查看指定文件夹下的所有文件大小...