Symbolic link or symlink is a special type of file that contains a reference to another file or directory as an absolute or relative path. For most operations, symbolic links are transparent and the read or write operations on symbolic link files are redirected to actual files i.e the files that ...

learn more… | top users | synonyms (1)

13
votes
3answers
34k views

What is a “failed to create a symbolic link: file exists” error?

I'm trying to create a symlink in my home directory to a directories and files on my data partition. I've tried: ~/Documents$ ln -sv ~/Documents/saga ...
31
votes
6answers
129k views

How to remove symbolic link

I was trying to create this symbolic link: sudo ln -s /usr/share/phpmyadmin /var/www/phpmyadmin but I accidentally typed: sudo ln -s /usr/share/php,yad,in /var/www/phpmyadmin So now I want to ...
0
votes
2answers
27 views

Help with symlink

I accidentally changed permission to 000 on symlink: /lib64/ld-linux-x86-64.so.2 In effect ubuntu 15.10 can't execute any bash command (binary). In this situation chroot from live cd is not ...
0
votes
0answers
27 views

Symlink not working

I am trying to link java plugin to Opera. I have tried all sorts of methods. These are Opera's instructions for after JRE's installation: So that Java will be discovered, type the following ...
1
vote
0answers
22 views

rsync doesn't resolve target symlink to directory

I'm using ssh to connect to a remote machine. In my home directory there, I created a symlink to a mounted directory, as you can see below: username@hostname:~$ ls -l lrwxrwxrwx 1 username users 69 ...
6
votes
3answers
315 views

Nautilus: Visited directory via symlink, now I can't go one level up in the target directory hierarchy

I created a shortcut via "make link" option. When I enter to this shortcut's folder I can't see any folders above it so I can't easily navigate to them. Is there a way to go one folder up in the GUI? ...
0
votes
2answers
48 views

update-alternatives arguments - <link> and <path> can't be the same

I want to add vimb to the default browsers in x-www-browser. I don't see it in update-alternatives --config x-www-browser, so I think I have to --install it. After some time spent in reading man ...
0
votes
0answers
26 views

Symbolic link, samba share, Ubuntu 14.04

I am a Unix dabbler at best, I would appreciate some expert help. I have upgraded one of my machines from 12.04 to 14.04 and lost a path to a windows samba share. On a 12.04 machine I have a samba ...
1
vote
3answers
43 views

How do I find all custom-created symbolic links in the entire system?

I've created several symbolic links in different places. I can't really recall where each one of them is in the system and I've already removed programs they are associated with. Is there a script / ...
1
vote
1answer
30 views

Meaning of “b” and “c” in file privileges description (output of ls -l)

Basic question regarding the ls utility. What do letters "b" and "c" mean at the beginning of the 10-symbol code describing the item privileges ? From what I understand, when typing ls -l, the ...
7
votes
1answer
4k views

How to create a read-only link to a directory?

One of my scripts dynamically creates a symlink like so: ln -s /home/hosting/projects/images /home/hosting/projects/demo/images How can I make it so that the access through link is read-only?
0
votes
0answers
128 views

How to solve linking problem to build a project?

I'm trying to run "make all" to build a project, and keep getting error CXX/LD -o .build_release/tools/compute_image_mean.bin /usr/lib/x86_64-linux-gnu/libunwind.so.8: undefined reference to ...
1
vote
0answers
32 views

How can i remove home directory from download directory without deleting it

In my Downloads folder when I make ls I see the home directory, and I don't know why, I want to remove it but I am afraid to remove my home folder. Can anyone tell me how I can just remove the home ...
0
votes
1answer
48 views

What is the right way to remove that symbolic link in Ubuntu 15.10? [duplicate]

I've created this link: sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-enabled/phpmyadmin.conf I've tried to remove it in these ways: sudo unlink /etc/phpmyadmin/apache.conf ...
1
vote
1answer
26 views

Interpret Windows symlinks as Linux symlinks

I have a bunch of files on a (Windows) network mounted location. Many of these files are Windows's symbolic links. Is there anything I can do to tell Ubuntu to interpet these Windows symlinks ...
0
votes
0answers
34 views

How to create a symlink without expanding variable?

