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
1
vote
0answers
13 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
29 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 ...
13
votes
2answers
537 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
32 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
27 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
13 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
160 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
95 views

Too Many Symbolic Links Encountered

This is my script #!/data/data/com.termux/files/usr/bin/bash #--------------------------------------------------------------------------------------------------------------# FOALL() { export TFUB="/...
0
votes
1answer
27 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
36 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
25 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
17 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
50 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
29 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
25 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
28 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
0answers
17 views

How to share a samba folder with symlink?

I have a Samba server which contains a list of folders, eg: projects - 2020 - tesla - 2019 users - john - wick The directories available in projects can be viewed only by john, what ...
0
votes
1answer
28 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
18 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
29 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
81 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
57 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
17 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
17 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
0answers
14 views

How to overwrite existent folder by create a symbolic link with the same name?

I'm trying to create a symbolic link to overwrite an existent folder. I know I could simply delete the folder before create the link, however I'm looking for a ln option to do this. By now I'm ...
0
votes
1answer
12 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
22 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
50 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 ...
0
votes
1answer
368 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 ...
2
votes
0answers
31 views

Delete all folders except which are mapped in symlinks

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
77 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
43 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
80 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 ...
0
votes
1answer
118 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 ...
0
votes
0answers
50 views

Azure + Apache = Symbolic link not allowed or link target not accessible

I have got a CentOS 7+ and a storage account in Azure - File Share: //<shared_name_Azure>/repositorio /mnt/repositorio cifs nofail,vers=3.0,credentials=/etc/smbcredentials/rgtest001diag.cred,...
1
vote
3answers
56 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
34 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
59 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
159 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
25 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
657 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
96 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
0answers
34 views

How to list the contents of a directory using a symbolic link?

I'm trying to figure out how to list the contents of a directory using a symbolic link to that directory. I read the answers here - Show contents of symbolic link The problem I'm having is just that ...
0
votes
1answer
91 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
17 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
86 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 ...
7
votes
1answer
559 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
89 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
vote
2answers
49 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 ...
0
votes
1answer
42 views

How to set PATH to symlinked directory in bash csh

I have the directory /data/bin and in my home directory is symlink /home/myuser/bin -> /data/bin I have set PATH into the /home/myuser/bin/ When /home/myuser/bin is the directory, the PATH works fine,...

1
2 3 4 5
19