A special type of file that references an inexistent or existing file or directory. The contents of a symbolic link consist of an arbitrary string that is the path to the file that the symbolic link points to. When the symlink is encountered during pathname resolution, the string stored by the file ...

learn more… | top users | synonyms (1)

4
votes
2answers
1k views

Why is bash completion of a symlink different than a directory?

I usually do a find with an environment variable as the path when searching for source code. Recently I replaced my environment variable with a symbolic link, and it broke Bash's shell completion. ...
3
votes
1answer
245 views

Test for link with trailing slash?

I created in /tmp/test/ mkdir somedir ln -s somedir/ somelink I want to loop through only directories: for file in */ ; do if [[ -d "$file" && ! -L "$file" ]]; then echo "$file is a ...
2
votes
3answers
706 views

Convert a hardlink into a symbolic link

It is easy to convert a symlink into a hardlink with ln -f (example) It would also be easy to convert a hardlink (filenames link and original) back to a symbolic link to link->original in the case ...
2
votes
1answer
52 views

Is there a purpose to a symbolic link that points back to the directory containing it?

When Gogs docker installation is run it creates a symbolic link /data/git/git that points back to the parent folder: lrwxrwxrwx 1 1000 1000 9 May 13 19:37 git -> /data/git I'm ...
2
votes
1answer
446 views

udev not running rule at boot?

I have a very simple udev rule at /etc/udev/rules.d/sdcard.rules: KERNEL=="mmcblk1", SUBSYSTEM=="block", SYMLINK+="sdCARD" Problem is the symlink is not created for me automatically at boot. I have ...
2
votes
2answers
8k views

Recursive scp without following links or creating a giant tar file?

So I did a recursive scp on my remote fileserver (in another state) and it created an infinite loop of links on my remote web directory... http://www.linuxquestions.org/questions/linux-general-1/...
1
vote
1answer
494 views

Does symlinking from Drive A to Drive B affect I/O on Drive A?

I was wondering if IO through a symbolic link affects IO on the host drive even if it points to a seperate drive? My setup is, /dev/sdb2 1.8T 443G 1.3T 26% /home1 /dev/sda3 1.8T 1.7T ...
1
vote
1answer
269 views

How to find the package that installed a comand, if “dpkg -S” finds no path because the command is a symlink?

While I was writing up a tag information for rename, I tried to look up with which package the rename command was installed. I ran the usual dpkg -S (also mentioned in this question): $ which rename /...
1
vote
1answer
142 views

Symlinks to directories not rendering properly through Samba

I maintain many projects at a time, and keep them all organized within a single directory, Projects. Now, keeping myself somewhat oriented necessitates the use of symlinks so as to associate useful ...
0
votes
2answers
313 views

How do I copy directories and symlink files?

I have got a directory of huge files (total ~ 1TB) and I don't want copy them around. However, I'd like to work around them, so it would be convenient to have them linked in a directory hierarchy I ...