Questions tagged [symlink]

A special type of file that references an inexistent or existing file or directory. The contents of a symbolic link consist of an arbitrary string that is the path to the file that the symbolic link points to. When the symlink is encountered during pathname resolution, the string stored by the file is used to modify the pathname resolution.

Filter by
Sorted by
Tagged with
0 votes
1 answer
386 views

Create a symbolic Link into a Folder that doesn't exist

I am trying to create about 100,000 symbolic links. The location of the link is in a folder which I want to define at the same time as I create the link. For example ln -s File1 FolderA/File1 Once ...
user avatar
  • 275
1 vote
0 answers
30 views

Symbolic Links - What determines the maximum number? [duplicate]

Preface I create a media folder structure with Python consisting of hundred of thousands symbolic links. This folder structure allows me to navigate my media files like in a complex application, e.g. ...
user avatar
0 votes
1 answer
157 views

Samba share - follows symlink but already in local path

I just faced a problem which I couldn't find anywhere (ex. samba documentation). I have a samba share on server1, and this share mounted to server2. server1's share is a symlink to /var/container/db. ...
user avatar
1 vote
2 answers
12k views

docker - failed to register layer: Error processing tar file(exit status 1) no space left on device

I am on Manjaro. I keep getting: failed to register layer: Error processing tar file(exit status 1): write /usr/lib/x86_64-linux-gnu/libvlccore.so.9.0.0: no space left on device while downloading: ...
user avatar
  • 883
-3 votes
1 answer
566 views

Too Many Symbolic Links Encountered

This is my script #!/data/data/com.termux/files/usr/bin/bash #--------------------------------------------------------------------------------------------------------------# FOALL() { export TFUB="/...
user avatar
0 votes
1 answer
869 views

Symbolic link to binary, can't find configuration file

I just installed the jumbo john package. it's in ~/tools/john the binary is ~/tools/john/run/john and the config is ~/tools/john/run/john.conf I created a symbolic link with sudo ln -s /home/me/...
user avatar
1 vote
2 answers
79 views

How can I get symlinks and which files they target without any permission info, date, etc.?

I want to display info about symlinks and their target files without unnecessary (for this task) information. So far the best I found is to use this variation of find: find -L /path/to/dir/ -xtype l -...
user avatar
  • 23
0 votes
1 answer
48 views

rsync with `--links` option

The rsync(1) man page manual says: -l, --links When symlinks are encountered, recreate the symlink on the destination. But where will the link point? To the same point on the source ...
user avatar
  • 441
0 votes
1 answer
76 views

Symlink pointing at wrong file when executing

I'm having a strange issue with hugo binary installed using brew on Ubuntu 18.04. When I run which hugo I get /home/linuxbrew/.linuxbrew/bin/hugo and when I look at that directory with ls -la /home/...
user avatar
1 vote
1 answer
63 views

Linking directories with ln -s

I have a directory on a small disk: /home/me Here I have another directory with more space: /data/work/mywork I did this: ln -s /data/work/mywork /home/me And while in /home/me this: wget ...
user avatar
  • 520
1 vote
1 answer
39 views

How to sync /home/userA/transfer and /home/userB/transfer?

How to sync /home/userA/transfer and /home/userB/transfer? I tried to make a symlink. ln -s /home/userA/transfe /home/userB/transfer Symlink doesn't work... lrwxrwxrwx 1 centos centos 40 Feb ...
user avatar
0 votes
1 answer
555 views

Enable symbolic link from other user

I'm trying to get the symbolic link from other user. My file is located in /home/serviceA/logs/a.txt And I want to create a symbolic link to /home/centos/logs/a.txt. Here is my command I ran as root ...
user avatar
0 votes
0 answers
131 views

One-way folder sync using symlinks

