Search
Items tagged with: commandline
The solution: "find -maxdepth 1 -type d -empty -delete", to remove all of the empty directories one level below the current directory.
Having solved the problem myself, I then queried GPT-4, as I was interested to know whether it could give a correct solution. Indeed it could, although the GPT-4 solution was unnecessarily more complex than mine, with an -exec option used to run rmdir on each directory. I did specify that I was using Linux, so GNU extensions to the find command would have been allowed in the answer.
#CommandLine #Linux
Today I discovered a pretty cool utility for listing USB devices! 🔌
🌸 **cyme**: A modern and cross-platform lsusb!
🔥 Displays manufacturer, serial number, speed, current information (mA) and more!
🦀 Written in Rust!
⭐ GitHub: github.com/tuna-f1sh/cyme
#rustlang #lsusb #usb #devices #utility #commandline #tool #libusb
Thanks to this tool I never have to remember the arguments to "tar" anymore ✨
🦀 **ouch**: Painless compression and decompression in the terminal - written in Rust.
⭐ GitHub: github.com/ouch-org/ouch
#rustlang #compression #commandline #opensource #tar
GitHub - ouch-org/ouch: Painless compression and decompression in the terminal
Painless compression and decompression in the terminal - GitHub - ouch-org/ouch: Painless compression and decompression in the terminalGitHub