Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Debian GNU/Linux Reference Guide
Prev Home Next

8.7.1 rm -rf .*

The use of wild card file name in command line argument such as "rm -rf .*" may cause dangerous result, since ".*" expands to include "." and "..". Fortunately for the current verion of "rm" command in the Debian distribution, it checks sanity of the argument file names and refuses to remove "." and "..". But this is not always the case. Try following to see how the wild card file names work.

  • "echo ." : lists everything under current directory and current directory itself.

  • "echo *" : lists every non-dot files and non-dot directories under current directory

  • "echo .[^.]*" : lists every dot files and dot-directories under current directory.

  • "echo .*" : lists everything under parent directory and parent directory itself.


Debian GNU/Linux Reference Guide
Prev Home Next

 
 
  Published under the terms of the GNU General Public License Design by Interspire