rbh-find(1)

πŸ“¦ version 3.1.7, in opensuse-leap 16.0

πŸ’… rbh-find(1) πŸ’…

okay bestie, welcome to the rbh-find(1) manual page β€” yes, the find clone that queries the robinhood DB. it's giving "find but make it Robinhood", and we're gonna go through every flag, filter, format directive, and caveat together. no cap. ✨

🌸 NAME 🌸

rbh-find β€” find clone that query robinhood DB

✨ SYNOPSIS ✨

the whole summoning spell is literally:

rbh-find [options] [path|fid]...

πŸŽ€ FILTERS πŸŽ€

okay so these are the filters, bestie β€” the way you narrow down what you're looking for. iykyk. πŸ’–

  • -user user β€” user, bestie. πŸ’…
  • -group group β€” group, same energy. 🫢
  • -nouser β€” no user.
  • -nogroup β€” no group.
  • -type type β€” the type values are 'f' (file), 'd' (dir), 'l' (symlink), 'b' (block), 'c' (char), 'p' (named pipe/FIFO), 's' (socket). πŸ¦‹
  • -size size_crit β€” size crit, in the format [-|+]<val>[K|M|G|T]. iconic. πŸ”₯
  • -name filename β€” filename, literally. πŸŽ€
  • -crtime time_crit β€” time crit in the format [-|+]<val>[s|m|h|d|y] (s: sec, m: min, h: hour, d: day, y: year; default unit is days). πŸ•°οΈ
  • -ctime time_crit β€” same format: [-|+]<val>[s|m|h|d|y] (s: sec, m: min, h: hour, d: day, y: year; default unit is days).
  • -mtime time_crit β€” same format: [-|+]<val>[s|m|h|d|y] (s: sec, m: min, h: hour, d: day, y: year; default unit is days).
  • -mmin minute_crit β€” same as '-mtime Nm'.
  • -msec second_crit β€” same as '-mtime Ns'.
  • -atime time_crit β€” same format: [-|+]<val>[s|m|h|d|y] (s: sec, m: min, h: hour, d: day, y: year; default unit is days).
  • -amin minute_crit β€” same as '-atime Nm'.
  • -links count β€” count, no cap. πŸ’€
  • -ost ost_index β€” OST index, bestie. πŸ’œ
  • -pool ost_pool β€” OST pool.
  • -status status_name:status_value β€” status match in the format status_name:status_value. 🌈
  • -class class β€” class, iykyk.
  • -not, -! β€” Negate next argument. periodt. ✨

🌈 OUTPUT OPTIONS 🌈

this is where you decide how the matching entries get shown off. main character energy only. πŸ‘‘

  • -ls β€” Display attributes. πŸ‘‘
  • -lsost β€” Display OST information. πŸ¦‹
  • -lsclass β€” Display fileclass information. πŸŽ€
  • -lsstatus[=policy] β€” Display status information (optionally: only for the given policy). πŸ’…
  • -print β€” Display the fullpath of matching entries (this is the default, unless -ls, -lsost or -exec are used). ✨
  • -printf β€” Format string to display the matching entries. The supported escapes and directives are a subset of those of find, with some Robinhood additions prefixed with %R:
    • %% β€” Escapes %
    • %A β€” Robinhood’s "last access time", which is a compound of the file's atime and mtime, unless the global configuration last_access_only_atime is set, in which case it is exactly the atime of the file. An strftime(1) directive must be added. For example: %Ap %AT. This option can also take an strftime format option between brackets. For instance: %A{%A, %B %dth, %Y %F}. πŸ•°οΈ
    • %b β€” Number of blocks
    • %C β€” Robinhood’s "last MD change" which is the ctime of the file.
    • %d β€” Depth
    • %f β€” File name, without its path
    • %g β€” Group name
    • %M β€” File mode as a string, similar to the output of ls
    • %m β€” File mode in octal
    • %n β€” Number of hard links
    • %p β€” Full file name
    • %s β€” File size
    • %T β€” Robinhood’s "modification time", which is the file's mtime.
    • %u β€” File owner
    • %Y β€” Full file type (file, dir, fifo, ...)
    • %y β€” File type as one letter (f, d, p, ...)
    • %RC β€” Robinhood’s "creation time", which is the oldest ctime seen for that file. It is always lesser or equal to the current ctime of the file. When Lustre changelogs are used, "creation time" is really the creation time. An strftime(1) directive must be added. For example: %RCc. This option can also take an strftime format option between curly brackets. For instance: %RC{%A, %B %dth, %Y %F}. πŸ•°οΈ
    • %Rc β€” File class
    • %Rf β€” Lustre FID
    • %Rm β€” Status manager module attribute, with the name specified between curly bracket. The name is the status manager module name, followed by a dot, followed by the attribute name. For example: %Rm{lhsm.archive_id}.
    • %Ro β€” Lustre OSTS
    • %Rp β€” Lustre parent FID
    • \\ β€” Escapes \
    • \n β€” Newline
    • \t β€” Tab
    • \NNN β€” Byte with octal value NNN (1 to 3 digits)
    • \xHH β€” Byte with hexadecimal value HH (1 to 2 digits)
  • -escaped β€” When -printf is used, escape unprintable characters. πŸ™ˆ
  • -print0 β€” Print file name followed by a null character. Same as -printf "%p\0". πŸ’–

πŸ”₯ ACTIONS πŸ”₯

  • -exec "cmd" β€” Execute the given command for each matching entry. Unlike classical 'find', cmd must be a single (quoted) shell param, not necessarily terminated with ';'. The '{}' placeholder is replaced by the entry path. Example: -exec 'md5sum {}'. πŸ”₯

πŸ¦‹ BEHAVIOR πŸ¦‹

  • -nobulk β€” When running rbh-find on the filesystem root, rbh-find automatically switches to bulk DB request instead of browsing the namespace from the DB. This speeds up the query, but this may result in an arbitrary output ordering, and a single path may be displayed in case of multiple hardlinks. Use -nobulk to disable this optimization. πŸ¦‹

πŸŽ€ PROGRAM OPTIONS πŸŽ€

  • -f config_file β€” config file, bestie. πŸ’…
  • -d log_level β€” log level. the valid levels are CRIT, MAJOR, EVENT, VERB, DEBUG, FULL. 🌟
  • -h, --help β€” Display a short help about command line options. 🫢
  • -V, --version β€” Display version info. ✨

πŸ‘‘ SEE ALSO πŸ‘‘


okay that's the whole page, bestie 🫢 it's from Robinhood 3.0 and dated 07 July 2016. go forth, query that DB, and slay πŸ’…βœ¨

πŸ“¦ where this page comes from