A special type of file that references a file or directory.

learn more… | top users | synonyms (1)

4
votes
2answers
428 views

Can we use symbolic link and hard link for directories?

I know we can do that for files. What about directories? It seems that cpanel uses that a lot.
4
votes
2answers
832 views

Syncing multiple home folders with dropbox and symlinks

To keep multiple computers synced with dropbox I tried the following. Approach A. -Computer 1: Install dropbox, dropbox folder: /Dropbox/ -Computer 1: Create symbolic link in that folder to home ...
4
votes
1answer
105 views

How do I batch-export all the content contained in symbolic links? (and then delete them all)

So as an alternative to Recursive scp without following links or creating a giant tar file? (this could be an emergency since the remote files could be deleted any time soon), I'm thinking of deleting ...
2
votes
2answers
3k views

Recursive scp without following links or creating a giant tar file?

So I did a recursive scp on my remote fileserver (in another state) and it created an infinite loop of links on my remote web directory... ...
3
votes
3answers
325 views

How to diff two folders by inodes

I'm currently using a script to backup files on my computer. In a nutshell, it works like this: rsync --link-dest=$FOLDER/current $SOURCE $DESTINATION However, I think that my script may be ...
0
votes
1answer
221 views

pwd resolving symbolic links [duplicate]

Possible Duplicate: pwd without symlinks Imagine I have a directory /home/me/dir and a symbolic link to it called /home/me/dirlink now if I enter dirlink and use pwd, it of course ...
7
votes
4answers
638 views

Linking /proc/mnt to /proc/mounts

I understand that /proc filesystem reflects the output of various processes. Unfortunately, I have a propietary (romdump) binary that expects the mount table to appear as /proc/mtd, while my Android ...
1
vote
1answer
170 views

tomcat: symbolic link in a loop

linux-trra:/usr/local> $CATALINA_HOME bash: /home/anisha/openGTS17Nov/apache-tomcat-7.0.32/: is a directory linux-trra:/usr/local # ln -s $CATALINA_HOME tomcat linux-trra:/usr/local # file tomcat ...
1
vote
2answers
85 views

Create a link but don't change the canonical path

In each users' directory there exists a symbolic link to /var/www/website/public_html/. However, whenever a user cds into the link, he sees the path as /home/username/public_html/. Is there any way to ...
5
votes
3answers
235 views

How to ls using the long format (-l) while still following directory symlinks?

I've noticed that ls -l doesn't only change the formatting of the output, but also how directory symlinks are handled: > ls /rmn biweekly.sh daily.sh logs ... > ls -l /rmn lrwxrwxrwx 1 root ...
5
votes
2answers
8k views

How do I copy a symbolic link?

I have a symbolic link to a file in one directory. I would like to have that same link in another directory. How do I copy a symbolic link? I tried to cp the symbolic link but this copies the file ...
2
votes
1answer
295 views

Directory sync across SSHFS involving symlinks

I have 2 Ubuntu Linux boxes with similar directory structures, LX02 and LX04. When I ssh from a terminal on LX02 to LX04 and go to my main scripting directory, /root/sbin, I see a different set of ...
12
votes
1answer
4k views

Make cd follow symbolic links

I have my code mounted as an sshfs in my home directory, but the hierarchy is difficult to remember, so I created a symlink in my home directory leading to that directory. Is there a way so that when ...
8
votes
1answer
3k views

How can I access a directory outside a chroot from within it?

I have a user which is chrooted to her home directory, but I want her to also be able to manage files within /var/www. As such, I did the following: root@server:/home/username# ln -s /var/www www ...
2
votes
1answer
458 views

Why are there symlinks in /dev? (LVM)

[root@SERVER ~] ls -la /dev/vg/root lrwxrwxrwx 1 root root 17 2012-10-28 10:29 /dev/vg/root -> ../mapper/vg-root [root@SERVER ~] QUESTION: Why are there symlinks? Why there couldn't be only 1 ...
2
votes
1answer
662 views

Can't delete symbolic links, permission denied

I try to delete all symbolic links pointing to Python3.2 with sudo ls -l . | grep '../Library/Frameworks/Python.framework/Versions/3.2' | awk '{print $9}' | xargs rm This just gives rm: 2to3: ...
4
votes
0answers
153 views

