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

learn more… | top users | synonyms (1)

1
vote
0answers
15 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 ...
0
votes
1answer
45 views

System wide symbolic link

I'm trying to create a symbolic link which would be system-wide usable. The $PATH output is the follow: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games So I don't understand ...
1
vote
1answer
55 views

symlink /home/username/Documenten tot 2nd partition?

I am trying to make a symlink so all documents are on a different harddisk drive. I learned how to make a symlink and tried to create the desired symlink. this is the command I used in terminal: ln ...
0
votes
2answers
41 views

Finding the original file of a symbolic link

s lets say i have a symbolic link of a file in my home directory to another file on a different partition. How would i find the target location of the linked file? By this i mean, lets say i have ...
13
votes
3answers
646 views

Determining if a file is a hard link or symbolic link?

I'm creating a shell script that would take a a filename/path to a file and determines if the file is a symbolic link or a hard link. The only thing is, I don't know how to see if they are a hard ...
2
votes
2answers
44 views

ls doesn't give me the same as cd + ls to the same folder

$> ls ../../../../.. Doesn't give me the same result as $> cd ../../../../.. $> ls Why? Something with links? What's going on? [ johanrj@jamin ] ...
0
votes
1answer
17 views

Create symlinks on an external storage device that can work on any Linux machines?

An external storage device can be connected to different Linux or Unix machines, and I guess its mounting point may be different? If yes, will symlinks that are stored on the device and link to files ...
-1
votes
1answer
19 views

Can a symlink be edited to link to a different directory or file? [duplicate]

When I move a directory elsewhere, a symblink to it will become invalid. The way I update a symlink mylink is first going into the directory, and then running ln -s "$PWD" mylink, and then mv mylink ...
0
votes
0answers
12 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 ...
2
votes
1answer
25 views

Soft Link created for new software installation

When we install a new software, after extraction the below steps are performed generally: move the files to /opt/folder create the symlink sudo ln -s /opt/folder/application_folder_name ...
1
vote
1answer
33 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 ...
4
votes
2answers
48 views

Symlink all Directories inside one directory to another directory

I am using a NAS(synology/xpenology) currently with 1 Drive /volume1/Drive is the share. I have other shares on this Drive /volume1/Drive/SeriesPC its a share connected to my drive on my pc. Now I ...
0
votes
1answer
32 views

Is it possible to access these directories?

I'm trying to recover data from my Ready NasDuo which is Spark based with a 16kb block size. I've followed another post and successfully mounted the drive using a command like sudo fuseext2 -o ...
1
vote
0answers
34 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
1answer
22 views

copy symlinks with rsync

When I'm trying to backup a disk with rsync, symbolic links are not resolved correctly. For example: media └disk1 ├folder1 │ └folder2 (symlink to /media/disk1/folder2) └folder2 After rsync ...
2
votes
2answers
98 views

Folder alias / Symbolic link to return to back folder

I need to create a folder "2015" which re-routes to ./ but I don't know what the command is. Not sure if the term is called in this case an alias (or symbolic link). So I need to make the same ...
2
votes
1answer
44 views

When is a symlink treated as the thing it links to, and as a symlink?

When is a symlink treated as the thing it links to, and as a symlink? A symlink can links to a file of different types. For example, let mylk be a symlink which links to a dir. The following two ...
2
votes
1answer
54 views

What happen if accidentally move a soft link followed by “/”?

I created a soft link to the current directory, $ ln -s "$PWD" math I then wanted to move it to another directory. $ mv math/ ~/dirlinks/maths/ I then realized I should $ mv math ...
2
votes
0answers
30 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
4answers
207 views

Creating symbolic link recursively

