When it comes to quickly taking care of daily tasks, the command line can be both powerful and dangerous. Take the commands in this article as an example: the rm command allows you to remove (or delete) files. The rmdir command does the same to directories (also known as folders). But be careful: Unlike when you move files to the Trash from the Finder, there’s no way to get them back if you use these commands.

Still, if you want to tap into Terminal’s powers in macOS Sonoma or older versions, this is a command you can’t overlook. I’ll show you how to add a safeguard to ensure that you only delete files you really want to delete.

Read more at Macworld.com

Leave a Reply

Discover more from

Subscribe now to keep reading and get access to the full archive.

Continue reading