Closed robsonpeixoto closed 1 year ago
Thank you for revising our document. I would like to suggest the ln -s src -t dirname
instead of your approach.
$ ln -s /home/linuxbrew/.linuxbrew/share/fonts -t ~/.local/share
I noticed that there still remains a problem in your approach.
$ mkdir ~/.local/share/fonts
$ ln --verbose --symbolic --no-dereference /home/linuxbrew/.linuxbrew/share/fonts ~/.local/share/fonts
'/home/tani/.local/share/fonts/fonts' -> '/home/linuxbrew/.linuxbrew/share/fonts'
Would you mind checking this behaviour? Best regards,
I agree with you, @tani! Your solution is better.
Anyway, thank you for your contribution!
A simple
ln -s TARGET LINK_NAME
will by default create a symlink with the nameLINK_NAME
ifLINK_NAME
is a file or will create a symlink insideLINK_NAME
ifLINK_NAME
is a directory. For example:The parameter
--no-dereference
will tread the LINK_NAME as a file avoiding such problem: