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

learn more… | top users | synonyms (1)

1
vote
2answers
50 views

ls .. doesn't work properly with symlinks

I have directories set up a bit like this ~/code ~/code/src ~/code/build -> /path/to/somewhere/else That last one's a symlink. If I do this cd ~/code/build ls .. then I get the listing for ...
0
votes
1answer
16 views

In Mint 17, how do I copy/paste symlinked files?

In Mint 17 (Cinnamon), I'm using the file manager (I guess it's called Nemo?) to view some header files after building OpenSSL in the 'include' directory. Each of the header files in this directory ...
1
vote
1answer
13 views

Understanding directory symlinks traversals and the parent directory

Let's say you have directories /dir1 and /dir2/linked, where the later is a symlink to the former. When you cd to linked and pwd, you get the output /dir2/linked. If you then cd .., you'll be put on ...
-2
votes
0answers
26 views

How to create symbolic link to a directory with custom name

I want to create a sym link from the source name TEST to the destination name NAME if i give ln -s TEST /NAME - its going to create the Folder in the /NAME with TEST name but i want to get as NAME ...
2
votes
3answers
30 views

How to determine if a soft link's target is a directory or a file?

Given the ll command outputs as follows #> ll lrwxrwxrwx ... How to determine if a soft link's target is a directory or a file from "lrwxrwxrwx"?
1
vote
1answer
29 views

Can a hard link break the file system structure?

I want a very simple example of how can a hard link break the file system structure. I saw somewhere that people say it's because of loops, however, I can make a loop with a soft link and so I still ...
2
votes
2answers
44 views

Why SOFT LINK can't point, But HARD LINK can point to the INODE of a deleted Original File?

1st I created both hardlink (HLINK) and softlink (SLINK) to a single file (A.DAT). As I know, SLINK has its own inode, and this inode will point to the inode of A.DAT. But HLINK does not have its own ...
5
votes
2answers
97 views

Create symlink tree in existing directories

I carry all of my music around on a 1TB USB drive and have a udev rule to symlink it to $HOME/Music/ when I plug it in to one of my laptops, which it does. The issue I have is that this works fine ...
1
vote
2answers
51 views

readlink -f not working on multiple files

I tried to run readlink -f on multiple files by using wildcard "*", but it evaluates other files as operand Command readlink -f *log Output (desired) /home/trail_1.log /home/trail_2.log Am I ...
0
votes
3answers
38 views

Double symlink (for partition and server)

I hope this is not a duplicate, I searched but couldn't find an answer. I'm using Linux Mint. I have a Data partition that mounts automatically on boot. I've created symlinks from this partition on ...
2
votes
1answer
26 views

symbolic link new target

I want to change the symbolic links pointing to the current directory, to a common directory named /pool current directory a/b common directory a/pool I followed every I could find and came close ...
2
votes
2answers
45 views

Symlink aliasing files in subdirectories without changing current directory

It seems like it should be simple to symlink one file to a new file in a subdirectory.... ....without moving subdirectories. But something about the syntax is perplexing and counter to what I would ...
0
votes
1answer
64 views

need help with a a symlink and the PATH variable

I tried to install drush with composer from a script that is runing with sudo $nameofuser `logname` #drush installation getcomposer(){ # Composer Global installation curl -sS ...
4
votes
2answers
98 views

Is there any relationship between linking binaries and symbolic links?

This is almost certainly a very stupid question, so it will be easy to anwser. Is there any relationship between the linking of binaries (as in dynamic or static linking) and symbolic links. Do they ...
6
votes
4answers
226 views

Command line shortcuts for changing directory

I'm looking for an easy way to navigate to directories spanning multiple hard drives and want to set something equivalent to a shortcut within the terminal. In Windows I would accomplish this with ...
0
votes
0answers
21 views

Git, puppet `file` type and symlinks

I'm working on merging two puppetmasters into one. Configurations for each are kept in its own git repository. puppetmaster1 must go, and all the hosts must be handled by puppetmaster2. In ...
1
vote
4answers
72 views

Cannot use “firefox” command to run latest firefox

