Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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

share|improve this question
    
Do you mean you want to unmount (that is, no longer show the portable hard drive as being connected) or to delete a folder on the portable harddisk? –  l0b0 Sep 22 '12 at 8:31

1 Answer 1

up vote 7 down vote accepted

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
share|improve this answer
    
thank you @florieger –  minhcat_vo Sep 8 '12 at 0:48

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.