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. Thermdir
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.
Källa: Master the macOS command line: How to delete files and folders using Terminal
0 kommentarer