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)

2
votes
5answers
337 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 ...
0
votes
1answer
15 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 ...
107
votes
4answers
263k views

How to create a soft or symbolic link?

I am installing p4v in /opt, but /usr/bin is on my path. Is it possible to create a soft or symbolic link for p4v from /opt to /usr/bin, so I can just type "p4v" since /usr/bin is in my path?
1
vote
0answers
23 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 ...
3
votes
2answers
5k views

How to configure apache2 with symbolic links in /var/www/?

I want to setup a local web server on my Ubuntu (14.04). So I installed all software to get a LAMP server. The problem is that I do something wrong with creating my virtualhosts. I wanted to create ...
1
vote
1answer
21 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 ...
2
votes
0answers
26 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 ...
0
votes
1answer
27 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
13 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 ...
1
vote
0answers
27 views

Lubuntu DropBox and symbolic link abook.mab

I have my thunderbird address book stored in a drop box for cloud storage. abook.mab file in the dropBox is symbolically linked to thunderbird using; TERMINAL Prompt ~$ ln -s ...
7
votes
3answers
472 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 ...
124
votes
8answers
169k views

What is the difference between a hard link and a symbolic link?

As the title says, I would like to know the difference between a hard link and a soft link created by the command ln. The command man ln does provide information, but does not sufficiently answer my ...
13
votes
2answers
733 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
11 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
37 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?
2
votes
1answer
48 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 ...
0
votes
0answers
20 views

creating symbolic link and get its place

creating link from GAMIT directory to gg; ln -s -f /home/sorbilene/GAMIT ~/gg then gg directory (involves all files of GAMIT directory) was created in /home/sorbilene. I tried to get the same place ...
1
vote
2answers
53 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 ...
0
votes
0answers
27 views

(Xubuntu) Symlinked wine doesn't open .exe?

I'm new to the site, and I've just created the account. Wine and I are having an issue right now. I'm booting Xubuntu from a Live USB and, therefore, have placed the .wine folder in another drive, ...
19
votes
4answers
3k views

What in /home would benefit from being on an SSD?

In Is a 40GB SSD practical to use for ' / ' Jorge describes how he symlinks directories in his /home that would benefit from being on an SSD. The directories he names are ~/.cache ~/.config ...
2
votes
2answers
2k views

force cp to copy on dangling symlinks

Is there any way to force cp (Bash 4.2.5, Ubuntu 12.04) to copy onto a dangling symlink? cp a-file path/to/danling/symlink/a-file cp: not writing through dangling symlink ...
2
votes
1answer
86 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 ...
10
votes
3answers
55k 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
37 views

How can I check for symlinks and hardlinks before a mv?

I need to attempt a large folder replacement on a legacy system. I would like to mv the orginal folder to a new location, replace it with another, but revert back on the original if the replacement ...
1
vote
2answers
393 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 ...
12
votes
5answers
71k views

how to remove symbolic link

i was doing sudo ln -s /usr/share/phpmyadmin /var/www/phpmyadmin but i accidentally typed something else. So now I want to correct it but it says symbolic link already exist. Please help, Thanks in ...
4
votes
2answers
39k views

How to break or delete the symbolic link?

sudo ln -fs /usr/share/icons/Cyclone/cursor.theme etc/alternatives/x-cursor-theme I want to delete this link, as it seems to make some problems. Is this done by deleting cursor.theme file or what ...
0
votes
1answer
48 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 ...
0
votes
0answers
19 views

Creating Mediawiki issue

Im right right now in the middle of creating Mediawiki on Ubuntu 12.04.4 LTS for client and i'm having some troubles doing that. I managed to establish accessible Mediawiki instance in apache but i ...
0
votes
2answers
30 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 ...
0
votes
0answers
10 views

Symbolic link to Windows partition breaks at restart [duplicate]

I have a dual boot between Windows 8.1 and Ubuntu 14.04LTS. I can access my Windows partition from Nautilus as if it were a device, so I can make a sym links in my Ubuntu environment that point to ...
0
votes
0answers
28 views

Symbolic link that leads to one directory when writing, but another when reading

For my specific case, I am running a minecraft server on a SSD. I want to store one set of game files on the SSD so I can have a fast load time, but auto-backup to my HDD so I don't wear out the SSD ...
2
votes
1answer
67 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
61 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
5answers
12k views

Cannot transfer file due to “Filesystem does not support symbolic links” error

When I want to transfer files from my local hard drive to my thumbdrive, I keep getting this error: Filesystem does not support symbolic links. I don't know what this is, I need help with ...
4
votes
1answer
65 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
23 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
0answers
23 views

Is there a way to mount a windows share as a Symbolic link using Ubuntu 14.04

Is there a way to mount a windows share as symbolic link so that a mounted drive does not appear on the sidebar under network using Ubuntu 14.04.
0
votes
1answer
87 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 ...
0
votes
0answers
41 views

Installing Python Module with Boost

I am trying to install a computer vision program via python setup.py install but it returns /usr/bin/ld: cannot find -lboost_python-mt-py26 Now I run the following command dpkg -l ...
1
vote
1answer
19 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 ...
0
votes
0answers
14 views

Best way to execute script from another linux user on the same system

I've set a script to be running on subdomain.domain.com mostly for security by isolation reasons. I need to include some output of it at domain.com. The thing is it uses ajax and hence cross-domain ...
0
votes
1answer
23 views

SymLink for “/home/martin” in another disk of same machine

I'm looking for a solution for the problem like below. What ever file or DIR that i put in /home/martin DIR, should land in /home-extended/martin DIR. Reason behind this, is /home DIR has only 2 GB ...
0
votes
0answers
72 views

Running Quake with Darkplaces from symlink, id1 folder not recognized

I'm new to Linux (have only been using it for a few days) and am using Ubuntu 14.04. I've been a Windows user my whole life, so there are a lot of things I'm getting used to. One example: symlinks. ...
3
votes
1answer
4k views

Symbolic link permission denied, shared folder over cifs

I have synology rack , and im using one folder from my ubuntu 12.04. but I wont be able to create a symbolic link on mounted folder, getting permission denied error, below is my fstab entry ...
0
votes
0answers
43 views

how to run “acpype” program?

If I want to open this program, I am giving "acpype" in the terminal and getting the following error: sslab1@sslab1-ThinkCentre-Edge72:~$ acpype bash: /usr/local/bin/acpype: Permission denied What ...
1
vote
1answer
62 views

Link to NTFS partition broken after reboot [duplicate]

I've created a link to a folder located on a NTFS partition, in the same HDD where Ubuntu is installed. After rebooting, the link says it's broken (the link shows a lock icon to the lower right and ...
0
votes
3answers
95 views

Shortcut to execute shell scipt? [duplicate]

I'm trying to create a shortcut that will run a .sh file deep in some directory without having to navigating to the absolute path. I have tried using aliases, which did not work as. Using soft/hard ...
0
votes
1answer
93 views

How to install ACPYPE and fix the error in Ubuntu 14.04?

I wanted to install acpype in ubuntu 14.04 and I followed the comments given in ubuntu program installation guide: I have followed the following commands. acpype go to the directory in which you ...
1
vote
0answers
129 views

Symlinks: Can't create one because file exists, cant remove it because there is no such file

I posted this already on stackoverflow and it was suggested I ask here... I am running ubuntu 14.04 in vagrant on a windows 7 pc. I am running VirtualBox and git bash as administrator. I've created ...