Tagged Questions

From the ln man page: NAME ln - make links between files SYNOPSIS ln [OPTION]... [-T] TARGET LINK_NAME (1st form) ln [OPTION]... TARGET (2nd form) ln [OPTION]... TARGET... DIRECTORY (3rd form) ln [OPTION]... -t DIRECTORY TARGET... (4th ...

learn more… | top users | synonyms

0
votes
1answer
19 views

Creating a symbolic link to a folder with ln command

I'm setting up the document root of my web server to point to a folder elsewhere on the disk. Should I be using a hard link, or a soft link, with the ln command? Also, I'm having trouble getting the ...
0
votes
4answers
61 views

Does ln -s require you to be in a certain directory?

I want to create a simple symlink to a file. It works perfectly if I run the command from inside the directory where I want the symlink to be created: /path/to/link $ ln -s /path/to/file . But if ...
0
votes
1answer
38 views

Auto rename symbolic link

I have a folder which contains many sub-folders which contains many images. I find it tedious to go into each folder to browse the images so I decided to create an empty folder and create symbolic ...
0
votes
1answer
47 views

Unix pipe: find | ln -s

I'm trying to symlink some php files using the following command: find `pwd` -name "*.php" | ln -s * /home/frankv/www/bietroboter.de/symlinks However, all the symlinks are broken because the little ...
3
votes
2answers
120 views

What is “ln -L” (--logical) for?

I can read in the ln man page: -L, --logical make hard links to symbolic link references I read somewhere that ln -L could be used to re-link files that were deleted but which are ...
1
vote
2answers
42 views

Problem with permissions when syncing to sites directory

Is there a way to symbolically link a directory using ln to my ~/Sites/ directory on OS X so that the permissions are correct so it may be viewed in a web browser when I'm doing web development on a ...
2
votes
1answer
88 views

Symlink all files but copy certain extensions

I'm wondering how I'd be able to symlink all the files in a dir structure and then also copy files of a certain extension in that dir. I'm basically symlinking all files within /foo/a,b,c to ...
1
vote
1answer
111 views

Linker (ln) error: can't find certain files

I'm building something from source and I get the following output while running make: ... CC libpromises_la-mod_outputs.lo CC libpromises_la-unix.lo CCLD libpromises.la CC ...
2
votes
1answer
47 views

How would you link a number of files (e.g. *.so) by one-liner in Linux?

I need something like ln -s /from/*.so But ln doesn't allow such. So how would you do then?
0
votes
1answer
96 views

Listing All Linked Files

I can't seem to find a way to do this, so maybe it's not actually possible, but I was wondering if there was a way to list all files that link to a file. For example. touch a ln a b ln a c I want ...
3
votes
2answers
5k views

How to find all soft links (symbolic links) in current directory?

Question relates to shell-scripting in bash. How to check with a script which files within the current directory are soft links? In case I have used the wrong term, when I say soft links, I am ...
6
votes
5answers
2k views

To see hardlinks by `ls`

I run ln /a/A /b/B I would like to see at the folder a where the file A points to by ls. How can you see the actual hard link by ls?