![]() |
using "rm" in Terminal - Printable Version +- MacResource (https://forums.macresource.com) +-- Forum: My Category (https://forums.macresource.com/forumdisplay.php?fid=1) +--- Forum: Tips and Deals (https://forums.macresource.com/forumdisplay.php?fid=3) +--- Thread: using "rm" in Terminal (/showthread.php?tid=78950) |
using "rm" in Terminal - Fritz - 06-01-2009 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. Re: using "rm" in Terminal - Seacrest - 06-01-2009 rm -f /Volumes/drive/folder/folder/file.ext Re: using "rm" in Terminal - Fritz - 06-01-2009 didn't take that. -bash: rm -f: command not found Re: using "rm" in Terminal - decay - 06-01-2009 tell me you copied & pasted that? Re: using "rm" in Terminal - Fritz - 06-01-2009 nope, by hand Re: using "rm" in Terminal - lazydays - 06-01-2009 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. Re: using "rm" in Terminal - Seacrest - 06-01-2009 Make sure there's a space between "rm" and "-f" Better yet, try "rm -i /Path/to/file.ext" first. Re: using "rm" in Terminal - Seacrest - 06-01-2009 Another tip: drag the file from a Finder window onto the Terminal after typing the "rm" command. It will expand the full path there. Re: using "rm" in Terminal - Fritz - 06-01-2009 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. Re: using "rm" in Terminal - Seacrest - 06-01-2009 Put the file path in double quotes. rm -f/Bugs/Marvin/ProTools Free/time code/Image_01.mpg Because it has a space. |