mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-11 18:58:45 +00:00
Update cheatsheets
This commit is contained in:
10
tldr/od
10
tldr/od
@@ -15,20 +15,20 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display file in verbose mode, i.e. without replacing duplicate lines with `*`:
|
||||
|
||||
`od -v {{path/to/file}}`
|
||||
`od {{[-v|--output-duplicates]}} {{path/to/file}}`
|
||||
|
||||
- Display file in hexadecimal format (2-byte units), with byte offsets in decimal format:
|
||||
|
||||
`od --format={{x}} --address-radix={{d}} -v {{path/to/file}}`
|
||||
`od {{[-t|--format]}} {{x}} {{[-A|--address-radix]}} {{d}} {{[-v|--output-duplicates]}} {{path/to/file}}`
|
||||
|
||||
- Display file in hexadecimal format (1-byte units), and 4 bytes per line:
|
||||
|
||||
`od --format={{x1}} --width={{4}} -v {{path/to/file}}`
|
||||
`od {{[-t|--format]}} {{x1}} {{[-w|--width=]}}{{4}} {{[-v|--output-duplicates]}} {{path/to/file}}`
|
||||
|
||||
- Display file in hexadecimal format along with its character representation, and do not print byte offsets:
|
||||
|
||||
`od --format={{xz}} --address-radix={{n}} -v {{path/to/file}}`
|
||||
`od {{[-t|--format]}} {{xz}} {{[-A|--address-radix]}} {{n}} {{[-v|--output-duplicates]}} {{path/to/file}}`
|
||||
|
||||
- Read only 100 bytes of a file starting from the 500th byte:
|
||||
|
||||
`od --read-bytes 100 --skip-bytes=500 -v {{path/to/file}}`
|
||||
`od {{[-N|--read-bytes]}} 100 {{[-j|--skip-bytes]}} 500 {{[-v|--output-duplicates]}} {{path/to/file}}`
|
||||
|
||||
Reference in New Issue
Block a user