A special type of file that references a file or directory.

learn more… | top users | synonyms (1)

4
votes
3answers
249 views

File permissions

I have a PHP script running which makes symlinks. To confirm which user it is: file_put_contents("testFile", "test"); $user = fileowner("testFile"); unlink("testFile"); echo "running as user '" . ...
1
vote
2answers
41 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 ...
4
votes
1answer
113 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 ...
1
vote
1answer
21 views

Symlink all files in a directory with the entire directory tree

Right now I use this ln -s /dir/* /dir2/ Which will symlink everything, but I have to go inside the dir and make a new directory because the folders are also symlinked (this is expected). So here ...
1
vote
1answer
34 views

Help 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 ( I'm going to smack the guy who set this up.) When it was created ...
1
vote
1answer
55 views

get rsync to dereference symlinked dirs presented on cmdline like find -H

I'd love rsync to copy symlinks to dirs specified on the cmdline as dirs but leave all symlinks in the copied tree as is - like find -H, but the only way is a nasty hack of rsync -aR --rsync-path='cd ...
0
votes
1answer
18 views

Linux - symlink between mtd partition and user data from mount location

Is it possible to create a symbolic link between NAND/NOR mtd partition and a file from mounted partition (e.g., ln -s /tmp/mnt/linux.bin /dev/mtdblock1)
0
votes
1answer
35 views

Providing ftp access (of selected files) to users from a hashed repository of unique files

We have a portal where each user has an account and a file repository that goes with it. Whenever any user uploads a file using a form, the php app hashes the file contents first and checks to see if ...
0
votes
1answer
36 views

Convert linux symlink to osx symlink

I have transferred a folder from a linux machine to a macbook pro with osx 10.9, now I am having trouble with the symlinks in this folder (lots of them). In linux if I do vi link2file.txt, it has the ...
0
votes
1answer
91 views

How to increase the link count for a directory, link count went to 0?

I have made myself land in this situation, it is a chrooted workspace on my system where I virtualize the entire file system ( so its not actual /var/log ) Is there a way that I can either delete this ...
-1
votes
1answer
39 views

Can rsync mirror a directory, without following symlinks linking outside the tree?

I want to mirror some home directories to a remote location, but don't want to follow links that point outside the tree. Links pointing with the directories themselves are okay. I also want the links ...
4
votes
0answers
424 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 ...
3
votes
0answers
54 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
66 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 ...
3
votes
0answers
389 views

sshfs breaks symlinks from SFTP server

Does anyone know how to mount a remote SFTP path via SSHFS so that you can work with symlinks? When I do this, all the symlinks I create point to the wrong files (not the ones I linked to.) All the ...
3
votes
0answers
297 views

Using symbolic links and git to manage build versions

In general I follow the following workflow when I build any program (e.g. emacs, tmux, etc.) /home/opt/[name of the program]/builds/[version]/ bin lib share For example for a program like tmux I ...
2
votes
0answers
35 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 ...
2
votes
0answers
372 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 ...
1
vote
0answers
27 views

Is it safe to symlink to /usr/include/x86_64-linux-gnu/sys from /usr/include/sys?

I'm missing the /usr/include/sys dir and all of its headers. I have build-essentials and supposedly every other -dev package I require for this make. From reading around I understand that it's safe ...
1
vote
0answers
37 views

Is it possible to make a symbolic link of a file in other machine?

I have a account in a server and I would like have a symbolic link of some files in my local machine. How can I do this?
1
vote
0answers
48 views

What are some ways to update symlinks when the dir they point to are changed?

When the dir pointed by a symlink changes its name or ancestral dir(s), the symlink will not work. This happens often. Is there some more or less automatic way to make a symlink keep track of that? I ...
1
vote
0answers
72 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 ...
1
vote
0answers
110 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?
1
vote
0answers
900 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 ...
0
votes
0answers
10 views

Git, puppet `file` type and symlinks

I'm working on merging two puppetmasters into one. Configurations for each are kept in its own git repository. puppetmaster1 must go, and all the hosts must be handled by puppetmaster2. In ...
0
votes
0answers
25 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 # ...
0
votes
0answers
23 views

Why does reading from a symlink to network location cause local disk activity?

I am running RHEL 6.4 and have a symbolic link in my home directory to a large file stored elsewhere on a network. My home directory is a network location as well. I've noticed that when I run a ...
0
votes
0answers
16 views

default llvm toolchain issue on Mac

Recently I have been using Mac 10.10; but I find that the compilation toolchain is a bit odd to me. It's known to us that on recent Mac OS versions the default gcc is a faked one that is based on ...
0
votes
0answers
61 views

Avoid infinite loops in file operations

In many programs, such as in this example filezilla, when I go to use certain directories they get stuck in an infinite loop. So I might be uploading a folder to an FTP server, but this folder links ...
0
votes
0answers
239 views

g++: error: /usr/lib/libGL.so: No such file or directory after uninstalling AMD drivers

This is a question asked several times all over the internet. Duplicates: http://askubuntu.com/questions/395544/g-error-or-nosuch-file-or-directory ...
0
votes
0answers
16 views

Mount (or makefs or tunefs or cap or…) option to disallow symlinks?

(Other than mkfs.vfat, that is.) Is there a way in Linux to have a filesystem mounted but to prevent symlinks from being made on it? It's fine if this needs to happen at the time the filesystem is ...
0
votes
0answers
608 views

make: i686-linux-gcc: Command not found

I am using Ubuntu-11.10 amd64 and trying to cross-compile a linux-2.6.38.8 kernel for a 32-bit target.I tried make CROSS_COMPILE=i686-linux- ARCH=i386 But I got error make: i686-linux-gcc: ...