Red Hat

  www.redhat.com
  www.redhat.com

Interview Question

Systems Engineer Interview

How would you remove a file from the GNU/Linux command line

  that started with '-'
Answer

Interview Answer

3 Answers

0

rm -- -foo

Q on Apr 12, 2012
0

Easier

rm \-

Tom on Nov 29, 2012
1

file named like -file should be removed by command
rm ./-file

Go on Jan 12, 2013

Add Answers or Comments

To comment on this, Sign In or Sign Up.