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
162k 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
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 ...
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 ...
51
votes
6answers
74k 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 ...
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 ...
3
votes
1answer
575 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 ...
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 ...
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
804 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
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 ...
2
votes
1answer
510 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 ...
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 ...
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 ...
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 ...
5
votes
4answers
737 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
212 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
612 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.
3
votes
4answers
324 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 ...
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
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 ...
1
vote
2answers
1k views

Documents stored on separate internal drive, Ubuntu doesn't notice on startup

My machine has Windows 7 Ultimate x64 and Ubuntu 12.04 LTS running side-by-side on a single hard drive with GRUB bootloader, each with 500 GB storage. I keep my personal documents on a separate 1TB ...
0
votes
1answer
26 views

Symbolic link to resolv.conf strange behaviour in Ubuntu 14.04

I recently upgraded my PC to Ubuntu 14.04. I then experienced major problem in DNS resolution that did not work anymore. I finally found the following: in /etc, there is a 'resolv.conf' wihich is a ...
0
votes
0answers
347 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
697 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 ...