STEST(1)
π STEST β like, the file filter of your dreams (section 1, bestie)
okay so welcome to stest(1) from the General Commands Manual, and no cap this little cutie is SO underrated π«Ά
β¨ NAME β¨
stest β filter a list of files by properties π
πΈ SYNOPSIS πΈ
stest [-abcdefghlpqrsuwx] [-n file] [-o file] [file...]
π¦ DESCRIPTION π¦
okay so here's the tea: stest takes a whole list of files and filters them by the files' properties, literally analogous to test(1) π Files that pass all the tests get printed to stdout, slay.
And if you don't hand it any files at all? It just reads files from stdin instead. lowkey iconic behaviour π
π OPTIONS π
one bullet per flag, all of them, no skipping, periodt:
-aβ test hidden files π-bβ test that files are block specials-cβ test that files are character specials-dβ test that files are directories π-eβ test that files exist (the bare minimum tbh)-fβ test that files are regular files-gβ test that files have their set-group-ID flag set-hβ test that files are symbolic links π-lβ test the contents of a directory given as an argument-nfile β test that files are newer than file β°-ofile β test that files are older than file π°οΈ-pβ test that files are named pipes-qβ no files are printed, only the exit status is returned π€«-rβ test that files are readable π-sβ test that files are not empty-uβ test that files have their set-user-ID flag set-vβ invert the sense of tests, only failing files pass π (the plot twist flag)-wβ test that files are writable βοΈ-xβ test that files are executable π
π EXIT STATUS π
0β at least one file passed all tests π1β no files passed all tests π2β an error occurred π₯
π₯ SEE ALSO π₯
dmenu(1), test(1) β go read those too, iykyk π
and that's the whole vibe check, bestie π this page is from dmenu-5.4 and it's the STEST(1) manual, so go filter some files and be the main character of your own shell session β¨π
π
π¦ where this page comes from
- alpine 3.24: dmenu-doc 5.4-r0 Β· MIT
- arch rolling: dmenu 5.4-1 Β· MIT
- fedora 43: dmenu 5.4-1.fc43 Β· MIT
- fedora 44: dmenu 5.4-3.fc44 Β· MIT
- nixos 26.05: dmenu 5.4
- nixpkgs unstable: dmenu 5.4
- ubuntu resolute: suckless-tools 49-1 Β· MIT
- ubuntu stonking: suckless-tools 49-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms