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)

0
votes
2answers
91 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 ...
1
vote
2answers
168 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
162 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
241 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. ...
2
votes
1answer
67 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. ...
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, ...
0
votes
1answer
134 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
23 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? ...
0
votes
1answer
89 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 ...
0
votes
0answers
61 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
135 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 ...
1
vote
0answers
27 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 ...
2
votes
1answer
296 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 ...
2
votes
1answer
95 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 -> ...
0
votes
2answers
47 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 ...
5
votes
2answers
205 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 ...
1
vote
1answer
119 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 ...
0
votes
2answers
54 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
34 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
189 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: ...
0
votes
0answers
36 views

XPDC1 make error

I am coming across an error when making this software. I have already installed xgrafix, xoopic, xpdp1, and xpdp2. I believe it is solvable by linking but I am unsure on how to do that. These are all ...
0
votes
0answers
44 views

Can't get symlinks working

I'm trying to get symlinks for a Typo3 installation to work. My way to do it: cd /var/www/application/htdocs ln -s /var/www/application/typo3_src-7.4.0 typo3_src Check with ls -l lrwxrwxrwx 1 ...
0
votes
2answers
160 views

set shortcut for executable program from terminal

I installed a program and I want to create a shortcut. e.g. I want to type eclipse into the terminal to launch the program. I already copied the eclipse folder in /home/user/Programs and created ...
0
votes
1answer
37 views

Linked Files in LD_LIBRARY_PATH statement not working

Is there some magic to ensure that Link files work when part of a PATH statement? I have an app that is looking for /opt/Qt/5/gcc_64/lib/libXmlPatterns.so.5 The above file is a link to a file in ...
2
votes
3answers
420 views

Error 'File is a symlink to a non-existent target'

While working through two active buffers in Emacs, sum.cpp and template.cpp, I accidentally shut down my laptop (Ubuntu 15.04 (Vivid Vervet)) without closing Emacs, and without saving these two ...
0
votes
0answers
15 views

Recover Directory Links

I've just erroneously launched this command: rm -R symbolic_link_to_dir and now if I go to DIR I can't see the content folders anymore. Fortunately if I enter with my FTP I can see all of the ...
1
vote
1answer
1k views

symlink to already existing directory

Is there a proper way to link /home/user/app/public to /home/user/public_html, considering the fact that the target already exists? If I do ln -s /home/user/app/public /home/user/public_html, I end ...
2
votes
5answers
488 views

Why not design having the softlink (symlink) and hardlink in the same “link”?

I haven't used hardlinks for a long time and never really needed them until I was asked in an interview. I read their difference from symlinks here: What is the difference between a hard link and a ...
2
votes
0answers
123 views

Back up symbolic links (not the files they link to) with Dropbox

Dropbox follows symbolic links. Apparently this is useful. But I have a folder with very large data files I do not wish to back up online. I have physical backups for it. However, I have various ...
1
vote
1answer
85 views

Linux Headers and Updates

If I create a symbolic link from linux-headers in /usr/src and then an update comes along where my uname -r output changes, does that symbolic link get updated as well? Or do I have to switch the ...
0
votes
1answer
153 views

Broken links after kernel upgrade

After running: sudo apt-get update && sudo apt-get dist-upgrade And upgrading my kernel as well as some other stuff and then running this twice with a reboot after each running: sudo ...
2
votes
0answers
37 views

Symlinks dont work after restarts— then restarting nautilus fixes it

I'm having some problems with soft links that direct to folders in a partition I'm using to share files between Ubuntu and OSX. When I first set everything up it all worked perfectly, but after a ...
2
votes
0answers
33 views

Symlink problems with OSX dual-boot

I'm having some problems with soft links that direct to files in a shared partition I'm using to share files between Ubuntu and OSX. When I first set everything up it all worked perfectly, but after a ...
7
votes
3answers
1k views

What does the “size” of a symlink represent in ls output?

I'll start by example: $ ls -l dir1 total 4 -rw-r--r-- 4 maythux maythux 1650 2008-01-10 16:33 file lrwxrwxrwx 1 maythux maythux 7 2008-01-15 15:17 symfile -> file symfile is a symlink of the ...
13
votes
2answers
866 views

What is the Ubuntu equivalent of OSX `chmod -h` flag?

In OSX I can set the permissions of the symlink itself (instead of the thing it points to using the -h). From the man page: -h If the file is a symbolic link, change the mode of the link itself ...
0
votes
1answer
23 views

Which root paths (e.g., /lib) can never be symlinks?

VBox suggests an extremely inadequate default size for its root partition, so I had to create and mount a more realistic /dev/sdb1 to do anything useful. Despite that, / (/dev/sda1) is 96% full, and ...
0
votes
1answer
534 views

How to execute a program from symlink [duplicate]

I have the following go program that runs with: ./hack/go/bin/wego How can I create a symlink to run this program with the command weather?
1
vote
2answers
393 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
369 views

How to use a symlink in Apache Web Server

I Installed Apache2. In the the folder "var/www/html" I created a symlink to a different HDD that holds a number of movie files. My thinking is that it would be easy to access the movies through a ...
2
votes
1answer
697 views

how to create a symbolic link that works relative to the working directory

consider the following : x/ ph/ file1.txt -> ./../file1.txt file1.txt y/ ph/ -> /x/ph/ (this is full absolute path of x/ph) file1.txt /y/ph is a symlink for ph folder ...
5
votes
3answers
7k views

How do I share a directory between an LXC container and the host?

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
77 views

Is it really possible to properly create a bootable USB of Ubuntu from Windows?

I was trying to create a bootable USB of Ubuntu from Ubuntu when some symbolic links errors appeared, which I explained in this question. There was no valid answer what these errors are, nor are they ...
3
votes
1answer
2k views

Creating a symlink from one folder to another with different names?

I have to folders, one of which is my webserver root. I want to link it to my project folder so that I can keep things up-to-date with Git. If I try to do this: ln -s /home/user/project ...
3
votes
1answer
511 views

How can I set a symlink from /tmp/mysql.sock?

I've tried to set a symlink from /tmp/mysql.sock -> /var/run/mysqld/mysqld.sock however whenever I try to do it using the following command: sudo ln -s /var/run/mysqld/mysqld.sock /tmp/mysql.sock ...
0
votes
1answer
146 views

“Trick” AeroFS to synchronize outside AeroFS folder without symbolic links

I am trying to have a backup copy of my laptop files using AeroFS. AeroFS creates a folder in your home directory (similar to Dropbox) and syncs anything inside of it. I would like to sync folders ...
4
votes
1answer
182 views

Does Windows recognize symlinks created under Ubuntu?

Before, I dual installed Ubuntu 12.04 and Windows 7. They shared a Windows ntfs partition by mounting the partition under Ubuntu. I don't remember if the symlinks created under Ubuntu could be ...
1
vote
1answer
123 views

How can I link two directories so that edits in one directory are reflected in the other directory?

I have a website,Foo, running on Apache. Foo's files are in the /var/www directory /var/www/foo Recently, I switched to developing with WebStorm. My webstorm directory is WebStorm_Projects/. I ...
0
votes
1answer
452 views

is sh a symbolic link to bash? [duplicate]

I am new to Ubuntu. I want to know if sh is a symbolic link to bash. Similarly, if "/usr/bin/awk" is a symbolic link to gawk and if "/usr/bin/yacc" is a symbolic link to bison or a small script that ...
1
vote
1answer
37 views

Building a Python Module Problem

I am having the following issue and am not sure how to fix. I do not know what linking is but I hear it's related to the problem. I'm trying to set up a python module: First I call in the directory ...