Questions tagged [symbolic-link]

A symbolic link or symlink is a special type of file that contains a reference to another file or directory as an absolute or relative path. For most operations, symbolic links are transparent and the read or write operations on symbolic link files are redirected to the files that symbolic link files link to.

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

Having trouble moving symlinks from backup to boot partition

The context I have a dual-boot Ubuntu (Jammy Jellfish)/Windows laptop (Dell XPS 9550). My /boot partition was too small to support an update, so I used GParted to attempt to resize it. However, I ...
Alexander Nied's user avatar
0 votes
1 answer
19 views

I just upgraded to 22.04 LTS and all my symlinks are broken / drives mount with new names

I just tried to upgrade to 22.04 (Jammy Jellyfish) (from previous LTS) There were some issues, it said it couldn't do the whole thing, but it could download some packages. Eventually I seem to have ...
interstar's user avatar
  • 243
1 vote
1 answer
34 views

Why does `/etc/alternatives` being a symlink affect `apt`?

I've got the following Dockerfile: FROM ubuntu:22.04 # Step 1 RUN apt update && apt install -y wget # Step 2 # All your persistent configs are in /root. RUN mkdir -p /root/.symlinks/etc \ ...
user2468842's user avatar
1 vote
0 answers
26 views

Catfish search output displays filenames in symlinked folders as though they are duplicate files

I'm using Dolphin and Catfish in Ubuntu Studio. I'm looking for a way to get Catfish to either exclude files in symlink folders from search results, or to display them so it is obvious that they are ...
user311397's user avatar
0 votes
0 answers
35 views

I moved the /var to a partition to free space but don't know how to link it

I recently setup Ubuntu 23.04 but it was setup wrongly so I ran out of space it was supposed to be installed in both SSD and HDD but it only used the SSD one so I started moving data manually so that ...
Mostafa Ahmed AbdulRazik's user avatar
0 votes
0 answers
21 views

Making start link for program

I'm trying to make a clickable startup link for a new version of Arduino IDE, which is supplied as an AppImage file. I can start the file by selecting it and pressing return. I have created a link to ...
Jack O'Flaherty's user avatar
0 votes
1 answer
25 views

Symbolic link to read a syfs directly

Is there a way to read a sysfs using a symbolic link if I want to read a sysfs, for example, cat /sys/bus/usb/gps/time we usually type the cat followed by sysfs path and then enter Is there a way to ...
DEV's user avatar
  • 58
0 votes
2 answers
28 views

I want to copy my document directory, complete with sub-directories plus contents, from an old drive across to a new drive

I tried creating symlinks to the source and target drives using: sudo ln -s /media/phil/4A05-B4F6 /olddisc sudo ln -s /media/phil/3117e488-bf89-426e-a606-55e8397cf1ee /pcdisc I changed the directory ...
PhilR's user avatar
  • 1
0 votes
0 answers
83 views

Set LD_LIBRARY_PATH for with symlinks

As per the Ubuntu documentation - the only way to permanently set LD_LIBRARY_PATH is by adding a conf file to /etc/ld.so.conf.d/ If I manually run export LD_LIBRARY_PATH=~/nextcloudapp/squashfs-root/...
Terence Eden's user avatar
  • 1,726
1 vote
1 answer
144 views

Symlink on /usr/local/bin/ not working

Can someone explain why this is not working??? I don't get it. $ echo $PATH /usr/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games As you can see, I have /usr/local/bin in there. Then the ...
Mariano Martinez Peck's user avatar
-3 votes
1 answer
37 views

symbolic link command in Ubuntu [duplicate]

I wish to know about usage of Symbolic Link please. I saw it in "The Linux Command Line" Fifth Internet Edition Sincerely, Davood
david's user avatar
  • 3
2 votes
2 answers
111 views

Error 'update-initramfs: 175: awk: Too many levels of symbolic links' when using APT

I'm on Ubuntu 22.10, when trying to run apt or apt-get with {install|remove|auto-remove} I got the following error: Reading package lists... Done Building dependency tree... Done Reading state ...
yazzy's user avatar
  • 21
0 votes
0 answers
9 views

My terminal crashes with this error "ln: failed to create symbolic link '/usr/bin/python': File exists" [duplicate]

I'm not sure why it's happening. tried to add more symbolic links or change it but it is not happening, it's giving another error that there are too many symbolic links. some more issues I'm running ...
error's user avatar
  • 9
0 votes
0 answers
48 views

what is the correct way to use folders from another /home partition

I currently have Kubuntu 22.04 installed in partition A, and /home installed in partition B. I recently created partition C and installed Ubuntu 22.04 with gnome. Partition C has root and home ...
JackDaniels's user avatar
6 votes
2 answers
1k views

Is my /var directory OK, since /var/run isn't a symlink?

I am running Ubuntu 18.04. When I run: ls -la /var I get the following: drwxr-xr-x 10 root root 4096 Jan 2 15:46 . drwxr-xr-x 27 root root 4096 Jan 15 06:25 .. drwxr-xr-x 10 root root 4096 Jan ...
ammcom's user avatar
  • 183
0 votes
1 answer
56 views

How to create a shortcut to a document on Lubuntu desktop?

I am trying to create a shortcut for a word document (.docx) on Lubuntu desktop (22.04 LTS). I thought I could create a symlink as follows: ln -s a.docx ~/Desktop/ The symlink does get created and ...
tinlyx's user avatar
  • 3,084
0 votes
0 answers
242 views

How to create a symbolic link to certain files within a directory?

I want to create a symbolic link from Dir1, but only for certain files. Let's say I have these files within Dir1: file_1.a file_2.a file_2.a.b Now I want to create a symbolic link, but only to those *...
marius's user avatar
  • 1
0 votes
1 answer
99 views

Why is the size of a symlink equal to the size of it's path string?

I've read a different question regarding this where the answer was that a symlink stores the name and target + a few bytes for other metadata. Using "ls -l dir" on ext4, why does the symlink ...
Navy's user avatar
  • 3
0 votes
0 answers
44 views

.sh links stopped being executed by double click in Kubuntu

I am starting to experience a weird thing on Kubuntu. Double clicking on .sh links stopped working (expecting it to run), but double clicking on actual .sh file works. System information: Double ...
Wortig's user avatar
  • 101
0 votes
1 answer
100 views

awk command not working for rbash user

I have created a rbash user(restricted user) vega and I have created softlinks for the following commands-: awk,ls,free,top etc. Am trying to run a script for resource utilization and some of the ...
Praveen Kumar's user avatar
0 votes
1 answer
330 views

Permission denied when attempting to cd into a symlinked folder over samba

I currently have a couple of Ubuntu servers that each contain 13 hard drives that I need to make accessible to each other over a samba network. Currently each drive is mounted as a separate share, ...
Qwinn's user avatar
  • 21
-1 votes
1 answer
84 views

Mount internal hdd so as i can symlink my home subdirectories like downloads, documents to it

I am trying to dual boot my machine. Machine has a 128gb ssd and 1TB HDD. I gave 100 gbs of HDD for Windows(As i use it rarely). For ubuntu 20.04,(which i am installing. Not yet installed) i am giving ...
samrat's user avatar
  • 1
0 votes
1 answer
497 views

collect2: fatal error: cannot find ‘ld’ compilation terminated

I accidently overwrote the ld file in /usr/bin. I then removed the file and reinstalled binutils. Now I get the error in the title when I try to compile a C++ file with g++. The ld file is present in ...
prism's user avatar
  • 3
0 votes
1 answer
679 views

Getting error "Too many levels of symbolic links" when trying to navigate ubuntu

I'm just trying to navigate from the root to my desktop in ubuntu, but anytime I try to put "cd Desktop/" (relative path) Or even "cd ~/Desktop" (absolute path), I keep getting the ...
Samantha Walker's user avatar
-2 votes
1 answer
60 views

