carlosinfl |
06-09-2008 12:32 PM |
Removing a Specific Dir From All /home Dir
I am moving everyone's home directory from server_old to server_new.
Code:
[root@server_old carlwill]# ls -la
total 52
drwx------ 4 carlwill it_dept 4096 Apr 16 2007 .
drwxr-xr-x 420 root root 16384 Jun 9 08:53 ..
-rw-r--r-- 1 carlwill it_dept 24 Oct 18 2006 .bash_logout
-rw-r--r-- 1 carlwill it_dept 191 Oct 18 2006 .bash_profile
-rw-r--r-- 1 carlwill it_dept 124 Oct 18 2006 .bashrc
-rw-r--r-- 1 carlwill it_dept 120 Oct 18 2006 .gtkrc
drwxr-xr-x 3 carlwill it_dept 4096 Oct 18 2006 .kde
drwx------ 9 carlwill it_dept 4096 Apr 16 2007 data
My question is can I simply run rm -rf *.kde to delete everyone's .kde hidden directory in their home dir? The new server does not have KDE and I don't want to migrate over useless files / folders especially on a critical server like this one.
I know if I remove KDE from server_old, that will not remove their ~/.kde directories sadly unless there is a switch I am unaware of.
Anyone know what the best course of action would be? I am trying to delete the two .directories in red on all 500 users on this server...
|