I essentially want to run this command... ln -s /opt/gitlab/embedded/service/gitlab-shell/hooks/ /var/opt/gitlab/git-data/repositories/web/*/hooks This would create a symbolic link in all folders ...
1
vote
1answer
55 views

How to find out which package installed a symlink

In this question I describe my problems finding out the package that installed the final target of the /usr/bin/rename command. dpkg -S /usr/bin/rename did not give a result, but after first finding ...
1
vote
1answer
29 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 ...
1
vote
1answer
48 views

How do I display information about all encountered symlinks in a given path?

How do I obtain a description of all encountered symlinks for the given path? Expecting output like this: $ linksinfo ~/.nix-profile/lib/libQt5OpenGL.so /home is a directory /home/nix is a directory ...
6
votes
1answer
133 views

cd and ls behave differently when inside a softlink to a dir

When we cd into a dir via its softlink, i observe: ls .. will show the content of the parent dir of the linked dir, while cd .. will go under the parent dir of the softlink. Why are they different? ...
-1
votes
1answer
31 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 ...
1
vote
1answer
45 views

du skip symbolic links

I cannot find an example of what I want to do and, from what I'm reading, the default behavior of du on my system is not the proper default behavior. If I ls my /data folder, I see (removing the ...
0
votes
1answer
572 views

Make Nginx follow symlinks

Nginx does not follow symbolic links. I get a 404 error. In my directory, I have this link: lrwxrwxrwx 1 root root 48 Sep 23 08:52 modules -> /path/to/dir/ but the files stored in ...
3
votes
1answer
53 views

read only symlink or something similar? [duplicate]

I created myself a NAT for home use (Ubuntu+Samba+Greyhole+Apache+MySQL+other web server related stuff). 90% of files I store there are pictures that i really don't wanna loose (that's why Greyhole). ...
1
vote
1answer
92 views

Finding duplicate files and replace them with symlinks

I'm trying to find a way to check inside a given directory for duplicate files (even with different names) and replace them with symlinks pointing to the first occurrence. I've tried with fdupes but ...
5
votes
1answer
162 views

Symbolic Link with Existing Directory

If I already has a directory (A) with existing contents and another directory (B), how do I symbolic link such that the two directory's content merge. eg. A -> folderA1/ ...
1
vote
1answer
49 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 ...
1
vote
1answer
66 views

Why ln -s creates relative broken links? [duplicate]

I have an issue with ln -s on Ubuntu 14.04, while using it in the following scenario: $ cd ~/programming/tmux/ $ ln -s tmux ~/bin/tmux $ ls -l ~/bin/tmux lrwxrwxrwx 1 USER USER 4 sie 31 11:02 ...
1
vote
1answer
93 views

some shared libs in /usr/local/lib aren't found but they are in /usr/lib

I can successfully run an executable using a symlink'd shared library in /usr/lib like so - sudo ln -s /lib/i386-linux-gnu/libcrypto.so.0.9.8 /usr/lib/libcrypto.so.4 In the interest of making this ...
0
votes
1answer
36 views

how to change where a symlink points [duplicate]

Can you tell me what is this in red marker area. ? and if want to change /media/files/tb-prod/files to some other path, then how it will be .. ?
13
votes
2answers
1k views

What is the difference between 'rm' and 'unlink'?

Assuming you know the target is a symbolic link and not a file, is there any difference between using rm and unlink to remove the link?
1
vote
2answers
35 views

why are there links to links in system directories?

For example, the executable emacs: lrwxrwxrwx 1 root root 23 Jun 9 2012 /usr/bin/emacs -> /etc/alternatives/emacs llrwxrwxrwx 1 root root 18 Jun 9 2012 /etc/alternatives/emacs -> ...
38
votes
6answers
1k views

Is there a downside to deleting all of the broken symbolic links in a system?

I was running a script that iterated over all the files on my Linux system and created some metadata about them, and it threw an error when it hit a broken symbolic link. I am newish to *nix, but I ...
3
votes
1answer
46 views

Read target of symlink and increment target by one

I have a folder structure that looks like this /some/folder/1 /some/folder/2 ... and a symlink current that links to one of the folders. Is it possible and when how to read the target of the link, ...
4
votes
2answers
60 views

Find all symlinks to a directory and change target to another directory

I have a bunch of symlinks in /home to files and sub-directories in /foo. I want to target the new directory, /bar. My approach was to look at all invalid symlinks and verify that they were pointing ...
1
vote
0answers
46 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 ...
0
votes
0answers
59 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 ...
8
votes
2answers
930 views

Java location from /usr/bin/java

I'm trying to find my java location within my Linux system and got this [980@b449 ~]$ which java /usr/bin/java [980@b449 ~]$ readlink -f $(which java) ...
2
votes
3answers
72 views

Creating symbolic links

When creating a softlink how do add the path, I did the following: ln -s file1.txt /home/user9000/Desktop/SymbolicLink.txt When I see the softlink on the desktop it marks that the doc doesn't ...
0
votes
1answer
46 views

Point folder on main HDD to newly mounted 2nd HDD

What is the best way to point a folder in one of my websites directory to a folder in a second HDD I just had installed? I see things about fstab and symlink but am lost at what is the best way to do ...
0
votes
1answer
34 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 ...
3
votes
0answers
50 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 ...
0
votes
1answer
36 views

Symbolic linking to ~/ instead of ~/[path/file]

I moved all of my dot files out of ~/ in to ~/data/dotfiles I then did ln -s ~/data/dotfiles/[filename] ~/ My intention was ln -s ~/data/dotfiles/[filename] ~/[filename] This included my .vimrc , ...
2
votes
2answers
61 views

Create an absolute symbolic link to the current directory

I am now under a directory with very long path. For future visiting it quicker, I would like to create a link to it. I tried ln -s . ~/mylink ~/mylink actually links to ~. So can I expand ~ into ...
2
votes
1answer
64 views

understand the designation of symbolic links

I have a number of files in /etc/rc3.d/ directory which all are symbolic links and point to files in /etc/init.d/ directory using ../init.d/ designation. For example file S18rsyslog in /etc/rc3.d/ ...
2
votes
2answers
151 views

Fast and slow symlinks

From http://en.wikipedia.org/wiki/Symbolic_link#Storage_of_symbolic_links Early implementations of symbolic links stored the symbolic link information as data in regular files. The file ...