PDA

View Full Version : LINUX rm command ???


karthik3k
May31-04, 02:27 AM
How do i remove files starting with "-"

-file1.txt
-data.txt

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


???

Guybrush Threepwood
May31-04, 02:36 AM
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

The_Professional
May31-04, 09:56 AM
Linux/Unix commands (http://www.computerhope.com/unix.htm#02)