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
2answers
51 views

Create Symbolic Link for Directory

I create a symbolic link for a directory, What links are the files in the directory and subdirectories? hard link or symbolic link?
0
votes
1answer
15 views

How to have symlink to content of source up to date?

So, by doing ln -s /my/source/* ./ I created a link to content of source but changes in source aren't reflected in the target. For example, when I create new folder in source it's not being shown in ...
3
votes
2answers
90 views

How do I copy files across/outside symbolic links? (dest) [duplicate]

Suppose I have a file system like this: /home/me/dir1/dir2/dir3/dir4/dir5/dir6/file1 Then in /home/me/dir1, I create a symbolic link: $ cd /home/me/dir1 $ ln -s /home/me/dir1/dir2/dir3/dir4/dir5/...
0
votes
1answer
76 views

Repair broken symlinks to new location

I moved from an old webserver to a new one. Now some symlinks not working, because we changed the folder structur. I want to know if there is a easy way to repair these links? I found the links with ...
0
votes
0answers
22 views

Remove file when rm its symlink

I have storage folder which contains 2 folders - files and tags. files folder structure: 0 1 2 3 etc. Folders 0, 1, 2, 3 contains hashed named files. tags folder structure: private public admin ...
3
votes
1answer
693 views

How can I make realpath never resolve symlinks?

I'm looking for a command to return the absolute path of a file, without resolving symlinks. In general, realpath does this well. $ mkdir /tmp/test; cd /tmp/test $ mkdir foo $ ln -s foo bar $ ...
1
vote
0answers
68 views

rsync does not follow symlink

I want to copy one file from one Linux server to another one: Firstly, I've checked the following: ls -l /etc/letsencrypt/live/example.com/fullchain.pem lrwxrwxrwx 1 root root 46 mar 28 19:50 /etc/...
0
votes
1answer
331 views

Problem with initializing user while installing MySQL Server

I'm trying to install my first community MySQL server instance and seems to be stuck on symlink not working. I'm following the procedure for installing MySQLfrom Installing MySQL on Unix/Linux Using ...
14
votes
2answers
656 views

Can I setup a symlink to the most recent folder?

I have some directories: drwxr-xr-x 10 shamoon staff 320B Mar 20 10:05 dryrun-20200320_140542-1vbczul4 drwxr-xr-x 10 shamoon staff 320B Mar 20 10:06 dryrun-20200320_140605-uze15jta drwxr-xr-x ...
0
votes
1answer
218 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 ...
1
vote
0answers
29 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. ...
0
votes
1answer
68 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. ...
0
votes
1answer
8k 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: ...
-3
votes
1answer
424 views

Too Many Symbolic Links Encountered

This is my script #!/data/data/com.termux/files/usr/bin/bash #--------------------------------------------------------------------------------------------------------------# FOALL() { export TFUB="/...
0
votes
1answer
478 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/...
1
vote
2answers
54 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 -...
0
votes
1answer
38 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 ...
0
votes
1answer
34 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/...
1
vote
1answer
59 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 ...
1
vote
1answer
32 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 ...
0
votes
1answer
174 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 ...
0
votes
0answers
87 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/...
0
votes
1answer
33 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?
0
votes
1answer
28 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) "...
0
votes
0answers
35 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 /...
0
votes
1answer
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 /...
0
votes
0answers
115 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 ...
0
votes
0answers
19 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: ...
0
votes
1answer
28 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?
0
votes
1answer
61 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....
0
votes
0answers
27 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 --...
0
votes
1answer
53 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 ...
1
vote
1answer
7k 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 ...
1
vote
1answer
84 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 ...
4
votes
1answer
3k 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 ...
0
votes
2answers
80 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 /...
0
votes
2answers
147 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 ...
4
votes
1answer
2k 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 ...
2
votes
3answers
664 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 ~/....
0
votes
1answer
104 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 ...
1
vote
1answer
127 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 /...
-1
votes
1answer
2k 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 ...
0
votes
1answer
33 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?
0
votes
1answer
4k 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 ...
1
vote
1answer
1k 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 ...
0
votes
1answer
800 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 ${...
0
votes
1answer
89 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 ...
2
votes
2answers
287 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 ...
8
votes
1answer
821 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 ...
0
votes
2answers
314 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 ...

1 2
3
4 5
21