I have download firefox version 34 from Mozilla website. Next, I extracted the tar archive, and moved it to the Desktop. Now, when I run the following command: Desktop/firefox/firefox the version ...
2
votes
3answers
156 views

only show the source file and target linked file using `ls`

I can show the target file that a link points to using ls -l: snowch$ ls -l /usr/local/bin/mvn lrwxr-xr-x 1 snowch admin 29 12 Dec 08:58 /usr/local/bin/mvn -> ../Cellar/maven/3.2.3/bin/mvn Is ...
1
vote
0answers
34 views

Directory symlink to inode, not path (e.g. directory hardlinks)

I'm trying to better understand why directory hardlinks are not possible. Roughly, I think of directories and files as follows: directory --------- inode # exposed as . inode_of_parent # ...
0
votes
1answer
72 views

When is a symbolic link not acceptable? [closed]

From the user point of view, for the purposes of file content, symbolic link is the same as the target file: Symbolic links operate transparently for most operations: programs that read or write ...
3
votes
2answers
51 views

Script to replace all symbolic links to a target to point to another target (in the same directory)

Given the following contrived example: $ mkdir -p a/b && touch a/b/original-target && touch a/b/new-target $ mkdir -p c1/c2 && cd c1/c2 && ln -s ...
1
vote
2answers
50 views

Convert a hardlink into a symbolic link

It is easy to convert a symlink into a hardlink with ln -f (example) It would also be easy to convert a hardlink (filenames link and original) back to a symbolic link to link->original in the case ...
1
vote
1answer
51 views

doesn't symbolic link changes it's permissions if I remove permissions in actual file?

I actually started learning Unix and while doing so I stuck here. Though It may seem silly question I'm actually unclear with it so please help me. I've a file as somefile.txt and a symbolic link ...
0
votes
0answers
24 views

Why does reading from a symlink to network location cause local disk activity?

I am running RHEL 6.4 and have a symbolic link in my home directory to a large file stored elsewhere on a network. My home directory is a network location as well. I've noticed that when I run a ...
0
votes
1answer
27 views

Linux - symlink between mtd partition and user data from mount location

Is it possible to create a symbolic link between NAND/NOR mtd partition and a file from mounted partition (e.g., ln -s /tmp/mnt/linux.bin /dev/mtdblock1)
1
vote
1answer
29 views

Symlink all files in a directory with the entire directory tree

