Tagged Questions
6
votes
3answers
302 views
What's the purpose of `rm -P`?
I was reading the man page for rm when I came across this option:
-P Overwrite regular files before deleting them. Files are overwritten
three times, first with the byte pattern 0xff, then ...
4
votes
3answers
485 views
Remove many many many files from a folder
I have a folder with 137795 files in it. I need to delete all of them. When I run rm * I get -bash: /bin/rm: Argument list too long. How do I get past this error?
26
votes
7answers
2k views
How do I delete a file whose name begins with “-” (hyphen a.k.a. dash or minus)?
How do you remove a file whose filename begins with a dash (hyphen or minus) -? I'm ssh'd into a remote OSX server and I have this file in my directory:
tohru:~ $ ls -l
total 8
-rw-r--r-- 1 me ...