?

Log in

No account? Create an account

Previous Entry | Next Entry

This is funny. I was doing some tar's of directories. The tar happened, but due to my mistake the tar name became -C . I was trying to move/delete the same, tried single quote/double quote/escape.. Nothing worked.Came to know about the solution from one of my colleague.

 Since the file name begins with -, commands like mv, rm treats the file name itself as a parameter(option) to the command. To nullify this affect, we have to put -- before the file name.

rm -- -C

Profile

jaduks
Jadu Kumar Saikia

Latest Month

January 2008
S M T W T F S
  12345
6789101112
13141516171819
20212223242526
2728293031  
Powered by LiveJournal.com
Designed by chasethestars