Re: what does ~* do?
In some quite old UNIX systems root didn't have a separate home directory...
executing rm -r ~* would be something like rm -r /*
This is from the HP manual "HP-UX 11i Version 1 Installation and Update Guide" under "Cold Install" ...
"Consider creating a root home directory that is not /. This keeps the user root dot files out of the / directory. Make sure it is on the root volume by not locating it under the mount point of the file system. A good name to use is /homeroot (not /home/root) as /home is often a mount point. This is especially important if you are using LVM or VxVM and /home is a seperate volme."