I'm trying to create a symlink that links /root/.gtkrc-2.0.mine to /home/$USER/.gtkrc-2.0.mine. Whenever I try to run the following, the variable expands, so if I copied it to another computer, it ...
1
vote
0answers
19 views

Show full-path for links [duplicate]

The real path for the folder TEMP DESK is: /home/username/Desktop/Dropbox/mystuff/TEMP DESK But when I click on the link that I created for it, it shows: /home/username/Desktop/Link to ...
2
votes
0answers
29 views

Problems with Java and Symlinks

i'm having troubles with the java jar files symlink. First of all i've to use java -jar command if i don't do it the java file doesn't run properly. Well the problem starts when i symlink the jar ...
1
vote
2answers
21 views

Can I change the text that's added to the file name when I make a link to it?

If I make a link to, say, "make believe.mp3", the link is named "Link to make believe.mp3", but I'd rather name it "make believe.mp3 - link", so that being a link doesn't interfere with its alphabetic ...
0
votes
2answers
41 views

Is there a way to get the trailing '/' to appear when using cd with a symbolic link directory?

I'm using the bash shell and use lots of soft links. One minor but annoying behavior I observe is the fact that I need to hit tab twice to complete the name of a soft link to a directory. e.g. $ ...
6
votes
0answers
2k views

Can I set the gold linker as the default one? [closed]

Before Ubuntu 13.10 (saucy), the /usr/bin/ld symlink was pointing to ld.gold when the binutils-gold package was installed. Gold now comes with the binutils package itself, and it installs the ...
-2
votes
3answers
113 views

Failed to create symbolic link, what should I do? [duplicate]

When I enter the following command on a terminal session. $ sudo ln -s /opt/utorrent-server-v3_0/utserver /usr/bin/utserver It shows me the following message ln: failed to create symbolic link ...
3
votes
2answers
2k views

symlink for dbus headers

Source code for something that won't compile has the line #include <dbus/dbus.h> but in real life that header file is in /usr/include/dbus-1.0/ Similar situation exists for the dbus-c++ ...
0
votes
2answers
60 views

change mount points to another directory

I want to change the directory's of four mount points to /home folder in hopes of moving programs to another directory. I am in need to move /tmp /usr /opt and /var to the /homedirectory like ...
0
votes
0answers
14 views

Moving - Installed app's data to another partition

I have installed ka-lite application in my /home directory. This application is for offline hosting of khan-academy tutorial videos. The program stores offline videos in the location ...
1
vote
1answer
3k views

How to Link Google Drive, Dropbox, or other Folders Into Encrypted Home Folders?

Question How can I mount these folders only after I've logged into the user with the encrypted home folder? System What I am trying to do is bind: /home/username/Dropbox/Documents to ...
1
vote
2answers
94 views

Symbolic links and the sense of /etc/alternatives

When typing java into my console, a symbolic link in /usr/bin/java is followed. which java /usr/bin/java This symbolic link points to /etc/alternatives/java. file /usr/bin/java /usr/bin/java: ...
0
votes
0answers
17 views

Is it possible to create a symbolic link that relies on an environmental variable instead of a absolute path?

The Environmental variable will contain the absolute path. That way if an entire sub-directory is moved then one only needs to edit the environmental variable. For example if we have some directory ...
1
vote
0answers
112 views

virt-install - internal error: process exited while connecting to monitor, symlink to /var

TLDR: when contents of /var is stored in a normal directory, virt-install works. When /var is a symlink pointing somewhere else, virt-install breaks. New installation of Ubuntu 14.04. 2 logical ...
-1
votes
1answer
117 views

Problem with Maven execution after installation

when i run mvn -v i get the below error: bash: /usr/local/apache-maven/apache-maven-3.3.1/bin/mvn: No such file or directory At /usr/local/ there was a apache-maven directory and i deleted it. ...
1
vote
2answers
286 views

creating symbolic link and setting environment variables

I've compiled Gamit/Globk software from the source codes. The installation directory's path "/home/sorbilene/GAMIT". I need to create links and set environment variables to run the software without ...
2
votes
1answer
53 views

Custom keyboard shortcut to bash script doesn't work

I am an emacs user and have written a few emacs configuration files. I wanted to run the client-server feature of emacs using a single bash script that would take care of the emacs server and client. ...
16
votes
3answers
75k views

Help with creating symbolic link