Is there an OS independent URL file?

I'm sure you know the .lnk or .url files from Windows that can be used to launch your browser with a given target website. In Ubuntu, I know there are .desktop files, but I personally feel like they'...
990il's user avatar
  • 1
2 votes
2 answers
700 views

Duplicate mount-points for external disks after 22.04.1 upgrade

Just did an upgrade from 20.04 to 22.04 with my external storage disks connected. The system generated mount-points: 'Computer'/media/'homefolder'/4TB-WD-ElementsS - turned into 'Computer'/media/'...
bettererer's user avatar
17 votes
4 answers
4k views

Remove all symlinks in a folder

How do I remove all symlinks in a folder (dozens of them) at once? It's not practical to insert every single one of them by hand when using unlink or rm.
Nuno Fonseca's user avatar
0 votes
1 answer
63 views

Udev symlink is changing data

I have a udev rule that identifies a Spektrum RC dongle and symlinks its hidraw file to a custom one. This is the udev rule I am using. ACTION=="add", ATTRS{idVendor}=="0483", ...
Matthew Starkey's user avatar
0 votes
1 answer
131 views

do-release-upgrade from 16.04 failing due to "Your python install is corrupted."

When trying to upgrade from 16.04 LTS via do-release-upgrade, I was getting the following error: Your python install is corrupted. Please fix the '/usr/bin/python3' symlink. Trying the many ...
Mark K Cowan's user avatar
0 votes
0 answers
438 views

symlink error with chmod

After installing fastqc, tried setting the permission using: chmod +x ~/miniconda3/bin/fastqc But got the error: chmod: cannot operate on dangling symlink '/home/usernname/miniconda3/bin/fastqc What ...
Gabriel's user avatar
0 votes
1 answer
64 views

Help file appered after a System Crash

I just tried to open a very large .csv File which couldnt be opened in LibreOffice due to to many numbers of rows. I restarted my PC and now I got a File named 'help' in my home folder if i try to cd ...
Dnns95's user avatar
  • 19
0 votes
1 answer
22 views

Link directory to another directory to ccopy files

I have a folder: /share/public I am working in the folder: /home/john/workingfolder It means that currently I am in the "workingfolder". I would like to send files to /share/public but ...
Carlitos_30's user avatar
0 votes
0 answers
357 views

How to link to different version of a shared object (.so) on different version of Ubuntu?

I have developed a program which links to ncurses-dev and I made a .deb installer for it. On Ubuntu 18, my main binary links to libncurses.so.5, but on Ubuntu 20, libncurses.so.6 exists instead of ...
Felix F Xu's user avatar
2 votes
1 answer
3k views

GPIO Failed to create symbolic link. Operation not permitted

I'm trying to create a symlink to an existing gpio symlink in the /sys/class/gpio/ directory, and I'm getting the following output: ln: failed to create symbolic link '/sys/class/gpio/MyLink': ...
jpb647's user avatar
  • 31
2 votes
0 answers
391 views

Cannot locate executable through symbolic link

I'm new to Linux/Mac OS in it's entirety, but I've learned a lot the last few days. My NativeScript app builds using the python command, but my system only has python3 installed. That is all fine, and ...
Koen's user avatar
  • 121
0 votes
1 answer
70 views

What kind of directories are these?

I'm looking at a directory that was created for backups. One of the subfolders is the root of a Git repo, and contains the .git folder. That folder also contains links to other folders in the system. ...
TonyG's user avatar
  • 187
1 vote
0 answers
98 views

Ubuntu 22 Firefox fails to start with symbollically linked home directory

On installing Ubuntu 22 in a separate new partition on a machine previously running Ubuntu 20, I have replaced the installed /home/chris with a symbolic link to my old /home/chris directory in another ...
user247913's user avatar
0 votes
0 answers
173 views

My Ubuntu 20.04 spits out "logger: socket /dev/log: No such file or directory"

