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

Using the link command to keep backups on another drive

I have a folder that contains a not so large amount of space called /data/backup. I have been told that if I link that folder (/data/backup) to an even bigger folder area like /bigdata/backup for ...
0
votes
1answer
39 views

Symlink all files in a Folder to a new Folder

Ideally what I am seeking is a way to rename all my anime keeping original files intact without using extra data space The solution I can think of is creating a duplicate folder path to another ...
2
votes
2answers
39 views

Symlink to current folder as absolute path without typing whole path

Symlinks are saved shortcuts for relative paths: ~/foo➤ ln -s . ~/bar/foo ~/foo➤ ls -l ~/bar total 8 lrwxr-xr-x 1 me me 1B 15 May 14:38 foo -> . The file ~/bar/foo is a symlink to bars ...
1
vote
2answers
19 views

Is target in ln -s must be a full path file name?

I've tried to invoke "ln" in directory ~/download as this: ln -s ./abc ~/abc [EDITED] but it does't work. I do "ls -al " in my home and get wrong link of abc. ln [OPTION]... [-T] TARGET LINK_NAME ...
1
vote
1answer
97 views

How can I get Total Commander to recognize Cygwin symlinks?

I love Total Commander. I love Cygwin. But they are not always friends. One thing that bugs me, is the way symlinks work in Cygwin. Suppose I do this: $ ln -s my/path/to/nirvana budhism And then ...
0
votes
1answer
137 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
94 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
62 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
122 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
152 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 ...
2
votes
2answers
55 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
140 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
155 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
51 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
103 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
7k 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 ...
7
votes
5answers
3k 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?