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)

45
votes
3answers
125k 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?
7
votes
1answer
2k 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 ...
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 ...
17
votes
3answers
2k 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 ...
3
votes
1answer
294 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 ...
26
votes
6answers
42k 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 ...
14
votes
2answers
974 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 ...
2
votes
3answers
3k views

How to sync folders on different partitions (symlink?)

I use Ubuntu One to synch my home/Documents folder among more computers. On a portable tablet I have set the Documents folder in a separate Fat32 partition named sda6, and I made it default documents ...
4
votes
2answers
708 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 ...
3
votes
2answers
478 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 ...
2
votes
1answer
459 views

Changing symlinks does not work for directories

In order to change a symbolic link, one can use the -fs option to eliminate the need to unlink or delete the old link first. However, trying to do so on directories does not seem to work: $ mkdir ...
5
votes
1answer
5k 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 ...
6
votes
2answers
21k 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 ...
5
votes
4answers
581 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? ...
2
votes
2answers
197 views

What's the best way to add native-looking links to my NTFS data partition?

I have many documents, backups, movies, photos which I have in a Windows data partition (D: drive) that is on the same box as my Ubuntu installation. I want to be able to use this from Ubuntu, with ...
20
votes
2answers
513 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.
2
votes
2answers
2k views

I think “/lib/modules/$(uname -r)/build” points to incorrect folder

I compile/create my own deb packages of kernel with: make-kpkg --rootcmd fakeroot --initrd --append-to-version=$version --revision=1 kernel_image kernel_headers But when I install both packages, in ...
0
votes
0answers
204 views

How to create symlink inner shareDirectory?

1) sudo mount -t cifs //[nas_device_ip/dir] [shareDirectory] -o user=xx,pass=xx,rw,uid=xx,gid=xx 2) modify /etc/samba/smb.conf and then smbd restart [global] follow symlinks = yes wide links = yes ...
0
votes
1answer
520 views

msp430/bin/ld: cannot find -lc

I installed successfully msp430-gcc 4.7.0 compiler. The compiler at the final stage of the linking process it shows me the following error for Ubuntu 12.04. msp430-gcc -mmcu=msp430f1611 ...