Need some help with the terminal
Hello, I'm new so I'm not quite sure how this works so I hope I'm posting this in the right place. I just got a mac a few weeks ago and I'm just scoping out it's features. At the moment I'm trying to find a way to use the terminal to delete all files in a folder with out deleting the actual folder itself. Or maybe moving the files to the trash can? Any help would be well appreciated. Thanks
Comments
Basically type mv then drag in a folder, add a * symbol at the end to signify all files and then put the URL to the user's trash folder.
You would get something like this:
mv /Documents/some_folder/* ~/.Trash
It's better to not mess around with rm because you don't get any second chances with it and you can mess up some stuff badly if you mis-type URLs. Drag and drop is much safer.