I’m trying to one-way sync the content of a folder (public) to another (private) recursively using symbolic links. /public /foo textfile /foo2 /private /foo (symlink → ../public/...
user avatar
0 votes
1 answer
38 views

Cat command is not dumping config files

When I run cat /smb.conf I get cat: /smb.conf: Is a directory rather than the config files. Why isn't it dumping the config files?
user avatar
  • 3
0 votes
1 answer
48 views

Encryption after Symlinks are made

I wanted to ask before I did something really stupid. So, here it goes... . Here's the components I will be referencing: "LinuxOS" Partition (dedicated disk; no other partitions on the disk) "...
user avatar
0 votes
0 answers
46 views

Symlink and its target produce different behaviors?

When I run npm, I get this output: -bash: /Users/me/.nvm/versions/node/v10.16.3/bin/npm: No such file or directory When I run which -a npm, I get this output: /usr/local/bin/npm When I run ls -a /...
user avatar
0 votes
1 answer
1k views

How To Solve "Too many levels of symbolic links" Problem

I need to upgrade Gradle in my Linux Mint box. After installing the latest version, I changed the symbolic link with a command something like ln -s /usr/bin/gradle /alternatives/bin/gradle ln -s /...
user avatar
  • 101
0 votes
0 answers
181 views

Calling a perl script from my bash script: Perl script won't follow symbolic links

There is a perl script, which for various reasons I cannot change, which does things. When I use it from the terminal, it works perfectly on regular files and symlinks: $ perl_script file_to_use I ...
user avatar
  • 131
0 votes
0 answers
24 views

How can I provide renamed symlinks automatically and instantly? (e.g. in a virtual filesystem)

In order to not to run into an XY-Problem, here is the purpose I want to achieve: I just want to have a folder with dynamically mangled names of an original source folder. original folder: ...
user avatar
0 votes
1 answer
43 views

Ask what to do when dragging & dropping a file in file managers other than Dolphin

Dolphin file manager is showing a list of options when dragging & dropping a file (copy/move/create link). Can the same options be made available in other file managers?
user avatar
  • 968
0 votes
1 answer
76 views

Configuring Sublime symlink

GOAL Invoke sublime from the OSX BASH command line with the same Ubuntu command: subl filename.txt shall open filename.txt in Sublime. DETAILS My instance of Sublime: /Applications/Sublime\ Text....
user avatar
  • 1,104
0 votes
0 answers
30 views

CP - Difference between --no-dereference (-P) and -d options [duplicate]

What is the difference between --no-dereference (-P) and -d options for the cp command? I know -d is the same as if both --no-dereference and --preserve=links were specified but what exactly does --...
user avatar
  • 136
0 votes
1 answer
55 views

Learning about Symbolic links

I am new to Linux, and am trying to understand symbolic links better. From what I understand, when you create a symbolic link to a file, and you remove the source file manually from the folder ...
user avatar
  • 129
1 vote
1 answer
10k views

How to resolve "Too many levels of symbolic links" on my Documents folder?

I am using the latest Deepin 15.11 and have just discovered that I cannot access my Documents folder (/home/username/Documents). In my file manager (Deepin File Manager) it simply says "You do not ...
user avatar
1 vote
1 answer
136 views

Delete all folders except which are mapped in symlinks [closed]

I need to delete folders that are not in use. There are a few symlinks which points to this folder. My requirement here is in 3 step. 1) Get all the available folders at top level which are not ...
user avatar
5 votes
1 answer
6k views

Why permission denied upon symbolic link update to new target with permissions OK?

On a Linux machine (a computing cluster, actually), I copied a folder from another user (who granted me permissions to do so using the appropriate chmod). This folder contains symbolic links to files ...
user avatar
  • 229
0 votes
2 answers
232 views

How can i create symbolic link for directory

I am trying to create symbolic link as below ln -s /home/scripts/logs /home/log The directory /home/log is already existing ,which cant be deleted. When i do this it creates the symbolic link as /...
user avatar
  • 125
0 votes
2 answers
208 views

What do letters for symlink options (-P -L -H) stand for?

I've summarized a list of commands that accepts symbolic link options according to SUSv4-2018ed: cd chgrp chown chmod cp find ln ls pax rm The full list also includes their defaults and other ...
user avatar
  • 429
6 votes
1 answer
3k views

Git - handle symlink as if it was a file

Is there a way to make git handle a symlink as if it was a file. If I just normally add a symlink like git add symlink, git just stores/controlls the path to the file, not the linked file. Is it ...
user avatar
  • 4,730
2 votes
3 answers
1k views

link config files

Problem I'm trying to move my config files from a .dotfiles folder, and link those files to the corresponding config path. Example In this example I'm trying $ ln -s ~/.dotfiles/nvim/init.vim ~/....
user avatar
0 votes
1 answer
207 views

Bash completion not working with symlink tree

Let's say that I have this tree architecture: ~/user |_____ dir0 |_____ symlink0 | |_______ somefile0 |_____ symlink1 |_______ somefile1 |_______ somefile2 If I'm doing this: cd ...
user avatar
  • 1
2 votes
1 answer
189 views

How to confirm if pathname exists?

How do I test whether a pathname exists? Previously I was using: realpath -e /some/path Which works except if /some/path is a broken symlink, in which case it reports that it does not exist. [ -e /...
user avatar
0 votes
1 answer
3k views

How do I find the source of the symbolic linked file in the Linux [duplicate]

I'm learning how to use linux on immersive labs and I've never coded before. Could someone please help me with this question I've been stuck on for a while now. It's related to file permissions in ...
user avatar
0 votes
1 answer
50 views

How can I remove symlinks within a folder and its subfolder?

I have a folder which contains symlinks. These symlinks causes problem with my encfs setup. I want to remove all symlinks from this folder and its subfolder. How do I do it?
user avatar
0 votes
2 answers
6k views

Python3 - Too many levels of symbolic links

Everytime I open up a terminal, I get the below message printed on the shell screen. bash: /usr/lib/command-not-found: /usr/bin/python3: bad interpreter: Too many levels of symbolic links Could ...
user avatar
1 vote
1 answer
2k views

Accessing a samba share, a symlink, on host, to a folder, appears as an empty folder [duplicate]

In a server, with Debian 10 and Samba 4.9, there are 2 HDs with this mount points: /hd1 /hd2 In /hd1 there is a folder that is Samba shared. /hd1/share Inside the share I decide to move a folder ...
user avatar
0 votes
1 answer
1k views

Symbolic links in Yocto

I'm trying to make a sym link in Yocto to enable a systemd service that is not enabled by default (apache2, by the way). Here my post process command: my_postprocess_function() { ln -s ${...
user avatar
  • 557
0 votes
1 answer
147 views

Canonical path without resolve symbol link

I have a symlink file like this, cd /tmp ln -s /bin/ls /test Now I would like to resolve ../test to /test, but readlink command also resolves the symbol link for me, e.g readlink -f ../test ../test ...
user avatar
  • 50.7k
2 votes
2 answers
532 views

symbolic link where link receives updates and original does not

Is it possible to have, assigning groups or ownership, something like ln -s original link where the original folder will be updated, all link folders will receive the new files, but any change to ...
user avatar
8 votes
1 answer
948 views

Can I create a one way symlink?

I want to create a one way symlink i.e. I can use it to go to the destination directory but I cannot go back. Let's say there is a directory called D with two subdirectories S1 and S2. I want to ...
user avatar
  • 353
0 votes
2 answers
490 views

Permission through symbolic link

The user (33) is not able to read the web.{crt,key} files. Do I have to give permission all through the links or is there a clever way to do this? # ll /mnt/efs/cert total 20 -rw-r--r-- 1 33 tape ...
user avatar
  • 2,045
2 votes
2 answers
473 views

Symlinked directories and output redirect

When I run the following command, where symlinked-dir is just that - a symlink to another directory, cat complains that there is no such file. There is, indeed, no such file - it's created in the ...
user avatar
0 votes
0 answers
219 views

sysfs folder symbolic link behavior

I encountered this behavior that I can't explain. In the sysfs, there is a symbolic link but it looks impossible to me: me@test:/sys/block/sde$ ll ... lrwxrwxrwx 1 root root 0 Oct 1 2019 device -...
user avatar
  • 467
0 votes
2 answers
1k views

Symlink not working

I have two folders, /test/opt and /test2/opt. I want to create a symbolic link so that when application will write something to /test/opt it will go to /test2/opt. I tried creating a symlink using ...
user avatar
  • 3
4 votes
3 answers
554 views

Hardlink that "split" when a file changes

Is it possible (in classical ext4, and/or in any other filesystem) to create two files that point to the same content, such that if one file is modified, the content is duplicated and the two files ...
user avatar
  • 2,116
0 votes
1 answer
44 views

When writing a tool named "foo", why symlink PROJECT/bin/foo to ../libexec/foo

I've been learning bash and unix by reading source code. This particular bit I don't understand why it was done. The main tool executable is a symbolic link. Whats the benefit here? source
user avatar
78 votes
14 answers
7k views

Tips for remembering the order of parameters for ln?

I have used ln to write symbolic links for years but I still get the order of parameters the wrong away around. This usually has me writing: ln -s a b and then looking at the output to remind ...
user avatar
  • 2,145
2 votes
1 answer
1k views

Realtek Firmware Installation Error

Im working on an odroid HC2, which runs Debian 9 "Stretch". In my logs, I can see that there is a driver missing for Wifi: usb 1-1: request_firmware(rtlwifi/rtl8192eu_nic.bin) failed So i ...
user avatar
  • 69
-1 votes
1 answer
39 views

How do I use a script that contains paths to other files regardless of its location?

I have a script stored in a particular directory nested deep within other directories. a/long/path/to/the/script.sh I created a hard link to the script from my desktop, so it might be easier to ...
user avatar
0 votes
1 answer
40 views

Link different CIFS mounts of different users to the same location

Many users on the client each have personal CIFS password-protected mounts to the server in their respective home folder. E.g., /home/user1/server/share1 (mounted with credentials for user1) /home/...
user avatar
  • 101

1 2 3
4
5
22