Man page - od(1)
Packages contas this manual
- timeout(1)
- ls(1)
- uname(1)
- runcon(1)
- nohup(1)
- dir(1)
- hostid(1)
- paste(1)
- sum(1)
- who(1)
- join(1)
- factor(1)
- touch(1)
- chown(1)
- md5sum(1)
- nl(1)
- mkdir(1)
- tac(1)
- false(1)
- stat(1)
- chmod(1)
- sha224sum(1)
- mktemp(1)
- readlink(1)
- seq(1)
- echo(1)
- comm(1)
- tsort(1)
- mkfifo(1)
- unexpand(1)
- cp(1)
- sha256sum(1)
- shred(1)
- tee(1)
- uniq(1)
- expr(1)
- sha384sum(1)
- basenc(1)
- ptx(1)
- fmt(1)
- chcon(1)
- wc(1)
- realpath(1)
- mv(1)
- sha512sum(1)
- yes(1)
- vdir(1)
- printf(1)
- b2sum(1)
- mknod(1)
- tail(1)
- chroot(8)
- tr(1)
- [(1)
- od(1)
- cut(1)
- date(1)
- cat(1)
- du(1)
- pr(1)
- fold(1)
- dirname(1)
- sha1sum(1)
- printenv(1)
- numfmt(1)
- nproc(1)
- chgrp(1)
- sync(1)
- ln(1)
- pwd(1)
- install(1)
- base64(1)
- test(1)
- true(1)
- cksum(1)
- tty(1)
- rmdir(1)
- expand(1)
- link(1)
- df(1)
- stty(1)
- dd(1)
- split(1)
- truncate(1)
- dircolors(1)
- head(1)
- shuf(1)
- id(1)
- basename(1)
- users(1)
- base32(1)
- nice(1)
- sort(1)
- sleep(1)
- unlink(1)
- logname(1)
- whoami(1)
- pathchk(1)
- rm(1)
- csplit(1)
- groups(1)
- stdbuf(1)
- arch(1)
- env(1)
- pinky(1)
apt-get install coreutils
Available languages:
en fr es pl vi nb nl da tr hu sv ja fi ru ro zh_TW sr zh_CN deManual
| OD(1) | 使用者命令 | OD(1) |
名稱
od - 用八進位制或其它格式表示檔案
概述
od [選項]...
[檔案]...
od [-abcdfilosx]... [檔案]
[[+]偏移量[.][b]]
od --traditional [選項]...
[檔案]
[[+]偏移量[.][b]
[+][標籤][.][b]]
描述
以無歧義的表示方式將指定檔案輸出至標準輸出,預設為八進位制位元組形式。如果指定了多於一個檔案,將它們以列出的順序連線起來作為輸入
如果沒有指定檔案,或者指定檔案為“-”,則從標準輸入讀取。
如果前兩個呼叫格式都適用,系統會在最後一個運算子以"+"或數字開始(如果有兩個運算子)的情況下采用第二種格式。僅給出偏移量等效於 -j 偏移量。標籤是所列印的第一個位元組的偽地址,隨著累積過程遞增。偏移量和標籤如果冠以"0x"或"0X"字首則表示十六進位制數;字尾"."代表八進位制數,字尾"b"表示乘以 512。
必選引數對長短選項同時適用。
- -A, --address-radix=基數
- 指定檔案偏移量的輸出格式;這裡給出的基數可以是 [doxn],分別代表十進位制、八進位制、十六進位制或無基數
- --endian={big|little}
- 根據給定的順序交換輸入位元組
- -j, --skip-bytes=位元組數
- 處理前先跳過指定數量的位元組
- -N, --read-bytes=位元組數
- 限制要轉儲的輸入位元組為指定的位元組數
- -S 位元組數, --strings[=位元組數]
- 輸出至少包含指定位元組數的可見字元;未指定具體數字時預設值取 3
- -t, --format=型別
- 選取輸出格式型別
- -v, --output-duplicates
- 不使用 "*" 字元標記遮蔽的行
- -w[位元組數], --width[=位元組數]
- 每一行只輸出指定的位元組數;未指定具體數字時預設值取 32
- --traditional
- 接受傳統格式(上述第三種格式)的輸入
- --help
- 顯示此幫助資訊並退出
- --version
- 顯示版本資訊並退出
傳統格式命令可混合使用,不同的格式可疊加:
所指定的型別是由下面一種或幾種引數組成的:
- a
- 命名的(named)字元,忽略高位位元組
- c
- 可列印字元或者是反斜線轉義字串
- d[尺寸]
- 有符號十進位制數,每個整形數佔指定尺寸的位元組
- f[尺寸]
- 浮點數,每個浮點數佔指定尺寸的位元組
- o[尺寸]
- 八進位制數,每個整形數佔指定尺寸的位元組
- u[尺寸]
- 無符號十進位制數,每個整形數佔指定尺寸的位元組
- x[尺寸]
- 十六進位制數,每個整形數佔指定尺寸的位元組
尺寸應該是一個數字。對 [doux] 中的型別來說,適用的尺寸有:C 代表 sizeof(char)、S 代表 sizeof(short)、I 代表 sizeof(int) 或 L 代表 sizeof(long)。如果型別是 f,可適用的尺寸有:F 代表 sizeof(float)、D 代表sizeof(double) 或 L 代表 sizeof(long double)。
在任意型別之後新增一個 z 字尾則會在每個輸出行末尾顯示一個可列印字元。
所指定的位元組數在使用 0x 或 0X 字首時為十六進位制,且可附加一個乘數字尾:
同理可類推至 G, T, P, E, Z, Y。也可使用二進位制字首,如 Kib=K、MiB=M 等等。
範例
- od -A x -t x1z -v
- 以十六進位制轉儲(hexdump)的格式顯示輸出
- od -A o -t oS -w16
- 這是 od 所使用的預設輸出格式
作者
由 Jim Meyering 編寫。
報告錯誤
GNU coreutils 的線上幫助:
<https://www.gnu.org/software/coreutils/>
請向 <https://translationproject.org/team/zh_CN.html>
報告翻譯錯誤。
版權
Copyright © 2022 Free Software Foundation, Inc. License
GPLv3+: GNU GPL version 3 or later
<https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO
WARRANTY, to the extent permitted by law.
參見
完整文件請見:
<https://www.gnu.org/software/coreutils/od>
或者在本地使用: info
'(coreutils) od invocation'
跋
本頁面中文版由中文
man 手冊頁計劃提供。
中文 man
手冊頁計劃:https://github.com/man-pages-zh/manpages-zh
| 2022年9月 | GNU coreutils 9.1 |