Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

LINUX rm command ?

  1. May 31, 2004 #1
    LINUX rm command ???

    How do i remove files starting with "-"

    -file1.txt
    -data.txt

    rm -file1.txt
    cant find a option -file1.txt


    ???
     
  2. jcsd
  3. May 31, 2004 #2
    rm -- -file1.txt or
    rm -- -*.txt

    use the man pages whenever you can't find an option. It is usually explained there. To see the man page for a command type man <command_name>, i.e. man rm
     
  4. May 31, 2004 #3
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook