[LINUX] Notes playing with symbolic links

Overview

I made a note because I was played by a symbolic link.

Symbolic link goes inside

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 dir.

Remove symbolic links

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

.Htaccess above the symlink source directory

It seems to be ignored.

Because it was known earlier, it ended in an attempt.

end

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.

Recommended Posts

Notes playing with symbolic links
Notes about with
About symbolic links
Hard links and symbolic links
Auto Encodder notes with Keras
Error when playing with python
Playing handwritten numbers with python Part 1
Notes on package management with conda
[Memo] Links for developing with Flask
Laplacian eigenmaps with Scikit-learn (personal notes)
How to create / delete symbolic links
Notes on using rstrip with python.
Recursively collect wikipedia links with python
Features of symbolic and hard links