News for hackers. Stuff that matters.
Re:My 10 UNIX Command Line Mistakes by kgo on Sunday February 27, 2011 @06:05PM (#2269270)
# on windows box

scp file linuxbox:~

# on linux box # I now have a file called /home/me/~

rm ~

# some stupid error...

rm -fr ~

# that's taking a while...

NOOOOOOO!

Re:My 10 UNIX Command Line Mistakes by megamark16 on Sunday February 27, 2011 @11:08PM (#2269998)
I did almost the same thing, except someone created a symlink named "" (just an asterisk). I "ln -l"'d the current directory, saw the weird broken symlink, and without thinking did "rm ". The slow motion double take immediately after hitting enter was like a shot from a movie. "NOOOOOO!".
Re:My 10 UNIX Command Line Mistakes by Sniffnoy on Monday February 28, 2011 @12:35AM (#2270178)
...OK, I have to ask. Why would you name a file "~" in the first place?
Re:My 10 UNIX Command Line Mistakes by gleenn on Monday February 28, 2011 @02:07AM (#2270421)
You missed the part where they said they were on a windows box trying to copy a file to their home directory. Instead of copying the file to the home directory, it made a file called ~.