1753415 Members
7168 Online
108793 Solutions
New Discussion юеВ

Re: how to remove

 
SOLVED
Go to solution
sreedhar2u
Frequent Advisor

how to remove

I have a file with the name ( -tt ) in my home drive. how to delete this file.

file name : -tt
4 REPLIES 4
Raj D.
Honored Contributor

Re: how to remove

what is the problem trying with :
# rm "-tt"
" If u think u can , If u think u cannot , - You are always Right . "
Dennis Handly
Acclaimed Contributor
Solution

Re: how to remove

rm ./-tt
Or: rm -- -tt

>Raj D.: what is the problem trying with: rm "-tt"

That's the same as: rm -tt
sreedhar2u
Frequent Advisor

Re: how to remove

rm -f /home/usr/-tt
rm -- -tt

both worked.

Thanks
Raj D.
Honored Contributor

Re: how to remove

Dennis, Good to know,.. Thanks a lot!.
" If u think u can , If u think u cannot , - You are always Right . "