Move a file and re-target all of its symlinks [duplicate]

Possible Duplicate: How can I “relink” a lot of broken symlinks? Is there any way to move a file to a new location, and then re-target its symlinks to the new location, using a shell ...
3
votes
1answer
507 views

How do you increase MAXSYMLINKS

In a python script, I am creating a bunch of symbolic links chained together. example: link1->link2->link3->.......->somefile.txt I was wondering how you can change the max number of symlinks to be ...
3
votes
2answers
627 views

Why is bash giving me (apparently) conflicting information about a file?

Background I am working on a RHEL 5 cluster. I want my Fortran program to read the file /home/bob/inputs/input_1 I asked Bob to give me permission to read all contents of inputs: [bob@server]$ ...
1
vote
2answers
2k views

How to create a shortcut to a folder to Documents

I have a folder in /media/sf_fedora which I want to access from Documents instead of going into /media each time, how can I create a shortcut. The 'Make Link' is grayed out in the Edit menu for some ...
1
vote
1answer
171 views

Does symlinking from Drive A to Drive B affect I/O on Drive A?

I was wondering if IO through a symbolic link affects IO on the host drive even if it points to a seperate drive? My setup is, /dev/sdb2 1.8T 443G 1.3T 26% /home1 /dev/sda3 1.8T 1.7T ...
6
votes
2answers
665 views

Find files that were not installed by the package manager

I'd like to get a list of all files in my Gentoo Linux system that were not installed by the package manager (Portage). This is because I want to keep my system as clean as possible, removing all ...
2
votes
2answers
378 views

If symlink on NFS points to local disk, will advantage of local disk be lost?

I am working on a development network that uses NFS so that home directories etc can be accessed from any machine. However, NFS is occasionally flaky, causing slowdown/freezing of the machines. I am ...
2
votes
2answers
1k views

Sublime command line open it twice

I just created a symbolic link to sublime: $ sudo ln -s /opt/SublimeText2/sublime_text /usr/bin/subl The problem is that it opens the last project and the open I want: $ subl my-project or $ ...
3
votes
2answers
325 views

Can I make a symlink point to different locations on different machines?

Before you say "no", a workaround would also be fine. Here is the situation: I have two machines local and compile, both including the same ~ over nfs from a third machine files. I would like to have ...
1
vote
0answers
711 views

Symbolic link to a socket

From a security point of view, is it safe to create a symbolic link to a socket file? The following bits of context refer to the deployment of a web application on a shared hosting service. $ ls -al ...
2
votes
1answer
486 views

Fix symbolic links after version change

Say I have a symbolic link to a file, which has its version in its name. (The file is actually a jar file) Now say, that the version changes, i.e the old file I linked to is deleted and a new one is ...
4
votes
4answers
458 views

find all symbolic links in a directory tree pointing outside that tree

I frequently move directory trees to other locations or copy their tarballs to other machines, and I would like to have a method to check whether any symlinks in a directory tree A point to locations ...
4
votes
2answers
540 views

How to rsync a chroot without breaking symlinks?

I'd like to rsync (backup) a chroot environment from outside the chroot. For that I first make a lvm snapshot of the chroot volume and then run rsync on that. The only problem with this approach: ...
9
votes
3answers
9k views

Are there any drawbacks from using mount --bind as a substitute for symbolic links?

Symlinks have limitations in how functions like ls, mv, and cp can operate on them because unlike shell initiated commands like cd, these functions do not have information about how the user accessed ...
5
votes
1answer
418 views

Symbolic links with ls, mv: forcing the functions to utilize “logical” addresses (remembering the original path)

It seems that for many basic functions operating on symbolic links, the physical path is used by default. However, cd works fine. When moving into a symbolic link, cd remembers where I came from so it ...
2
votes
4answers
4k views

How do I tell if a folder is actually a symlink and how do I fix it if it's broken?

How do I tell if I have a symlink, a shortcut of some sort, or a folder in Linux? Please see following screenshot. As you can see, the ls command lists objects where some are colored in dark blue ...
4
votes
2answers
96 views

