Access external hard drive to delete folder on terminal Mac

command lineexternal-hddosx

I want to delete a folder of portable hard drive on terminal in Mac. Are there any command line ?

Best Answer

You can use rm to remove the folder on your external hard drive.

The full Terminal command looks like this

rm -r /Volumes/$drivename/$folder

Replace $drivename with the name of your external hard drive.
Replace $folder with the name of your folder.

If you don't know the name of your external hard drive you can look it up with

ls /Volumes
Related Question