I have a particular way that I order my folders within documents to keep things nice and neat, but many programs I use want to dump things in my home folder. Some things, like git, are just easier to access from the home folder.
I'd like to set up symbolic links for these, but I'm not sure which direction to go with it. I'm thinking I should place the files in my documents scheme, and create the symbolic link folders in my home folder. I'm just not sure how the path is read by the item using it. (Like if git accesses the symbolic link, is the path the "same" as if the file were actually in that folder?)
Example:
~ original directory: ./Documents/directory1/directory2/
~ symbolic link: ./git
linked to directory2
~ accessing a file in directory2: ./git/fileA
(fileA being located in directory2)
So my questions are:
Is my understanding of how to set this up correct? Are the paths to files read from the linked folder the same as if they were in the original folder?
If my understanding is not correct, how do I write paths to access files within the linked directory?
ls -ld ~/git
and a sample ofls -l ~/Documents/directory1/directory2
that includesfileA
? I think the answer to your question is YES; if you create a symlink to a directory, you can use the symlink in a path, instead of the real directory path. But I am not sure I follow exactly what you want to ask.../paths/look/clearer/as/code
but I couldn't find a way to do it that seemed right. Anyway, I think the answerers understood and I agree with them