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

Symbolic Link: No such file or directory

I created a symbolic Link from a File at "/opt/bladir/bla" to "bla". So "bla" is now in "/usr/bin/bla". But if I want to call "bla" at terminal, there comes the no such file or directory error. I ...
0
votes
2answers
773 views

What is “link to executable”?

What is "link to executable" ? I'm trying to understand what "gcc" is. If I open Properties of it in Unity UI it says "link to executable". I googled it. Tried following commands link readlink ln ...
1
vote
2answers
480 views

show the target of current directory(symbolic link)

I'm in directory ~/a which is a symbolic link to ~/b/c. My prompt looks like: ~/a$ But I hope to cd to ~/b/c. ~/a$ cd . ~/a$ It doesn't work. What's the right way?
1
vote
1answer
2k views

Is it possible to create a shortcut/symbolic link to a folder in unity launcher? [duplicate]

Possible Duplicate: In Unity, how do I make desktop shortcuts (a la Windows, OSX)? How can you access a folder you want quickly? I want to create a shortcut for a folder on unity. How is ...
2
votes
2answers
337 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 ...
5
votes
1answer
3k 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 ...
1
vote
1answer
462 views

Symlink on a folder inside a mounted drive

Ok so i moved from windows to ubuntu 12.04 32bit yesterday and im still learning the folder structure etc of *nix systems. What im trying to do is create a symlink from my 2nd hard drive's, which is ...
1
vote
1answer
4k views

sites-available subfolders and a2ensite?

Due to my job on my localhost I have a lot (think 50+) sites running, these are for about 8 different clients, I want to organise my sites into subfolders. I tried putting my sites in subfolders ...
2
votes
1answer
439 views

How do I replace a directory with a symlink and retain the folder emblem?

I want to replace the folders in my home/ directory with symlinks to folders in another location, but I want to retain the folder emblems without having to go searching for them. How do I do this? ...
1
vote
1answer
928 views

After creating a symlink from PlayOnLinux steamapps to Windows steamapps, should games appear as installed in Steam?

I was able to successfully install Steam via PlayOnLinux. I can launch Steam, browse the store, see my library, etc. After I did that step, I followed these instructions to create a symlink from ...
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
301 views

Can't create folder links from a fat32 partition

When I try to create links from several folders (created on windows 7) in order to put them on my personal folder, I get the following error: Error creating the link to [folder] - Destination does ...
0
votes
0answers
17 views

How To Mount or Bind A Samba Share (Specified By An IP Address) On A Directory? [duplicate]

Possible Duplicate: Correct way of mounting a Windows share From my Ubuntu computer, I can access a network share in Nautilus using the IP address prefixed with "smb://". For example, ...
1
vote
2answers
283 views

How to Tab-complete directories when in symlinked directory?

I have a symlink: /path/to/foo -> /path/to/bar/foo When in /path/to/foo I might want to cd to /path/to/bar/foo: $ cd ../ Tab Then nothing autocompletes. I can still cd just fine by typing in ...
3
votes
1answer
5k 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 ...
2
votes
1answer
1k 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 ...
1
vote
1answer
216 views

find . -type l says missing argument

I want to find all symbolic links in the current directory and below. Therefore, I used: find . -type l Running that clears the screen showing "Pattern not found (press RETURN)" at the bottom of ...
2
votes
2answers
2k views

Hard-link /home/myuser to its new location?

I moved my home directory to a subdirectory of a second (mounted) drive using usermod -d ... -m. Now, most programs work fine, but a few (Dropbox, etc.) do not. I believe this is because there is no ...
1
vote
1answer
1k views

How to store Pictures folder on another hard drive?

I have multiple drives in a desktop computer. I want one of those drives to function as my /home/username/Pictures folder. Can this be done? I thought symbolic links could do this, but I'm not ...
0
votes
1answer
176 views

Hardlink or Symlink a portable HDD as Webroot?

I'm setting up a local development environment for our server, and (due to capacity limitations on my SSD) I need to use an external drive as my Webroot (/var/www in my case). The real question is, ...
3
votes
1answer
4k 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 ...
1
vote
2answers
688 views

Creating symlink for Postgres

As a developer, I often ssh right into my local database, just to test my application before pushing my code. However, I find that every time I want to access Postgres, I have to type in ...
1
vote
1answer
54 views

How can I build a link for a directory aside from one file?

I run World of Warcraft on Windows 7 on one hard drive and Ubuntu on another. Until I can figure out how to get my wine version working at the same framerate as the Windows 7 version, I have to do ...
2
votes
1answer
420 views

How to maintain symlinks in linux file manager?

I want to use symlinks extensively. However, if I move the target file, the symlink becomes broken (unlike on Windows). That's not acceptable to me, so I either need a solution or I won't be able to ...
1
vote
1answer
860 views

symbolic link to /opt

How do you : "Create as administrator (sudo) one link in /usr/bin to the command that you'd like to call (for example with8.5 and tclsh8.5). One time that you had create the links you can run ...
0
votes
1answer
836 views

Symbolic link all files in directory to show in another directory?

What I want is to be able to display all files that are ftp'd into /home/ftp in /srv/ftp /srv/ftp is password protected, and has files in it which I don't want to be accessible from the public ftp. ...
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 ...
0
votes
1answer
531 views

Symlink a directory and automatically sync its content

Suppose I have a folder foo with the two content: data1.txt cfg.txt Now I create a new symlink called fo2 which points to directory foo: cp -s -R /home/user123/foo /home/user123/fo2 It's ...
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 ...
1
vote
1answer
239 views

Redirecting directories in home partition

I have a 60GB SSD for my / filesystem but for more space I got a 16GB SD card for my /home partition. I'm worried it won't be able to take the amount to write the /home directory. So I was wondering ...
4
votes
2answers
711 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 ...
2
votes
1answer
462 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 ...
4
votes
2answers
514 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 ...
1
vote
1answer
778 views

Why ubuntu does not have /usr/bin/bash

this is not a problem, just curious: Why ubuntu does not have /usr/bin/bash ? as link to /bin/bash or other direction.
3
votes
2answers
25k 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 ...
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 ...
5
votes
1answer
496 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 ...
6
votes
1answer
744 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 ...
0
votes
1answer
491 views

Follow a .lnk with samba

I'm trying to access some file on my company's local network. The file I was looking for appears to be a Windows shortcut (.lnk) and, of course, I can't follow it from my Ubuntu. I didn't find any ...
1
vote
0answers
473 views

Copy a link file in Nautilus 3 [closed]

In Nautilus 2, when I copy a link file from A to B, it simply copy the link and I think it is a good idea. However, now I upgrade to Nautilus 3 and do the same thing, I found that Nautilus doesn't ...
4
votes
3answers
11k 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 ...
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?
6
votes
3answers
5k 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 ...
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 ...
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 ...
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 ...
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 ...
1
vote
1answer
969 views

symlink for dbus headers

Source code for something that won't compile has the line #include but in real life that header file is in /usr/include/dbus-1.0/ Similarsituation exists for the dbus-c++ package. Why doesn't ...
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
2answers
5k views

Permissions issue with symlinks over samba

I'm having trouble accessing some files over a samba share. Here's my setup: I have shared /shared as Shared I have a user with the same name and pwd as my Linux user in my Windows machine I made ...