Tagged Questions

0
votes
2answers
135 views

How can I remove a directory with rm - rf?

I try to remove a folder with rm -rf foldername … but it says rm: cannot remove folder :is a directory. What's wrong?
1
vote
1answer
894 views

Removing a very large folder (~40GB) with lots of files efficiently in linux

I'd like to remove a folder with lots of files (namely millions of) efficiently. When I issue rm -rf folder/ it takes hours and I have to kill it. I'm wondering whether there is a magical way of doing ...
2
votes
1answer
114 views

Deleting another user's diretories from my own

I am a non-root user, and have made a directory into which other users in my group can write. The directory is setgid, so files and directories within it have the same group. I can delete files ...
1
vote
2answers
515 views

How to remove a directory which looks corrupted

I am using Ubuntu 9.10. When I examine a directory, it shows as '?' for user/ownership. How can I remove it? -rw-r--r-- 1 hap497 hap497 1822 2010-01-28 22:48 IntSizeHash.h d????????? ? ? ...
4
votes
4answers
5k views

How to tar directory and then remove originals including the directory?

I'm trying to tar a collection of files in a directory called 'my_directory' and remove the originals by using the command: tar -cvf files.tar my_directory --remove-files However it is only ...
1
vote
3answers
2k views

Delete all files in a folder without deleting directories? (OS X)

Is there a simple terminal command maybe to delete all actual data, all files but leave all the directories there? Including packages (.app) as directories? -- You don't need to read this: The reason ...