I made a note because I was played by a symbolic link.
When you execute the following
$ ln -s /home/dir dir
If you execute it when the
dir directory already exists, a symbolic link of
/ home / dir will be generated under
It cannot be deleted with
rm -rf dir.
This is because symbolic links are not directories.
$ rm dir
But I want to use this (because
rm is not scary).
$ unlink dir
It seems to be ignored.
Because it was known earlier, it ended in an attempt.
I was played with symbolic links through deployment and building a CI environment. There were some scenes where I was sick, so I'll be careful not to type commands.