#Bash 的 isosize 命令
isosize [OPTION]...
功能
输出 ISO9660 文件系统的长度。
类型
可执行文件(/usr/sbin/isosize),属于 util-linux。
参数
OPTION选项:-x,--sectors- 以易于理解的形式显示块数和块大小;以“扇区”为单位-d,--divisor number- 以number字节为单位;-h,--help- 显示帮助-V,--version- 显示版本
MOUNTPOINT- 要操作的挂载点
#示例
$ isosize ./test.iso
358400
$ isosize -d 100 ./test.iso
3584
$ isosize -x ./test.iso
sector count: 175, sector size: 2048
#相关命令
| 命令 | 说明 |
|---|---|
| genisoimage | 创建 ISO 镜像 |
#推荐阅读
#手册
ISOSIZE(8) System Administration ISOSIZE(8)
NAME
isosize - output the length of an iso9660 filesystem
SYNOPSIS
isosize [options] iso9660_image_file
DESCRIPTION
This command outputs the length of an iso9660 filesystem that is
contained in the specified file. This file may be a normal file or a
block device (e.g. /dev/hdd or /dev/sr0). In the absence of any options
(and errors), it will output the size of the iso9660 filesystem in
bytes. This can now be a large number (>> 4 GB).
OPTIONS
-x, --sectors
Show the block count and block size in human-readable form. The
output uses the term "sectors" for "blocks".
-d, --divisor number
Only has an effect when -x is not given. The value shown (if no
errors) is the iso9660 file size in bytes divided by number. So if
number is the block size then the shown value will be the block
count.
The size of the file (or block device) holding an iso9660
filesystem can be marginally larger than the actual size of the
iso9660 filesystem. One reason for this is that cd writers are
allowed to add "run out" sectors at the end of an iso9660 image.
-h, --help
Display help text and exit.
-V, --version
Print version and exit.
EXIT STATUS
0
success
1
generic failure, such as invalid usage
32
all failed
64
some failed
REPORTING BUGS
For bug reports, use the issue tracker at
https://github.com/util-linux/util-linux/issues.
AVAILABILITY
The isosize command is part of the util-linux package which can be
downloaded from Linux Kernel Archive
<https://www.kernel.org/pub/linux/utils/util-linux/>.
util-linux 2.39.3 2023-10-23 ISOSIZE(8)