I successfully and not successfully created a symlink:
I have two directories
Now I have a file called
baz.txt in this path
~/foo. My aim was to create a symlink in
~/bar so I can access it from there as well.
With following command which I executed in the directory
ln -s baz.txt ~/bar
I got a bad symlink which got marked red. The results weren't as I expected and I tried something else which eventually worked out for me.
I executed this command in the path
ln -s ~/foo/baz.txt .
I wonder now why my first approach didn't work since I referenced my file to the directory where I want to have my symlink. It looks to me like I did the same thing in both commands just in different directories.