Package: debian-reference-en
Version: 1.08-3
Severity: important
tips.sgml
8.7.1 rm -rf .*
In "rm -rf .*", ".*" expands to include "." and "..", and if you happen
to have privileges to write to the parent directory then you'll end up
removing all directories *next* to your current directory as well.
* "rm -rf ." : removes everything under current directory and
current directory itself.
* "rm -rf *" : removes every non-dot files and non-dot directories
under current directory
* "rm -rf .[^.]*" : removes every dot files and dot-directories
under current directory.
* "rm -rf .*" : removes everything under parent directory and parent
directory itself.
In sarge,I has privileges to write to the parent directory.
When I execute "rm -rf .*",it can't removes parent directory itself as
the document described.
debian:~/tmp# export LANG=C
debian:~/tmp# rm -rf .*
rm: cannot remove `.' or `..'
rm: cannot remove `.' or `..'
In woody,is this command will take affect?
Is this note specially for woody?
-- System Information:
Debian Release: 3.1
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.8
Locale: LANG=zh_CN.GB2312, LC_CTYPE=zh_CN.GB2312 (charmap=GB2312)
Versions of packages debian-reference-en depends on:
ii debian-reference-common 1.08-3 Debian system
administration guide
debian-reference-en recommends no packages.
-- no debconf information
--
??????(Faris Xiao)
Email:[EMAIL PROTECTED]
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]