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)

59
votes
3answers
161k 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?
51
votes
6answers
73k 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 ...
20
votes
2answers
610 views

Is there a difference between a symbolic link via terminal or right-click make link?

I'm wondering if there is a difference between going to a terminal and typing ln -s path 'path or just right clicking on something and selecting make link.
19
votes
3answers
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 ...
15
votes
2answers
1k views

How can I stop Nautilus from dereferencing symlinks? [closed]

I use symbolic links to tidy my home folder. This works well in the terminal, since the links create the illusion of normal folders: In Nautilus, however, the links behave more like Windows ...
12
votes
4answers
525 views

Restore 'cd ..' functionality after following a symbolic link

If I create a symbolic link in the terminal with a command like ln -s /path/to/some/directory symbolicLink and then follow the link with cd symbolicLink the terminal appears to think that the cwd ...
12
votes
3answers
6k views

How to find and list all the symbolic links created for a particular file?

I had created many symbolic links on various paths for a particular file or a directory. I want the whole list of created symbolic links paths (location). Example: I created symbolic links for ...
12
votes
2answers
2k views

Does Ubuntu One follow symlinks if synchronizing a folder?

I've looked for this question and haven't gotten a reasonable answer yet. If I synchronize a folder will it synchronize a symlink? Will it process all the way through the link to all the files within ...
12
votes
0answers
3k views

Symbolic links vs Hard links [duplicate]

I just read the manpage for symlinks, but I still dont get it ... so hardlinks are pointers to the file/dir. Then symlink is a pointer to a pointer? Whats the use of a symlink then? Why/when should I ...
10
votes
2answers
1k views

Symbolic links: why are they so bad?

Why is using symbolic links to change the default python version on Ubuntu considered as being unsafe ? I read this information on several forums but did not find an answer as to why is this so.
10
votes
3answers
859 views

Wine won't follow Symbolic links

I can't get Wine to follow some symbolic links I have in my home folder or in applications. Is there a way to enable this? This is on Wine-1.5.18. Edit: Just in case it helps, I'm trying to use a ...
8
votes
3answers
3k views

How do symbolic links work in Dropbox?

I made some links to files in a folder. When I added that folder to Dropbox, the links contained duplicate copies of the files linked to. Have you had this problem? Do you understand what is ...
7
votes
3answers
6k views

Can symlinks be used in /etc/cron.d/?

I'm trying to implement a configuration mechanism that allows in a certain project to deploy through svn a cron configuration. I immediately thougt that what I should do is cerate symlinks from ...
7
votes
2answers
33k 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 ...
7
votes
1answer
4k views

Can't change destination of symbolic link

I want to change the destination of an existing symbolic link, without removing the link or the old destination. I have previously created a symbolic link to a directory such as follows : $ cd ...
7
votes
1answer
3k views

How do I symlink certain directories in /home to an SSD?

In Is a 40GB SSD practical to use for ' / ' Jorge describes how he symlinks things in his /home that would benefit from being on an SSD. How is this done? I've figured that I need to do the ...
6
votes
2answers
1k views

How can I create an alias so that when I enter “kt” it executes “killall gnome-terminal”?

How can I create an alias so that when I enter "kt" it executes "killall gnome-terminal"?
6
votes
1answer
929 views

sshfs transform_symlinks is broken

I've been using the same fstab command for a while now: sshfs#user@host.be:/home/user /home/user/vps fuse user,port=22,uid=1000,gid=1000,allow_other,reconnect,transform_symlinks 0 0 And it used to ...
6
votes
0answers
481 views

Can I set the gold linker as the default one in saucy?

Previously, 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 /usr/bin/ld symlink ...
5
votes
3answers
14k views

How to check whether ln -s created a symbolic link or a hard link?

I'm trying to create a symbolic link with ln -s old.file new.file but ln seems to stubbornly create hardlinks instead. For instance, when I move the link to another folder, it becomes broken. What's ...
5
votes
1answer
162 views

How do I automatically create links to directories?

What is the easiest/quickest way to share files among different users? I would like each user to have access to the same music and pictures directories. Creating symbolic links seems tedious as I ...
5
votes
4answers
732 views

How to find the original file of a soft link?

For example, I have a file a, and I do the followings. ln -s a b ln -s b c ln -s c d If I use readlink d, I will get c. So I have to run many times to get a. Is there an easy way to get a? ...
5
votes
1answer
2k 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?
5
votes
1answer
6k views

How do I deal with too many levels of symbolic links?

I'm using Ubuntu Live USB to access my windows files, I'd like to perform a complete, file by file, backup of the Windows C: Drive. Since I want everything backed up, I'm doing a copy and paste. Copy ...
5
votes
1answer
593 views

How to move files leaving symlinks behind?

How can I move/copy files from one directory to another, leaving the symlinks in the original directory. I know the ln -screates symlinks in the destination, but I want to leave the symlinks in the ...
4
votes
2answers
719 views

how to find real file from link

ls -l java lrwxrwxrwx 1 root root 22 2019-02-17 11:37 java -> /etc/anotherLink/java when I do ls -l it shows path to file, but that file can also be a link. is there any way to show path to real ...
4
votes
2answers
375 views

If I create a link to a folder, how can I get from that linked folder to the “real” folder from within Nautilus?