I'm a newbie to Ubuntu. I am trying to run a script that needs access to /dev/log when the following error occurred "logger: socket /dev/log: No such file or directory". Any ideas on how to ...
Charles's user avatar
0 votes
1 answer
117 views

Inconsistent UDEV behavior 'dev/video14'

I am trying to write a udev rule that creates a symlink /dev/video14 that points to the /dev/video index of my usb camera, so that I can map it to the same index consistently. I currently have the ...
jpb647's user avatar
  • 31
2 votes
0 answers
643 views

nano: no version information available

The more I try to fix this problem the worse it gets. I have conda installed, and I think its related to this problem. Every time I try to open nano, I get this error message - before today it was ...
user2472414's user avatar
0 votes
0 answers
361 views

Get a udev symlink registered as a serial in softwares

I created udev rules to have specific symlinks to my USB device. The USB device is a serial device that usually comes up as ttyUSB0 or ttyUSB1. I made the symlink to be sure I have always the same ...
noeldum's user avatar
0 votes
0 answers
256 views

how to create symlink available from anywhere

How can I create symlink located at \\100 that points to /media so that when users enter cd \\100 they get redirected to /media and it doesn't matter in which directory it was entered? Thanks in ...
Peťo Build's user avatar
0 votes
0 answers
108 views

Multiple systemd broken links, system won't boot

On a reboot today, the system (Ubuntu Desktop 20.04.4) hung upon reaching the graphical target. Conspicuously, several services failed to start ahead of this, including snapd. Booting the machine to ...
ebsf's user avatar
  • 449
1 vote
1 answer
192 views

is changing symlinks for "linux from scratch" harmful?

I started linux from scratch for educational purpose. In preparing section it says: Bash-3.2 (/bin/sh should be a symbolic or hard link to bash) Bison-2.7 (/usr/bin/yacc should be a link to bison or ...
hepl's user avatar
  • 27
0 votes
1 answer
374 views

libc.6 is a symlink to libc-2-31?

I'm running ubuntu 20.04, and I'm tryying to run a python pwn script that has the following line: libc = ELF("./libc.so.6") Which fails with: No such file or directory: './libc.so.6' So I ...
Grazosi's user avatar
  • 109
0 votes
1 answer
2k views

Issue with apt-get upgrade in Ubuntu 21.10 on Raspberry PI 4: Failed to create symlink, Operation not permitted

Can't upgrade Ubuntu 21.10 on my Raspberry PI 4 via apt-get upgrade. There is the full log: ubuntu@ubuntu:~$ sudo apt-get upgrade -y Reading package lists... Done Building dependency tree... Done ...
Alexey's user avatar
  • 1
0 votes
2 answers
562 views

delete symlink that points to itself

I accidentally created a symbolic link that points to itself in the same directory. I tried ln -sfn and rm -f. I'm using Ubuntu 20.04. It's in my Pictures folder: picture_link -> picture_link Is ...
Roger Trussell's user avatar
0 votes
2 answers
2k views

udev does not create symlink

I am trying to give my sensor device a static name. I opened a file called 99-usb-serial.rules in /etc/udev/rules.d and wrote the following rule: KERNEL=="ttyACM0",KERNELS=="1-1",...
sovon's user avatar
  • 101
2 votes
0 answers
27 views

Is using snap and using "move to trash" mutually exclusive when using home directories on alternative partitions

I slowly started to accept that Ubuntu is forcing its users to use snap instead of apt (which I've used for 20+ years and like). Having been around for a few years, I'm offloading my home directories ...
user1561217's user avatar
0 votes
1 answer
550 views

Make Symlink to folder on USB stick to be owned by www-data group

I have a website hosted locally on an Apache2 at my Ubuntu machine, (Kubuntu 20.04). There are some audio files on a folder at a USB stick at the path /media/MyUserName/KINGSTON/audio while the public ...
SaidbakR's user avatar
  • 725

1
2 3 4 5
13