Quicker Way to Reference a Directory?

This one is probably easy for all of you, but I have never had to deal with such a nested local set of directories. If I have a path like: /mnt/media2/Archived\ Files/_Transfer/ is there a way to ...
2
votes
2answers
243 views

Create a new link to access all files and folders

I get stuck to create a shell script for a new link something like that link linkPathName orginalPathName I want to create a link between a new link and original path; however, both can access ...
1
vote
2answers
897 views

Using a symlink for a mountpoint

Is it possible to set a symlink on a mountpoint? I have a mountpoint /vz. When I'm ln -s /var/lib/vz /vz the result is, that I have a directory vz in my mountpoint /vz, thus I have /vz/vz. Is there ...
-1
votes
3answers
5k views

How to create command shortcut to .sh file?

I want to type firefox in terminal and run Mozilla browser. So I try to create sym-link: ln -s /opt/firefox firefox but after typing firefox in terminal I get an error: bash: firefox: command ...
3
votes
4answers
3k views

Find only destination of symlink

For use in a shell-script, I'm looking for a commandline-way to get the destination of a symbolic link. The closest I've come so far is stat -N src, which outputs src -> dst. Of course I could ...
2
votes
2answers
3k views

Create symbolic links with wildcards

I have multiple hard drives with the same directory hierarchy, for example: /media/sda/dir1 /media/sda/dir2 ... /media/sdb/dir1 /media/sdb/dir2 Two hard drives with similar names and similar ...
3
votes
2answers
225 views

open a file using CDPATH and symlink

To quickly move around, I added a path to CDPATH that contains symlinks to different locations. I did this by adding the following line to .bashrc: export CDPATH=~/symlinks When working with ...
3
votes
1answer
447 views

FreeBSD: Remove symlinks in devfs

Background I have been rebuilding a small home NAS. This server represents my first 'real' foray into the world of server administration and it has taught me quite a bit already. Originally, the ...
4
votes
0answers
367 views

No access to symlink folder on NTFS partition

I am using an NTFS parition for storing data I like to access both from Ubuntu and Windows 7. On my Ubuntu HOME partition, I like to link the folder Assets in order to access it from an application ...
7
votes
2answers
377 views

Git do not overwrite symlinked directory on branch checkout

How can I make directory read-only with git? The situation is - in project, I have a symlink to shared framework. I don't want it to be overwritten/changed in any way (not even mtime or atime). How ...
3
votes
3answers
200 views

Absolute link pointers, able to work in another system

I have a folder and within it there are many links. I make those links absolute, so that I can move them about within the folder and they still point to the same data. Relative links would break if I ...
1
vote
1answer
1k views

No permission on external drive [duplicate]

Possible Duplicate: can't change file permission On my hard drive everything is fine, but when I go onto my external drive I can't chmod. I get no error message but the changing simply ...
3
votes
2answers
2k views

Use `ln` to create a missing directory

So I'm writing a small package manager, and a problem I've run into is making the symbolic links to files. It installs the package to /usr/pkg/name-version, and then reads a file to determine what ...
1
vote
1answer
2k views

In Ubuntu, is there a way to virtually merge two folders without unionfs or aufs?

I've got a source control system at work that I can't modify which scatters a bunch of files in unfortunate places. My IDE expects these folders to be in a single unified location. Normally I'd just ...
0
votes
4answers
455 views

Create shortcut for PHP

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

Creating a proFTPd user

I'm setting up a proFTPd server so I can upload files to my webserver, but I've never tried this before. I've installed proftpd, added a user with a home folder: /home/FTP-shared and added /bin/false ...
1
vote
1answer
490 views

How does apache determine what directory to show from public_html?

I am using Ubuntu 12.04 and have configured apache to serve from ~/public_html. I am trying to serve some directory contents over http on LAN. When I did the following: ln -s ...
5
votes
1answer
137 views

Can non-canonicalized forms of filesystem paths be significant? (eg. “foo//bar”, “foo/./bar”, and “foo/../bar”)

I have a script for building a particular flavor of GCC cross-compiler. Throughout the script there are many paths that are not in canonical form, such as duplicate path separators (/xxx/foo//bar/yyy) ...