Skip to main content

Questions tagged [ln]

ln is the Unix utility for creating filesystem links.

0 votes
0 answers
482 views

ln: failed to create hard link | No such file or directory - Even when file exists

Running Ubuntu 22.04.3 LTS using a Samba share (Version 4.17.12-Debian) running on Proxmox. The command: ln "/mnt/drive/downloads/movie.mkv" "/mnt/drive/movies/movie/movie.mkv" The ...
ClassyUnderexposure's user avatar
1 vote
1 answer
601 views

Symbolic Link not working in sub-directory?

Newbie here. I was learning about ln command. So I created a symlink to a file foo.txt inside another directory bar. ln -s foo.txt bar When I try to access bar/foo.txt, I get the error "Too many ...
GrandeKnight's user avatar
1 vote
1 answer
425 views

How to create symbolic link relative to the other symbolic link?

I have following directory tree / |-- server | |-- cstrike | | | |-- hltv -> ../../hltv | |-- [other files] |-- 27015 | |-- hltv | |-- server -> ../server |-- 27016 | |-- hltv | ...
Evgeniy's user avatar
  • 160
0 votes
1 answer
79 views

On which computer are mounted files executed?

This could be a few questions, but I feel it's a similar issue. On which computer are mounted executable files executed? And does this change with like sshfs, nfs, or ln? Like if you have a storage ...
user avatar
1 vote
1 answer
254 views

Create symlink to the final target of another symlink

Suppose a have a symlink named A If I execute this: ln A B -s then B points to A, having created a chain of symlinks: B->A->some Is there any option for ln to link directly to the final target, ...
nadapez's user avatar
  • 232
0 votes
1 answer
314 views

Copy relative links to absolute links

Given a directory /path/to/files that contains many relative links along the lines of foo -> ../other/data/foo, how do I copy the links in files/ to be absolute path links on /mydata/path/ I ...
lbutlr's user avatar
  • 123
0 votes
0 answers
549 views

How do I install Wine on a seperate drive?

I have very limited space on my laptop, and Wine once fully installed, is almost 1GB in size, and I simply don't have space, and cant free up space. Is there anyway that I could make use of symbolic ...
Chen's user avatar
  • 53
0 votes
2 answers
2k views

Creating a symlink or alias that point to current user´s home sub-folder

Is it possible to create, using terminal on a mac, for a mac, a symlink or an alias to ANY currently logged in user of a mac? This symlink/alias is to be included as a "drop destination" for a ...
andiOak's user avatar
  • 103
2 votes
2 answers
8k views

Unlink (remove) directory symlink

I did: ln -s /DATA/ ./base_DATA/ and I'd like to unlink. Simply: unlink ./base_DATA but... unlink: cannot unlink './base_DATA': Is a directory According to this answer (and many other online) the ...
alex's user avatar
  • 731
1 vote
1 answer
279 views

Remove hard link when target is locked by system process

I've created a hard link (not symbolic link) Arial.ttf in my user directory using the Git for Windows GNU tool ln.exe and Bash. The link points to the system font C:\Windows\Fonts\arial.ttf. ln /c/...
Jonathan Holvey's user avatar
18 votes
1 answer
35k views

How to create symbolic links in /usr/bin on a Mac?

Environment: OSX Sierra, Darwin Kernel Version 16.3.0 Root Problem: I want to use a bunch of shell scripts in a central repository, which have a #!/usr/bin/zsh. On my Mac, the zsh is in /bin/zsh. ...
user1934428's user avatar
0 votes
1 answer
623 views

Symbolic linking in Terminal (What am I doing wrong?)

I want to create symbolic links for all files in a folder parent/target/. I want the links to be in the folder parent/destination/. My working directory is parent/ for the following terminal output ...
jsejcksn's user avatar
  • 4,331
1 vote
1 answer
388 views

OS X - ln -s on a directory in ~ shows strange behaviour

I'm currently setting up my new system (OS X) and trying to link ~/Git/ to /Library/WebServer/Documents/, so that I can access all my git repositories via 127.0.0.1. However, that doesn't work as ...
Marcello Mönkemeyer's user avatar
2 votes
1 answer
1k views

Find all files matching desription and create hard link in directory

I would like to find all .mkv files in my download directory and create a hard link to them in my /movies/ directory. Here’s what I have so far: for i in `find /download/ -name *.mkv`; do ln "$i" /...
curios's user avatar
  • 360
2 votes
1 answer
2k views

Ignoring 'ln' errors in Vagrant provisioning

I'm using a shell script in my Vagrantfile to create a symlink for Node.js (in a Ubuntu VM): ln -s /usr/bin/nodejs /usr/bin/node That works fine when I call vagrant up for the first time, but when I ...
ChristianK's user avatar

15 30 50 per page