Right now I use this ln -s /dir/* /dir2/ Which will symlink everything, but I have to go inside the dir and make a new directory because the folders are also symlinked (this is expected). So here ...
1
vote
2answers
29 views

Possibilities for executable symlink to non-executable file in Linux?

I have some Python scripts, that I keep in a repository; they are plain-text files, but if their executable bit is set, then the online repository page serves them as binary downloads, not as plain ...
0
votes
2answers
105 views

How to find out a file is hard link or symlink? [duplicate]

I have a file in ~/file.txt. I have created a hard link by : ln ~/file.txt ~/test/hardfile.txt and a symlink file : ln -s ~/file.txt ~/test/symfile.txt Now, How can I find out that which file ...
1
vote
0answers
50 views

Is it safe to symlink to /usr/include/x86_64-linux-gnu/sys from /usr/include/sys?

I'm missing the /usr/include/sys dir and all of its headers. I have build-essentials and supposedly every other -dev package I require for this make. From reading around I understand that it's safe ...
0
votes
1answer
52 views

System wide symbolic link

I'm trying to create a symbolic link which would be system-wide usable. The $PATH output is the follow: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games So I don't understand ...
1
vote
1answer
62 views

symlink /home/username/Documenten tot 2nd partition?

I am trying to make a symlink so all documents are on a different harddisk drive. I learned how to make a symlink and tried to create the desired symlink. this is the command I used in terminal: ln ...
0
votes
2answers
53 views

Finding the original file of a symbolic link

s lets say i have a symbolic link of a file in my home directory to another file on a different partition. How would i find the target location of the linked file? By this i mean, lets say i have ...
12
votes
3answers
880 views

Determining if a file is a hard link or symbolic link?

I'm creating a shell script that would take a a filename/path to a file and determines if the file is a symbolic link or a hard link. The only thing is, I don't know how to see if they are a hard ...
2
votes
2answers
54 views

ls doesn't give me the same as cd + ls to the same folder

$> ls ../../../../.. Doesn't give me the same result as $> cd ../../../../.. $> ls Why? Something with links? What's going on? [ johanrj@jamin ] ...
0
votes
1answer
23 views

Create symlinks on an external storage device that can work on any Linux machines?

An external storage device can be connected to different Linux or Unix machines, and I guess its mounting point may be different? If yes, will symlinks that are stored on the device and link to files ...
-1
votes
1answer
24 views

Can a symlink be edited to link to a different directory or file? [duplicate]

When I move a directory elsewhere, a symblink to it will become invalid. The way I update a symlink mylink is first going into the directory, and then running ln -s "$PWD" mylink, and then mv mylink ...
0
votes
0answers
21 views

default llvm toolchain issue on Mac

Recently I have been using Mac 10.10; but I find that the compilation toolchain is a bit odd to me. It's known to us that on recent Mac OS versions the default gcc is a faked one that is based on ...
2
votes
1answer
36 views

Soft Link created for new software installation

When we install a new software, after extraction the below steps are performed generally: move the files to /opt/folder create the symlink sudo ln -s /opt/folder/application_folder_name ...
1
vote
1answer
37 views

Help understanding and using Symlinks

I have a bit of a situation with a virtual server running some RHEL distro. The server is hosted on a Win2008 server via VMPlayer ( I'm going to smack the guy who set this up.) When it was created ...
4
votes
2answers
52 views

Symlink all Directories inside one directory to another directory

I am using a NAS(synology/xpenology) currently with 1 Drive /volume1/Drive is the share. I have other shares on this Drive /volume1/Drive/SeriesPC its a share connected to my drive on my pc. Now I ...
0
votes
1answer
32 views

Is it possible to access these directories?

I'm trying to recover data from my Ready NasDuo which is Spark based with a 16kb block size. I've followed another post and successfully mounted the drive using a command like sudo fuseext2 -o ...
1
vote
0answers
38 views

Is it possible to make a symbolic link of a file in other machine?

I have a account in a server and I would like have a symbolic link of some files in my local machine. How can I do this?
1
vote
1answer
28 views

copy symlinks with rsync

When I'm trying to backup a disk with rsync, symbolic links are not resolved correctly. For example: media └disk1 ├folder1 │ └folder2 (symlink to /media/disk1/folder2) └folder2 After rsync ...
2
votes
2answers
119 views

Folder alias / Symbolic link to return to back folder

I need to create a folder "2015" which re-routes to ./ but I don't know what the command is. Not sure if the term is called in this case an alias (or symbolic link). So I need to make the same ...
2
votes
1answer
52 views

When is a symlink treated as the thing it links to, and as a symlink?

When is a symlink treated as the thing it links to, and as a symlink? A symlink can links to a file of different types. For example, let mylk be a symlink which links to a dir. The following two ...
2
votes
1answer
61 views

What happen if accidentally move a soft link followed by “/”?

I created a soft link to the current directory, $ ln -s "$PWD" math I then wanted to move it to another directory. $ mv math/ ~/dirlinks/maths/ I then realized I should $ mv math ...
2
votes
0answers
54 views

Unison replacing newer symlinks with older files using the option -force newer

I'm having a problem with Unison and symlinks. I created a test case for making it easier to understand and try this for yourself. First, we create the two directories that will be synced. And some ...
2
votes
4answers
234 views

Creating symbolic link recursively

I essentially want to run this command... ln -s /opt/gitlab/embedded/service/gitlab-shell/hooks/ /var/opt/gitlab/git-data/repositories/web/*/hooks This would create a symbolic link in all folders ...
1
vote
1answer
75 views

How to find out which package installed a symlink

In this question I describe my problems finding out the package that installed the final target of the /usr/bin/rename command. dpkg -S /usr/bin/rename did not give a result, but after first finding ...
1
vote
1answer
36 views

How to find the package that installed a comand, if “dpkg -S” finds no path because the command is a symlink?

While I was writing up a tag information for rename, I tried to look up with which package the rename command was installed. I ran the usual "dpkg -S" (also mentioned in this question): $ which ...