Say I have a folder several layers down in my documents folder. And I want easy access to it from my desktop. To do that I: Go to the parent folder in Nautilus. Right click on the folder's Icon and ...
4
votes
4answers
7k 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
6k views

How do I add links to launcher [duplicate]

I am new to Ubuntu; I've been using it for a couple hours now, and I encountered one little problem that I was hoping to solve. I got a program on my computer without actually using the software ...
4
votes
2answers
803 views

How to expand encrypted /home to second internal drive?

I have a huge number of photos, and I want to move just my /Pictures folder to a second SATA drive in my computer for performance reasons. I want everything to work as it is now, except that /Pictures ...
4
votes
2answers
2k views

Can't use symlinks in local /var/www directory

I'm setting up my local LAMP server, and when I go to it, I can't follow symlinks with the Apache user (www-data). At this point, I've tried chowning and chmoding and I've added Options ...
4
votes
4answers
309 views

Are symlinks internally bidirectional or are they only pointing somewhere?

How are symlinks implemented? Are references stored on both sides or only in the location where the symlink is pointing from? Story: I have a weird "bug" in the folder view of Sublime. A folder that ...
4
votes
0answers
153 views

Files (Nautilus?) shows the real location of Symbolic Links [duplicate]

I some of the "folders" in my home directory are symbolic links to a larger hard drive mounted on /mnt/data. I would like it if when I click on (for example) Music in my home directory, Nautilus ...
3
votes
4answers
320 views

Is it safe to place symlinks in /bin directory ?

I have many command line tools that I use frequently. I was using the normal method to traverse till the complete path of that command through terminal and then did ./command-name BUT this is a ...
3
votes
2answers
31k 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 ...
3
votes
1answer
5k views

Unable to create a symlink to a file

I am not able to create a simple symlink here. When I tried the command sudo ln –s /home/vivek/Downloads/drush/drush /home/vivek/Documents/ where drush is a file inside the folder named drush, I ...
3
votes
2answers
2k views

How to find the final target of a daisy-chain of symbolic links?

I needed to issue several commands to follow a chain of symbolic links to the final target. Is there a command which will do it in a single step? which updatedb /usr/bin/updatedb ls -l ...
3
votes
2answers
3k views

Can I symlink a Dropbox folder?

I've just installed Ubuntu 12.10 as a dual boot with Windows 8. I'd already had windows up and running for a few months before installing Ubuntu, so in order to have my files accessible from both ...
3
votes
2answers
470 views

What are some typical uses of hard links?

Everyone who was used to Windows can imagine what symlinks are and how they're used. On the other hand, the hard link concept is foreign to Windows (am I correct?). I would like to know what are the ...
3
votes
2answers
8k views

Need ProFTPd to follow symbolic link

I have 2 folder: /var/www/project1/ /var/www/repository/module/ and I have this symbolic link: /var/www/project1/module/News => /var/www/repository/module/News I know the target is outside the ...
3
votes
2answers
397 views

How to make Guest OS follow symlinks from shared folder

I have Ubuntu Desktop as my main OS and Ubuntu Server as my Guest OS. I created a shared folder called /shared and put in it several symlinks to different folders across my main OS. Of course, my ...
3
votes
1answer
566 views

How to use multiple instances of gcc?

I have both gcc 4.7.3 and 4.8.1 installed But on running gcc --version I get gcc (Ubuntu/Linaro 4.7.3-1ubuntu1) 4.7.3 Copyright (C) 2012 Free Software Foundation, Inc. This is free software; see ...
3
votes
2answers
501 views

What is different symbolic link with hard link after unlik?

1. #include <stdio.h> #include <unistd.h> void main(){ link("foo", "bar"); unlink("foo"); if(open("bar", 1) < 0) printf("open error\n"); else ...
3
votes
1answer
1k views

Symbolic link doesn't use target working directory

I've created the following symbolic link: Source: /usr/local/android-ndk-r5/ndk-build Destination: /usr/local/bin/ndk-build However, when I attempt to use ndk-build from my source directory, it ...
3
votes
1answer
53 views

Move a file and all of its symlinks

For the icon themes I'm developing, I have different files with a different number of symlinks placed in different folders. Here is an example of one of them: FlatWoken/FlatWoken/scalable/apps$ find ...
2
votes
1answer
8k views

Give ftp users access to directories outside their root using symlinks

I tried to give proftpd virtual users access to directories outside their home paths using symlinks I created as root through the console. /var/ftp/users/test is the home of the user named test. ...
2
votes
2answers
99 views

Where to put One-Off Computer-Wide Software Folders?

I am pretty new to Linux so pardon the ignorance. I am installing an application (a wiki server) on my system but am not doing so through aptitude as I can only grab a tar.gz of the package. This ...
2
votes
3answers
266 views

Determining if a soft link already exists [closed]

How can you determine if a soft link already exists? I do not know how to determine this. I am a novice to Unix/Linux
2
votes
1answer
1k views

How can I make a symbolic link to run a program with command line argument?

How can I make a symbolic link to run a program with command line argument? For example, I want to run sample with -i eth0 argument every time when I click on a symbol link.
2
votes
1answer
2k views

Make `php` recognized as a command in terminal [closed]

I have XAMPP installed and my PHP is: /opt/lampp/bin/php-5.3.8 Every time I need to execute a PHP file I need to do this: /opt/lampp/bin/php-5.3.8 testando.php Is there another way to execute it ...