Written 1 Sep 2026. This is a how-to, not a product card.
Peek at file bytes
After sync (or after writing a practice file), peek with od so you see the characters and bytes that are actually on disk. You don't need extra software beyond coreutils.
Finish disk writes flushed pending writes. Tonight you take a small look at what landed: ask it to show the bytes inside a practice file. od historically meant octal dump. Tonight you use it as a safe peek at characters (and, if you want, hex bytes) so you trust a copy before you unplug. That is not printing the file as plain text. That is read a file without opening the editor. That is not asking what kind of file this is. That is see what kind of file this is. That is not a fingerprint. That is check a file fingerprint. That is not comparing two files. That is see whether two files match byte for byte. You are still only practicing in home on the computer. It does not need hex editors, htop, Grafana, or a NAS for this one job.
Skip until SSH already works
SSH from the couch should already get you a prompt. If you only need to write practice words, that is print words exactly or put a short line into a file. If you only need to flush writes, that is finish disk writes. If you only need the text as text, that is read a file without opening the editor. If you only need a fingerprint, that is check a file fingerprint. Skip this whole note if you only need a house share other computers browse. That is a folder the house can open.
What this is
od dumps a file's bytes in a readable way. The name is old: octal dump. Tonight you mostly want the character view (-c), which shows letters and makes newlines and other control characters obvious. Optional hex (-tx1) shows each byte as two hex digits. It does not rewrite the file. It does not invent a checksum. It does not decide the file kind. Those jobs already have their own notes.
Practice od in home
SSH in. Make sure home is where you sit:
pwd
You want a path that ends in your login name. If not:
cd ~
Optional: park one short practice line, then flush (see printf and sync):
printf 'hello\n' > ~/od-a.txt
sync
Peek at characters (tonight's job, easiest first-timer view):
od -c ~/od-a.txt
You want something like the letters h e l l o, then a visible newline marker (often \n), then the prompt back. That is enough for tonight: you saw what is actually in the file.
Optional hex bytes (same tiny file):
od -An -tx1 ~/od-a.txt
Or characters and hex together:
od -An -tx1c ~/od-a.txt
-An means skip the address column. -tx1 means one-byte hex. Don't make hex required. Character view is enough for tonight.
Debian and Ubuntu usually already have od (coreutils). Don't make apt the lesson. If it is somehow missing:
sudo apt install coreutils
Then stop. That install is not a reason to buy a hex editor.
When you are done practicing:
rm -i ~/od-a.txt
Ask first. Say yes only if the name matches. That careful delete is delete a file carefully. Skip rm -rf.
Useful extras, still home-safe
Skip huge dumps as tonight's job. Tonight: one tiny home file, not a giant dump of disks, logs, or /etc.
Skip piping od into rm. Od peeks. Rm deletes. Don't mix those jobs.
Skip hexdump and xxd as tonight's job. No new pages for those this cycle. Tonight's tool is od.
Skip dd, shred, and dropping caches. Tonight: a quiet peek, not a wipe or a cache lesson.
Skip file, sha256sum, cmp, and cat as tonight's job. Those pages already exist. Link them when you need them.
Skip screen, tmux, port 22 forwarding, apt as the lesson, htop, Grafana, and a NAS. Keep SSH on the house network: keep the computer on the house network. Don't forward port 22.
Skip a separate df how-to, awk, sed, and install as new pages this cycle. Free space is already see if the computer still has room. Emptying or shrinking a practice file without deleting the name is empty or shrink a practice file. Printable text without a full dump is see printable text with strings.
What this is not
This is not sync. That is finish disk writes. It is not printf or echo. Those write words: print words exactly, put a short line into a file. It is not cat. That prints text as text: read a file without opening the editor. It is not file. That guesses the kind of file: see what kind of file this is. It is not sha256sum. That fingerprints one file: check a file fingerprint. It is not cmp. That compares two files byte for byte: see whether two files match byte for byte. It is not opening SSH to the internet so you can dump files from a coffee shop. That is keep the computer on the house network. Don't forward port 22.
What next
Need to empty or shrink a practice file without deleting the name? Empty or shrink a practice file. Need printable text without a full dump? See printable text with strings. Need a flush first? Finish disk writes. Need exact practice words? Print words exactly. Need a fingerprint instead of a dump? Check a file fingerprint. Need the throwaway gone? Delete a file carefully. Keep SSH on the house network: keep the computer on the house network. Don't forward port 22.
Skip
- Skip if SSH still fails. Finish SSH from the couch first.
- Skip
sync,printf, orechoas tonight's job if you only came to peek. Those write/flush notes already exist. - Skip
cat,file,sha256sum, andcmpas tonight's job. Link those pages instead. - Skip huge dumps,
odintorm,hexdump/xxdas the job,dd/shred/drop_caches, files under/etc,screen,tmux, apt as the lesson, htop, Grafana, and a NAS. - Skip a separate df how-to, awk, sed, and install as new pages this cycle. Truncate is empty or shrink a practice file. Strings is see printable text with strings.
- Skip
rm -rf. Careful delete only: delete a file carefully. - Skip opening SSH to the internet. That is keep the computer on the house network. Don't forward port 22.
Sources
Debian: od(1). Ubuntu: od(1). GNU coreutils: od. Official pages only. For the flush, see finish disk writes. For exact words, see print words exactly. For a short dump as text, see read a file without opening the editor. For a careful delete, see delete a file carefully. For the login, see SSH from the couch.