TOPNFILES(1)
π TOPNFILES(1) β the manual, but make it a group chat π
User Commands β¨ section 1 energy, bestie, and the program we're talking about is topnfiles.
πΈ NAME πΈ
topnfiles β this is literally the manual page for topnfiles 4.1.12, no cap π«Ά
β¨ SYNOPSIS β¨
topnfiles [OPTIONS] <startdirs>...
π¦ DESCRIPTION π¦
Okay so. topnfiles goes digging through a whole directory structure and finds the newest / oldest / smallest / largest files for you. It's giving personal-assistant-that-actually-answers-your-texts. π
π Arguments:
<startdirs>...β which directory to start in, bestie. And the way you can pass multiple start directories?? Obsessed. Just separate them with spaces. π
π OPTIONS π
-a,--attribute<attribute> β which time attribute we're sorting on. Default is'modified'β here's the exact spec so you know I'm not making anything up:[default: ][possible values: , accessed, created, modified](yes the empty one is really in there, it's just how it is, don't @ me π)-d,--directoriesβ evaluate directories too, not just files. Let the folders have their moment. π₯-n,--number<number> β how many directory entries to hand back to you.[default: 10]β¨-e,--exclude<exclude> β a regular expression that the path must NOT match for the file to even get evaluated. The regex dialect is the one from the Rustregexcrate, iykyk. π§-i,--include<include> β a regular expression the path must match for the file to get evaluated. Same deal: Rustregexcrate dialect. π§-o,--output<output> β what we actually print about each file. The menu is:i=ISO time,j=json,p=human readable path,u=unixtime,b=size(bytes),0=print0. Real talk though, read this part carefully:'0'cannot be combined with other output elements. It means output should be handled like thefindutility does with its-print0argument: the record separator is the null character instead of newline.'j'means JSON and cannot be combined with other output elements; the resulting JSON will contain time, path, and size.'p'will replace problematic charaters (newlines, the bell char, etc) in paths with the Unicode control pictures or caret escaped charaters, depending on the capabilities of the environment. π[default: ip]
-r,--return<return> β what we sort on: oldest, youngest, largest, or smallest.[default: youngest][possible values: largest, oldest, smallest, youngest]π-w,--weirdβ accept weird option combinations. Yes bestie, there's a flag for being ungovernable. π-x,--xdevβ do not descend into directories that live on other filesystems. Stay in your lane, stay on your mount. π-h,--helpβ print help π«Ά-V,--versionβ print version β
π SEE ALSO π
Lowkey the full documentation for topnfiles is maintained as a Texinfo manual. If the info and topnfiles programs are properly installed at your site, this command:
info topnfiles
should give you access to the complete manual. Go get your lore, queen. ππ
And that's the whole page!! This was topnfiles version 4.1.12, dated February 2026, sitting pretty in TOPNFILES(1). Mwah, go find some files, bestie πβ¨ππ¦
π¦ where this page comes from
- ubuntu stonking: topnfiles 4.1.12-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms