I did a search in this repository and I didn’t find any similar questions or maybe my search was wrong.
I have this problem in my client environment, the user application creates directories with the environment variable "$ SRCDIR" and "$ HOME", and the directory where they are created is itself the dir HOME path. if I say rm -rf $HOME, then all files and subdir in $ HOME, which is the current directory, will be deleted. How to remove these unwanted directories.
-rw-r--r-- 1 grp domain users 418051450 Apr 18 18:09 $SRCDIR
-rw-r--r-- 1 grp domain users 418051450 Apr 18 18:09 $HOME
Also, some directories are unnecessary characters, as shown below.
-rwxr-xr-x 1 grp domain users 0 Feb 7 2106 ??????w?O???*????_6??t??Ó¡?>?tP??Ñ?|?C
How to remove them?
source
share