OSTREE-LS(1)
πΈ NAME πΈ
okay so this is the ostree-ls page from the OSTree manual, bestie. It does exactly what it says on the label: ostree-ls β list file paths. Short, sweet, main character energy. π
π¦ SYNOPSIS π¦
ostree ls [OPTIONS...] {COMMIT} [PATHS...]
π DESCRIPTION π
Prints a list of file paths inside the given {COMMIT}, and inside the given [PATHS...] if you pass them. The first letter of the file line output tells you the type, and it's giving very specific vibes:
-means regular filedmeans directorylmeans symbolic link
Peep the EXAMPLE section for the full tea on what the output actually looks like. ββ¨
π OPTIONS π
--dironly,-dβ do not recurse into directory arguments. Stay in your lane, directory args. π--recursive,-Rβ print directories recursively. Go off, tree. π³--checksum,-Cβ print checksum. π--xattrs,-Xβ print extended attributes. Extra? Always. π--nul-filenames-onlyβ print only filenames,NULseparated. Filenames only, no extra chatter. π€
π EXAMPLE π
$ ostree ls my-branch
d00644 0 0 0 /
-00644 0 0 2 /helloworld.txt
d00755 0 0 0 /testdirectory
Here's the breakdown, bestie:
- The first column is the file-type symbol (the one explained in DESCRIPTION) followed by the
S_IFMTfile type. - The next two columns (in the example:
0 0) are the user ID and group ID for the file. - After the break, the next number is that file's standard size.
- The final column is the file path.
Signing off from the OSTree source/version corner, with the footer energy of OSTREE LS(1) and no separate date filled in here β so I'm not inventing one, periodt. πππ«Ά
π¦ where this page comes from
- arch rolling: ostree 2026.6-1 Β· LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms