VIDIR(1)
π vidir(1) β the manual, bestie edition β¨
okay so you opened vidir(1) and you're like "what is this little icon" β don't worry, I got you. This is the vidir page from the moreutils crew and it's genuinely one of my faves. Let's go π«Ά
πΈ NAME πΈ
vidir β edit directories and filenames. that's it. that's the whole vibe. literally rename a whole folder from inside your text editor. main character energy fr fr π
β¨ SYNOPSIS β¨
vidir [--verbose] [directory|file|-]...
π¦ DESCRIPTION π¦
vidir lets you edit directories and filenames inside a text editor. iconic behaviour honestly. And if you don't specify any directory at all? It just goes ahead and edits the filenames of the current directory for you. no notes π
When you're editing a directory, every single item in that directory shows up on its own numbered line. Those numbers are lowkey the whole trick β that's how vidir keeps track of what items got changed. So:
- delete lines β those files get removed from the directory ποΈ
- edit filenames β those files get renamed βοΈ
- switch pairs of numbers β swap those filenames around π
Filenames to be edited can be given as any combination of:
- directories β which get expanded to the non-recursive list of all files within that directory
- files
-β and if you give this one,vidirreads a list of filenames from stdin and displays those for editing π
π OPTIONS π
-v,--verboseβ verbosely display the actions taken by the program. so it tells you what it's doing, out loud, like a good friend should π
π EXAMPLES π
vidir
vidir *.jpeg
Typical uses. the everyday slay β¨
find | vidir -
Edit subdirectory contents too. And heads up β to delete subdirectories, you delete all their contents and the subdirectory itself in the editor. both. don't forget the second one π
find -type f | vidir -
Edit all files under the current directory and subdirectories. the full sweep, no crumbs left behind π
π ENVIRONMENT VARIABLES π
EDITORβ the editor to use ποΈVISUALβ also supported, to determine what editor to use π
π AUTHOR π
Copyright 2006 by Joey Hess <id@joeyh.name>
Licensed under the GNU GPL.
ngl that's the whole page, you ate that reading session bestie π
okay and the boring-but-important bit at the bottom: this is from moreutils, dated 2025-06-30, and yes it's the VIDIR(1) page. periodt ππ§
π¦ where this page comes from
- alpine 3.24: moreutils-doc 0.70-r1 Β· GPL-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