Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

metsomaniac

macrumors member
Original poster
Nov 15, 2011
43
0
How do I delete a file using terminal that I don't know the location off?

thanks

Metso
 
How do I delete a file using terminal that I don't know the location off?

thanks

Metso

???

How do you delete any file that you don't know the location of? You don't know what you'd be looking to delete?

Do you mean you're trying to locate a specific filename from something you're not sure you deleted, or something else?
 
basically I have a file a mel script that I wish to delete,

I know the file name but don't know where it is installed on my laptop. I wondered if there is a way I could delete it without knowing where it is.

I've tried to spotlight it but can't locate it
 
You could use the `locate` command to find the file.

Ex:
locate -i some_file.txt

It will print out all file paths that match that file name. The -i makes the search be case-insensitive.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.