bug-fileutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

rm


From: jac.chang
Subject: rm
Date: Tue, 21 May 2002 20:45:53 +0800

I don't know is it a bug?
 
address@hidden jac]# ll
total 324080
drwxr-xr-x    2 root     root         4096  5月 20 23:04 73/
-rw-r--r--    1 root     root     331505780  5月 20 15:52 Image.nrg
drwx------    2 jac      mail         4096  5月 21 08:05 mail/
drwxr--r--    2 jac      jac          4096  5月 19 21:43 public_html/
drwx------    2 jac      jac          4096  5月 17 22:24 tmp/
address@hidden jac]# rm Image.nrg
rm: remove write-protected file `Image.nrg'? y
rm: cannot unlink `Image.nrg': Read-only file system
address@hidden jac]# rm Image.nrg -rf
rm: cannot unlink `Image.nrg': Read-only file system
address@hidden jac]# rm -v
rm: too few arguments
Try `rm --help' for more information.
address@hidden jac]# rm --help
Usage: rm [OPTION]... FILE...
Remove (unlink) the FILE(s).
 
  -d, --directory       unlink directory, even if non-empty (super-user only)
  -f, --force           ignore nonexistent files, never prompt
  -i, --interactive     prompt before any removal
  -r, -R, --recursive   remove the contents of directories recursively
  -v, --verbose         explain what is being done
      --help            display this help and exit
      --version         output version information and exit
 
To remove a file whose name starts with a `-', for example `-foo',
use one of these commands:
  rm -- -foo
 
  rm ./-foo
 
Note that if you use rm to remove a file, it is usually possible to recover
the contents of that file.  If you want more assurance that the contents are
truly unrecoverable, consider using shred.
 
Report bugs to <address@hidden>.
address@hidden jac]#

reply via email to

[Prev in Thread] Current Thread [Next in Thread]