Re:Ask HN: Best Command-Line Applications?
by amelius on Monday November 19, 2018 @05:41AM
(#18485437)
> locate : Find something anywhere.
I strongly dislike updatedb, which is always stealing CPU cycles at inconvenient moments, and locate often seems out of date.
We should have had instant, database-like indexing in our filesystems ages ago.
Re:Ask HN: Best Command-Line Applications?
by _arvin on Tuesday November 20, 2018 @09:06PM
(#18499667)
You can run updatedb more frequently. By default it is run on a daily cron job and has the smarts to not run when on battery. (see /etc/cron.daily/mlocate)
You can also exclude directories in /etc/updatedb.conf that you don't want locate to index. I think in your case a more frequent cron job make sense. If run often enough, it finishes very quickly when running updatedb, which will you give you the instant search you're looking for.
- htop : A nicer version of the process viewer top
- rename : bulk rename things via a regex/sed-like interface
- youtube-dl -x : download the audio of a video
- locate : Find something anywhere.