I heard a generous spritz of lemon in alkaline water greatly improves the taste.
Gyroplast
- 0 Posts
- 6 Comments
Not what it implicitly advertises, unfortunately. It lists all files (
ls) recursively in all subdirectories (-R), one per line with details (-l), sorted by time, newest first (-t). Only the first 10 files are shown (| head).The problem is that the files are sorted by time per directory, and ls recursively descents into subdirectories in that order. It’s not a “Depth First Search”, if you’re so inclined. Effectively, this shows the newest 10 files/dirs in the current directory before diving down, and if you have less files/dirs than that in your search base directory, you probably don’t need this hack to begin with.
In good tradition, here’s something that actually works as likely intended.
findrecursively lists (only) all regular files (-type f) starting in the current directory (.) and runs thelscommand (-exec) to show details (-l) of each file passed as arguments ({} +), including a specific, sortable time format (--time-style). The resulting comprehensive list of all files is thensorted in reverse (-r) order, using the sixth whitespace-separated column of each line/file as the key (-k6), which just so happens to be the “sortable time format”. Lastly, only the 10 most recent files are shown (| head), as before:find . -type f -exec ls -l --time-style=+"%Y-%m-%dT%T" {} + | sort -r -k6 | headRunning this is a great way to start your day! It’ll give you ample time to brew some coffee or tea, slip into your most comfortable programmer socks, and finish lunch by the time it scanned your 18.3 TB of furry smut to show you what you “touched” last.
It’ll likely be irrelevant cache files, though, if you run it from your
$HOME. Excluding directories is left as an exercise for the reader.
Gyroplast@pawb.socialto
Programmer Humor@programming.dev•I_fucking_hate_them_nowEnglish
1·4 months agoIn filenames? AMATEURS! Use obscure Unicode in your passphrases for maximum security. Ctrl-Shift-U, enter arbitrary code point, bam! 🦊 Works even better with a Compose key and a nice, chonky
.XComposefile to throw some gr∑∑k letters around, for instance, like some confused script kiddie. :)On topic: There are multiple variants of spaces in Unicode. You’re welcome, and now go and create something utterly deranged with that information.
More essential IT skills to add to your resume:
- preserving the environment
- killing zombies
- managing real-time executions
- manual flushing of pipes
- handling mixed signals




Here’s a link to the paper, HTH, HAND.
This is entirely over my head, unfortunately, but massively amusing!