Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Deleting a Folder Using Terminal

Hi all,

I recently got "blue screened" and can't start my computer... it's been very scary!

The best solution I found was to reinstall Snow Leopard, but I don't have enough space on my hard drive...

SO, I'd like to delete a specific folder (one of the artists in my iTunes music folder). Can someone explain how to do this?

Right now, in Terminal all I see is:

-bash-3.2#

If you can explain this in super-layman's terms, I'd REALLY appreciate it!!!

Thank you so much for your help

Macbook Pro, Mac OS X (10.5.8)

Posted on Apr 20, 2010 9:40 PM

Reply
Question marked as Best reply

Posted on Apr 20, 2010 10:21 PM

rm -R /Users/shortname/Music/iTunes/iTunes\ Music/name-of-artist


Where shortname is your short user name.
name-of-artist is the name of the artist you wish to remove.
The name is case sensitive and if it contains spaces you will need
to escape them e.g. "The\ Beatles".

*If you get the command wrong you can do major damage...*

Work out what you think the command should be and post it here to
see if there is anything obviously wrong with it -- just to be sure.

Dave
20 replies
Question marked as Best reply

Apr 20, 2010 10:21 PM in response to Jimmy Andretta

rm -R /Users/shortname/Music/iTunes/iTunes\ Music/name-of-artist


Where shortname is your short user name.
name-of-artist is the name of the artist you wish to remove.
The name is case sensitive and if it contains spaces you will need
to escape them e.g. "The\ Beatles".

*If you get the command wrong you can do major damage...*

Work out what you think the command should be and post it here to
see if there is anything obviously wrong with it -- just to be sure.

Dave

Apr 20, 2010 10:38 PM in response to dbsneddon

It said ls: /Users: No such file or directory

Could this be because I'm in -bash-3.2#?? It used to say jimmyandretta/something, but when I was trying to fix another problem before this happened, it stopped saying that and started just saying the bash thing....

I'm so lost here! I just want to move everything to an external hard drive and restart if possible.

Would that be possible?

I'll do ANYTHING to just get this thing running again.

Apr 20, 2010 11:01 PM in response to dbsneddon

I'm booting from the Install CD as the blue screen kept shutting my computer down at about 10% of the loading bar; I'm in terminal and the entries on the right most side include

.
..
.DS_Store
.Trashes
._Instructions.localized
._Optional Installs.localized
.file
.vol
Applicatins
Install Mac OS X.app
Instructions.localized
Library
Optional Installs.localized
System
Volumes
bin
dev
etc -> private/etc
mach_kernel
private
sbin
tmp -> private/tmp
usr
var -> private/var

I can't cut/paste as I'm using a friend's laptop right now.. but those are the things on the right-most side.

Dave you're the best for walking me through this.

Apr 20, 2010 11:17 PM in response to dbsneddon

When I tried /sbin/mount -uw /

I got:

hfs: BlockMarkFree() trying to free unallocated blocks on volume Jimmy Andretta's MacBook Pro
0 [Level 3] [ReadUID 0] [Facility com.pple.system.fs] [ErrType FS] [MountPt >
hfs: Runtime corruption detected on Jimmy Andretta's MacBook Pro. fsck will be forced on next mount.
hfs: error truncting rsrc fork!
:/ root#

(back where I started??)

Deleting a Folder Using Terminal

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.