0
votes
1answer
445 views

rm -rf does not delete folder contents but instead creates another empty one

I'm currently writing a start script for a minecraft game server. In this script I included a backup script. This backup script works almost perfect but instead of deleting a folders contents it just ...
0
votes
2answers
271 views

Accidentally “rm -rf /” in OS X [closed]

Some background to maybe help others from making this mistake. I was reading jokes from this Stack Overflow page to my friend ...
3
votes
1answer
40 views

OS X - DEAAD300 File Can't be seen via Terminal or Deleted

OS X - 10.7.5 I have a file DEAAD300 on a users desktop that I can not delete. EDIT - The file can not be opened either. The icon that shows up looks like an Excel file (The user has Office 2011 ...
1
vote
1answer
141 views

rm !(myfile) does not work on OS X?

The command works fine on Linux but on OS X Mountain Lion when I'm doing: rm !(myfile) bash complains: bash: !: event not found Is there any way to do it the same on OS X?
7
votes
3answers
494 views

How to remove a file with unprintable charaters in Mac OS X Terminal [duplicate]

Possible Duplicate: Removing file with strange characters in filename in OS X I have a folder that has a file who's name is Icons and ends with an additiona unprintable character. I can see ...
1
vote
1answer
1k views

Cleanly Remove MAMP Pro

I'm trying to cleanly remove MAMP Pro from my Mac and I'm following the steps outlined in the SO article http://stackoverflow.com/questions/11855247/mamp-pro-restore-root-user-uninstall. I have been ...
1
vote
3answers
5k views

OS X Lion: Emptying the trash takes “forever”: is using rm -r safe?

Emptying my Trash in OS X Lion (non securely) is taking about three hours (about 1.5 million files, from a Time Machine backup). I had to stop the process a few times already, because I could not move ...
8
votes
3answers
11k views

Can files deleted with rm -rf be recovered?

When I delete folders or files in through osx terminal using the rm -rf, where do they go? I heard that some say they are deleted directly, but some also say it only "remove the link to the file ...
0
votes
1answer
516 views

Recover files that were rm [duplicate]

Possible Duplicate: Can files deleted with rm -rf be recovered? How to recover files that are rm -rf? Because, I know they aren't deleted at that point. I am using OSX 10.7, is there an app ...
5
votes
1answer
6k views

Trying to delete directory with “rm -rf”, but get message that it's not empty

I've tried deleting a directory using "rm -rf" and I'm getting the message "Directory not empty": Bens-MacBook-Pro:please benjaminhocking$ ls -lart empty_directory/ total 16 drwxr-xr-x 5 ...
0
votes
0answers
340 views

How to delete *.vmdk files?

I can't seem to delete *.vmdk files and related on Mac OS X 10.6.8 with sudo rm: $ sudo rm -rf /Volumes/Temp/vm/ rm: /Volumes/Temp/vm//MarukoVM/nvram: Read-only file system rm: ...
1
vote
2answers
914 views

How can delete all files except one from a directory?

I need to delete all files, except one (its name is defined), from a given directory. How can I do this from the terminal in OS X? Can I do this with one single command?
4
votes
4answers
6k views

Command to remove all files and folders recursively including, hidden ones, on MAC OS Terminal?

rm -rf * will remove all files and folders but not hidden ones. rm -rf .* will remove all hidden files and folders, but not those that are not hidden, correct? What command should one type, in order ...
2
votes
1answer
185 views

What command sequence can I use to delete directories but not their files?

How do I delete directories but not the files inside them? I have tried the following: rm -di /Users/arthur/Desktop/MyFolder remove /Users/arthur/Desktop/MyFolder? y rm: ...
4
votes
2answers
553 views

Safe substitute for OS X `rm`?

I am used to having rm to alias something safer. I have been using osx-trash, but once I upgrade to Ruby 1.9.2, this stops working. I know about trash-cli from Python, but I would much prefer ...
4
votes
3answers
6k views

Mac — remove all files with a certain extension from a directory tree [duplicate]

Possible Duplicate: Delete files recursively matching a name on the command line (OS X) I want to remove all files with extension .orig from my tree. The tree is deep. Is there an easy ...
1
vote
1answer
88 views

rm'd dirs in Users/home/ reappear in OSX [duplicate]

Possible Duplicate: Stop Mac OS from re-creating ~/Pictures, ~/Music, or ~/Public Hi, I su'd to root and deleted some stock directories in my home folder such as Documents, Music, Pictures ...
1
vote
1answer
198 views

Can I list file names (or their parent directories) that were recently deleted using rm in OS X?

Is it possible to find out which files and directories have recently been deleted by rm in OS X? Or failing that, is it possible to find which parent directories have had files or directories within ...
2
votes
4answers
1k views

Mac keyboard shortcut to rm file [duplicate]

Possible Duplicate: Permanently deleting files on Mac OS What's the Mac keyboard shortcut to rm a file? I know command + delete sends it to trash, but I want to permanently delete it, say ...
4
votes
3answers
1k views

Removing file with strange characters in filename in OS X

After a memory error in my program, I am stuck with a file with a strange filename. It's proving quite resistant to all normal methods to remove files with strange names. The filename is: ...