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 file
  • d means directory
  • l means 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, NUL separated. 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_IFMT file 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