I'm a little bit confused with how the symbolic links work. I hope someone can guide me in the right direction. I want to put a demo online from our software, which normally only runs locally on a ...
0
votes
0answers
15 views

Making links similar to Windows [duplicate]

I am using Ubuntu 14.04, and wanted to know if there is a way to make links that behave like Windows' shortcuts. Searching the web and forums I came across a post that helps with Terminal navigation, ...
23
votes
7answers
74k views

How to list all symbolic links in a directory

I have a symbolic link in my /var/www/ directory that links to WordPress. When I run the command ls -la from the /var/www/ directory the link to WordPress doesn't show up. Is there a way to list all ...
0
votes
1answer
100 views

qt broken link and environment variable

I've installed qt5.5 from PPA. But I'm getting following output. ansh@ansh-HP:~$ qmake -query qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such file or directory ...
0
votes
1answer
18 views

Is it possible to symlink file to system folders? [duplicate]

Let's say there is a script in my home folder I would like to use in /etc/cron.* folder or in other system folders. Is there any way how to do it without copying the file to the target location? ...
2
votes
2answers
4k views

Share a folder between host and ubuntu lxc container

How can I share a folder between the host system (ubuntu 14.04) and an ubuntu lxc container? I tried mounting the folder on the host: sudo mount --bind /media/data/share ...
0
votes
1answer
50 views

modifying matlab symbolic link

I've successfully created a symbolic link to MATLAB as suggested in the questions below: How can I launch MATLAB 2012? So I can run MATLAB from any directory. However, I've noticed that some people ...
5
votes
2answers
163 views

How to find files whose inode is not referenced by any directory

Okay, some time ago I found what seems to be a bug in nautilus. /tmp$ mkdir test/ /tmp$ mkdir test2/ /tmp$ echo "very important stuff" > test/important-file.txt /tmp$ ln -s /tmp/test/ test2/test ...
0
votes
0answers
51 views

Why wont my symlink run node?

I've recently downloaded node and unpacked it to /usr/local/node. The executable can be found at /usr/local/node/node-v4.1.0-linux-x64/bin/node. I have create a symlink to the file at /usr/bin/node, ...
0
votes
1answer
68 views

Symbolic link to NAS

I love the "sticky notes"- program xpad. Would it be possible to use the command ln -s to link it's config folder to a shared folder on a NAS drive, to have the xpad-sessions synced on all my local ...
2
votes
1answer
64 views

Simple way to delete a file and all its links (simultaneously)

I found a lot of questions on how to delete symlinks only, or delete symlinks based on their contents, but no one has asked how to do what I want to do. Take the following example file-l -> ...
1
vote
0answers
24 views

Is it possible to make all files in a dir be always created as symlinks to /dev/null or ignore all writes to them in other way?

I always redirect unneeded logs that are always stored under one name to /dev/null by symlinking. But some applications create directories with files named, for example, by date. I do not want to ...
0
votes
2answers
42 views

Ubuntu Aquaris E4.5 symlink

I have an Ubuntu Aquaris E4.5 phone and looking for and easy way of transferring multiple photo's from the SD card to my linux PC. I have installed WifiTransfer which uses a file ...
1
vote
1answer
89 views

When would you want to use a Hard link instead of a soft link? An example to help Understand the difference

I have read lots of posts on What is the difference between soft and hard link but still am a bit vague on the difference. I wonder could somebody give just one or two example(s) of when you would ...
2
votes
1answer
290 views

why is there more than one python 2 command in ubuntu 12.04?

so while playing with some aliases I realized that there are three python commands (without taking into account the python 3 commands) in the terminal: python python2 python2.7 So my question is ...
0
votes
2answers
30 views

Can you Link *Hard or Soft* to a directory and change the names of the files linked

So here's the scenario. I have a file torrent that gets updated and its so big its on a different disk, what I would like to do is create a link to where it would normally go if it wasn't so big and ...
1
vote
0answers
27 views

Move files preserving symbolic links

I have some files on an external hard drive, to which I keep soft symlinks in my home folder (many links, not just one). I need to move some of the original files to another hard drive, and I want to ...
-1
votes
1answer
102 views

opt command not working [LLVM]

My linking looks broken. It's showing below error. $ opt The program 'opt' is currently not installed. You can install it by typing: apt-get install llvm and apt-get install llvm-3.6 shows that: ...