Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
using "rm" in Terminal
#1
I have a stubborn file that simple won't open, or allow to be tossed with Finder.
It sends the beachball spinning.
What would be the syntax with "rm"?

The file is 3 folders down on a 2ndary drive in an MacPro. In other words, not the start up drive.
“Art is how we decorate space.
Music is how we decorate time.”
Jean-Michel Basquiat
Reply
#2
rm -f /Volumes/drive/folder/folder/file.ext
Reply
#3
didn't take that.

-bash: rm -f: command not found
“Art is how we decorate space.
Music is how we decorate time.”
Jean-Michel Basquiat
Reply
#4
tell me you copied & pasted that?
Reply
#5
nope, by hand
“Art is how we decorate space.
Music is how we decorate time.”
Jean-Michel Basquiat
Reply
#6
I think he was asking if you really typed "file.text" at the end or if you typed the name of your file. Or maybe the "Volumes" at the beginning. Maybe you should show us exactly what you typed.
Reply
#7
Make sure there's a space between "rm" and "-f"

Better yet, try "rm -i /Path/to/file.ext" first.
Reply
#8
Another tip: drag the file from a Finder window onto the Terminal after typing the "rm" command.
It will expand the full path there.
Reply
#9
can't do anything with the file with Finder. It stalls Finder forever.

rm -f /Bugs/Marvin/ProTools Free/time code/Image_01.mpg


Where Bugs is the start up. Marvin is another drive in the Mac. Then folders & file.
“Art is how we decorate space.
Music is how we decorate time.”
Jean-Michel Basquiat
Reply
#10
Put the file path in double quotes.

rm -f 
/Bugs/Marvin/ProTools Free/time code/Image_01.mpg

Because it has a space.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)