Questions tagged [symlink]

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 is used to modify the pathname resolution.

116 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
1answer
281 views

rsync: compare directories with symlinks

There are various similar questions here, but I don't think any of them quite answer this. I have a local directory (www) which has to be mirrored exactly on a remote server, and I need to confirm ...
5
votes
2answers
117 views

Installing programs on a removable drive

I am planning to install some software on removable media (which will presumably always be present in the computer, though it's possible that there could be occasions where it is absent). After doing ...
5
votes
1answer
896 views

Debian: How to resolve relocation error?

I am running Debian 7.1. I tried to apt-get install -f, and messed up. All command line returns ln: relocation error: /lib/arm-linux-gnueabihf/libc.so.6: symbol _dl_find_dso_for_object, version ...
5
votes
1answer
142 views

How do I batch-export all the content contained in symbolic links? (and then delete them all)

So as an alternative to Recursive scp without following links or creating a giant tar file? (this could be an emergency since the remote files could be deleted any time soon), I'm thinking of deleting ...
5
votes
0answers
1k views

No access to symlink folder on NTFS partition

I am using an NTFS parition for storing data I like to access both from Ubuntu and Windows 7. On my Ubuntu HOME partition, I like to link the folder Assets in order to access it from an application ...
4
votes
0answers
92 views

find and symbolic link

I was skimming over the documentation of find to better utilize the command usage. I was reading the part that says GNU find will handle symbolic links in one of two ways; firstly, it can ...
4
votes
0answers
232 views

How to swap a (log) file that a process has opened with a symlink to another file?

I have two processes that are writing to a log. ~/app/log/debug.log For storing logs, I created a separate disk, mounted at /mnt/logs/, it also contains a /mnt/logs/debug.log file. However, I ...
3
votes
0answers
230 views

Symbolic links do not allow SELinux type_transition

Trying to access symbolic link does not allow to use SELinux type_transition. I mean that I tried to implement scheme in which user has access to a symbolic link located in /usr/bin/ and which leads ...
3
votes
1answer
277 views

How to teach AppArmor about toplevel symlinks

I have my "root" partition split into two: a normal one that contains most files and a second one used for those areas that can "grow". Concretely, this means, I have symlinks like: /var/log -> ...
3
votes
0answers
88 views

How to approach planning a BSD file server's outward-facing file hierarchy

I'm migrating data on an informal home server to a new FreeNAS (FreeBSD 10) based file server running samba, and I'm stuck in trying to plan how to lay the data out, to give correct access to ...
3
votes
0answers
2k views

ld cannot find existing library

I'm trying to build a large application, yet for some reason linking fails and ld responds /usr/bin/ld: cannot find -l/usr/lib/x86_64-linux-gnu/libX11.so Steps I've tried: libx11-dev is correctly ...
3
votes
1answer
51 views

can you alias to a position inside a file?

Is there a way to create an alias that will open a pdf or other document to a particular position? For example, I have a 105 page pdf which I want to alias/shortcut to in a directory on my system. But ...
3
votes
0answers
4k views

rsync's “Read-only file system (30)” error

NB: This is a 2-part question: why does an error happen, and how to work around the error. (The two parts are related, inasmuch as the answer to the "why"-question may shed light on the "how"-...
3
votes
1answer
198 views

How can you group symlinks with directories in `ls` output but tell the difference?

In ls output, I'd like to group symlinks that point to directories along with the rest of the directories, but still have a way of telling that it's a symlink either with color or an appended symbol. ...
3
votes
0answers
152 views

How is This Symbolic Link Not Being Followed?

I have LibreOffice Writer and OpenOffice Calc installed on my OpenSuSE system. This is arguably not ideal, but before I fully switch to one or the other, I noticed some strange behaviour when calling ...
3
votes
0answers
751 views

Unison replacing newer symlinks with older files using the option -force newer

I'm having a problem with Unison and symlinks. I created a test case for making it easier to understand and try this for yourself. First, we create the two directories that will be synced. And some ...
3
votes
0answers
200 views

Why do slackware packages recreate symlinks after installation?

Reading through slackware's makepkg script, I saw that rather than putting symlinks directly into the package, it deletes them and generates a script called doinst.sh that recreates them after ...
3
votes
0answers
415 views

auditing of symlink/symlinkat syscalls doesn't work here

I'm trying to monitor symlink/symlinkat syscalls of files under a specific directory, so I added two rules: auditctl -a exit,always -F arch=b64 -S symlinkat -F success=1 -F dir=/XX auditctl -a exit,...
3
votes
0answers
450 views

Dereference copy with KDE Dolphin

From the cli I can dereference copy a symbolic link with cp -L. Is it possible to do this with the KDE Dolphin file manager?
3
votes
0answers
1k views

Multiple Linux or Unix Distributions, Same Home Partition or Data?

To avoid conflicts I have always installed multiple Linux and Unix distributions each with it's own home partion or directory, and in the era of 3TB hard drives this is often very practical; I also do ...
2
votes
0answers
44 views

Automatic symlink to latest folder

Is there a way in Linux to automatically maintain a symlink to the latest version of a file/folder in a certain location? My use case: I generate datasets with unique job names, then write them to a ...
2
votes
0answers
74 views

AIX : NOFOLLOW_LINKS is not supported on this platform

I have an AIX 7.2 machine. I am trying to run a Java program on it. It gives me this error: NOFOLLOW_LINKS is not supported on this platform. It is because I am using this call in the program: Files....
2
votes
0answers
56 views

Given a pathname and a symlink to a directory in the pathname, is there a command which can return an equivalent pathname making use of the symlink?

Sometimes I have a long pathname, and want to shorten it by some precreated symlink to a directory in the pathname. Specifically, given a pathname /path/to/file, and a symbolic link /symlink to a ...
2
votes
0answers
46 views

Apache startup error with symlinked configuration file with 777 permissions

Ubuntu virtual machine with Apache 2.4.7 I'm getting these errors: apache2: Syntax error on line 216 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/conf-enabled/...
2
votes
2answers
270 views

Is there a simple way to recursively copy all symbolic links under a directory to another directory, preserving the structure?

I have a directory ~/tmp/foo/ that's populated with subdirectories, files, and symbolic links. $ tree ~/tmp/foo/ tmp/foo/ ├── eggs │ ├── baz │ │ └── link3.txt -> /home/me/file3.txt │ └── ...
2
votes
0answers
602 views

Nested Mount Best Practice

I have two filesystems that need to be mounted on a RedHat system /apps and /apps/label. /apps will have several sub directorates and label will just have files FTP'd to it. Would it be better to ...
2
votes
0answers
942 views

symlink on directory permission denied

I've created a symlink shown here; lrwxrwxrwx 1 apache apache 33 Nov 4 11:55 blog -> /var/www/blog.mysite.com Which resides in the base of this directory /var/www/www.mysite.com/ If I ...
2
votes
1answer
1k views

How to make $ORIGIN in RPATH not follow symlinks?

I have an executable app, which depends on a library libbar.so and loads it via RPATH with $ORIGIN like this: $ readelf -d app Dynamic section at offset 0xe08 contains 26 entries: Tag Type ...
2
votes
0answers
47 views

Mounting USB stick in place of HDD

I'm currently working on a raspian automated box. I've connected an HDD Drive to use as a Samba server and the download and temp folder for the transmission client installed. As the HDD is noisy (and ...
2
votes
3answers
88 views

How run Linux application from a mounted Windows disk?

I have dual-boot operating system, Ubuntu and Windows 7. The problem is I can't install some Linux application on my Linux because considering the disk space. I always regret to myself why I allocated ...
2
votes
1answer
603 views

cp -a fails to copy symlinks on virtfs

Problem: Trying to copy the entire content of one directory to another which includes hidden files/directories and symlinks. This is fairly straightforward cp -a ${src} ${dst} It works as expected ...
2
votes
0answers
857 views

Create Symbolic Link for Windows Machines

I currently operate a SMB file server for my network and, like a lot of you guys, don't touch Windows myself. I need to create a symbolic link that will work on my user's Windows machine to \\SERVER\\...
2
votes
0answers
547 views

Directory symlink to inode, not path (e.g. directory hardlinks)

I'm trying to better understand why directory hardlinks are not possible. Roughly, I think of directories and files as follows: directory --------- inode # exposed as . inode_of_parent # ...
2
votes
2answers
63 views

Understanding and using Symlinks

I have a bit of a situation with a virtual server running some RHEL distro. The server is hosted on a Win2008 server via VMPlayer When it was created the initial partitions were set incorrectly. /...
2
votes
0answers
215 views

How can I make Krusader show real size of symlinked files?

In the "size" column in Krusader, there is a link's size noted, instead of the size of the actual file. This is the same as what ls -l shows (the full address of the target file, e.g. 64 B instead of ...
2
votes
0answers
4k views

Symbolic link to a socket

From a security point of view, is it safe to create a symbolic link to a socket file? The following bits of context refer to the deployment of a web application on a shared hosting service. $ ls -al ~...
1
vote
1answer
58 views

Rsync not correctly copying Symlinks

I have an rsync to copy over some rpms from one server to another but the issue is that the symlinks are not being created properly on the receiving server. My rsync options are -avz --force --delete ...
1
vote
0answers
41 views

tail reopen file when directory changes

I've got a symlink pointing to the "latest" directory, and I want to tail a file in the latest directory, even if the symlink changes to a newly created directory. I often use tail -F for files and ...
1
vote
1answer
48 views

Renaming parent directory of a directory that has symbolic links pointed to

I have created x number of symbolic links (ln -s path file) to a directory named templates that lives within mytheme directory. I would like to rename the theme folder but don't know the consequence ...
1
vote
0answers
62 views

How to append a new disk to an existing folder

I have a server with a program which rapidly writes data to a folder. I attached a new disk to the server, mounted it and now I want it to expand or replace the folder with data. The program works ...
1
vote
0answers
528 views

symbol lookup error gdbus

Keep getting this error: /usr/bin/gdbus: symbol lookup error: /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0: undefined symbol: g_date_copy looking at: root@server-sl:~# ldd /usr/bin/gdbus linux-...
1
vote
0answers
95 views

Can I access to the real path of a symbolic link in nautilus without scripts or terminal?

I made a symbolic link to a folder using the command ln. This link is located in my Desktop folder, the path of this link is as follows: /home/user/Desktop/workspace/ The real path is: /home/user2/...
1
vote
0answers
16 views

Thunderbird not willing to start firefox when binary replaced with symlink

I've been using the Debian "alternatives" mechanism to support multiple installed versions of Firefox. Regardless of the specifics, the bottom line is that instead of /usr/bin/firefox being a binary, ...
1
vote
1answer
4k views

How to solve - Failed to execute operation: Too many levels of symbolic links on CentOs 7

I am trying to install erpNext on a CentOS 7.4 VPS and I'm following the installation script here. But I get this error during installation: Processing dependencies for pip Finished processing ...
1
vote
1answer
32 views

Using find to only step through symbolic links n times?

Is it possible to use find to recursively search a path but to only step through into a path which is symbolic link to a specified depth of n? There is -maxdepth but this includes regular directories ...
1
vote
0answers
523 views

Why doesn't Samba represent Linux symlinks as NTFS symlinks?

Samba is showing/representing symlinks as regular folders. NTFS has symlink reparse points, and these can be represented via UNC - I tried sharing the Users directory in Windows and it showed the ...
1
vote
1answer
129 views

Symlink permission issue on Linux + ZFS

I have two symlinks pointing to the same target directory. ls shows one of them (the bad one) belonging to the 1001 user, the other to root. Any user other than 1001, even root, can list the directory ...
1
vote
0answers
190 views

How to view MATLAB livescripts?

When I try to open a matlab livescript inside the default DE, I get an error that says: Viewing MATLAB Live Script files is not currently supported by this operating system configuration. For more ...
1
vote
0answers
351 views

Symlinks not working on GlusterFS Fuse mount

I am running GlusterFS 3.11.3 on CentOS 7 64-bit in an OpenVZ environment. Since I am not the datacenter owner and the OpenVZ hosts don't allow sys_admin privileges to virtual machines, I have ...
1
vote
0answers
225 views

Nvidia Opengl symlinks

Last NVidia update in the Debian unstable branche (375.82) broke the symlinks of the openGL libs. LIBGL_DEBUG=verbose glxinfo|grep libGL: screen 0 does not appear to be DRI2 capable libGL: ...