How the hell can I view a file whose name starts with a '-' on a unix machine?

notfred

Lifer
Feb 12, 2001
38,241
4
0
Figured it out... works if you cd to the parent dir and then put the whole path in quotes.
 

Platypus

Lifer
Apr 26, 2001
31,046
321
136
What shell are you using.
What kind of file is it.


Usually the - is the beginning of a parameter.
For example kill -9 meaning "NOW" :p
 

Heisenberg

Lifer
Dec 21, 2001
10,621
1
0


<< For example kill -9 meaning "NOW" :p >>



Or, as I like to call it, "terminate with extreme prejudice". :D
 

Platypus

Lifer
Apr 26, 2001
31,046
321
136


<<

<< For example kill -9 meaning "NOW" :p >>



Or, as I like to call it, "terminate with extreme prejudice". :D
>>



:D hahaha.

That is a bit extreme, my terminate with extreme prejudice is "rm -rf /"
 

Heisenberg

Lifer
Dec 21, 2001
10,621
1
0


<<

<<

<< For example kill -9 meaning "NOW" :p >>



Or, as I like to call it, "terminate with extreme prejudice". :D
>>



:D hahaha.

That is a bit extreme, my terminate with extreme prejudice is "rm -rf /"
>>



That will work too. I've always wanted to try that just to see what happens.