How to remove all (dot) files in linux
28 Dec 2008This ommand will remove all the dot files without removing top level directory. This command tested on Centos 5 and usually applicable to all Linux distros.
rm -rf .[^.]* && rm -rf ..?*
This ommand will remove all the dot files without removing top level directory. This command tested on Centos 5 and usually applicable to all Linux distros.
rm -rf .[^.]* && rm -rf ..?*