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.
628
questions
0
votes
0
answers
47
views
Too many levels of symbolic links - moving a Windows installation
I have an NTFS drive containing a bootable Windows 10 drive C installation. In Ubuntu 22.04, I am using Files (is it still Nautilus?) to move that installation to another NTFS drive. Within that ...
1
vote
0
answers
70
views
Home folders are appearing on the desktop
Every time I login to Ubuntu, I see all the Home folders: Documents, Downloads, Videos, Music, etc. are all appearing on the desktop with red cross mark. It is not a shortcut, if I delete them on the ...
0
votes
0
answers
38
views
gnome-terminal doesnt open [duplicate]
I decided to update python from 3.10.? to 3.12.0 (downloaded and compiled), after that i noticed my terminal doesn't start. Tried several solutions but no luck, i run terminal commands in visual ...
0
votes
1
answer
61
views
How to create alias for a sub-folder to point to the parent folder?
I need to make a folder with name ./public/sop behave like it is ./public.
I tried ln -s ./public/ ./public/sop and there were no errors. But it doesn't work. ls ./public/sop does not show the other ...
0
votes
1
answer
30
views
Weird Arrow elbems showing up in Caja
Wierd Arrow emblems are showing up in Caja, also in ls in Terminal these directory are highlighted light blue, but it seems that they are not a link at all.
Output of ls:
Gui:
I'm using Ubuntu MATE ...
1
vote
1
answer
146
views
Bulk rename symlinks in home folder?
When installing Linux on a new SSD, I created a user newuser with a different name than on the old system olduser.
I successfully rsynced all the files from the old to the new SSD's home partition.
...
0
votes
1
answer
172
views
Firefox can't read or write to directories symlinked across partitions
Using Ubuntu 22.04, I installed firefox from the mozillateam ppa (current installed version is 118.0.1). I have data stored on /dev/sda1, mounted as /data, and Ubuntu 22.04 installed on /dev/nvme0n1p2....
1
vote
0
answers
181
views
Fatal error with usrmerge while upgrading to 22.04: duplicated locations of libssl and libcrypto files
I am finding what it seems a common issue when upgrading Ubuntu versions - a usrmerge fatal error which also prevents the correct symlink assignments.
An indication that there was something wrong with ...
-3
votes
1
answer
94
views
Only an expert can solve this [closed]
I tried to mount my /dev/sdc HDD to /home.
Then I tried to create a symlink to /home because my sdc HDD is 16tb.
Basically, I got what I wanted, but now everything is complicated:
wget doesn't work.
...
2
votes
0
answers
139
views
Empty XDG user directories turn into symbolic links
For some reasons, when an XDG user directory (i.e., Desktop, Downloads, Templates, Public, Documents, Music, Pictures, or Videos) is empty, it turns into a symbolic link after some time. Below is an ...
0
votes
0
answers
258
views
error opening directory too many levels of symbolic links
Ubuntu 22.04. It's giving an error opening directory too many levels of symbolic links. Please help
1
vote
1
answer
118
views
Files app aka Nautilus shows lots of strange file icons and is slow
After I ran fsck the Files app aka Nautilus in Ubuntu 22.04.3 LTS always takes approx. a minute to startup and then shows approx. 50-100 file icons/symbols in the left sidebar.
How can I get rid of ...
1
vote
2
answers
161
views
Changing the location of Trash to a different disk?
In a computer with Ubuntu 22.04, I have the OS installed in a SSD (first disk) and I have a 10Tb Hard Drive (second disk) for large storage. I am trying to find what is the best way to have the Trash ...
2
votes
2
answers
2k
views
home/user/Desktop and Public Folders Show as Type Link (broken) (inode/symlink)
Ubuntu 22.04 LTS asked me for an update which I did and apparently everything went ok but upon restarting all my home folders appeared in my Desktop.
Looking into my home folder I found out that home/...
0
votes
0
answers
916
views
Too many levels of symbolic links
enter image description here
I have installed Ubuntu 22.04. It's giving an error opening directory too many levels of symbolic links as shown in attachment.
I am a newbie. Please help.
7
votes
3
answers
1k
views
Home directories turned into symbolic links without telling me the reason
it was a normal day for me like any other day and I decided to open my Laptop for work and what I see the first is the following:
Then, I tried to find out what happened to these folders through the ...
0
votes
1
answer
54
views
How to create a relative symbolic link for a file
I'm trying to create a link to a JS file. If I type ln -s ./script.js ./scriptLink it successfully creates a working link. But If I type ln -s ./script.js ../scriptLink, the link that's created has ...
0
votes
0
answers
276
views
node_modules installation on external SSD fails with "EPERM" error when installing packages
I'm trying to install Node.js packages on an external SSD connected to my Ubuntu operating system. However, I'm encountering an error during the installation process. Here are the details:
Operating ...
1
vote
0
answers
77
views
symlink to a bash script does not start on system startup
As per the subject, the symlink pointing to a bash script is not executed when starting Kubuntu 22.10.
If I click on the symlink from Dolphin everything works, the original script is executed.
andrea@...
0
votes
1
answer
454
views
NFS mount best practice
Say I have some data on an NFS server that is currently mounted to /mnt/data on a client but I want to have it accessible at /home/user/data instead, both server and client are running 22.04.
Would it ...
0
votes
1
answer
39
views
miRDeep2 installation showing "ln: failed to create symbolic link './randfold': File exists" error. randfold is an essential for the miRDeep2 package
miRDeep2 installation showing
ln: failed to create symbolic link './randfold': File exists" error in wsl.
randfold is an essential for the miRDeep2 package. Please suggest a solution for ...
0
votes
1
answer
81
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 ...
0
votes
1
answer
107
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 ...
1
vote
1
answer
74
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 \
...
1
vote
0
answers
56
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 ...
0
votes
0
answers
56
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 ...
0
votes
0
answers
48
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 ...
0
votes
1
answer
51
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 ...
0
votes
2
answers
72
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 ...
0
votes
0
answers
535
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/...
2
votes
1
answer
797
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 ...
-3
votes
1
answer
630
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
2
votes
2
answers
397
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 ...
0
votes
0
answers
20
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 ...
0
votes
0
answers
64
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 ...
6
votes
2
answers
2k
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 ...
0
votes
1
answer
99
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 ...
0
votes
0
answers
606
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 *...
0
votes
1
answer
309
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 ...
0
votes
0
answers
55
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 ...
0
votes
1
answer
172
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 ...
0
votes
1
answer
489
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, ...
-1
votes
1
answer
181
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 ...
0
votes
1
answer
918
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 ...
1
vote
1
answer
2k
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 ...
-2
votes
1
answer
75
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'...
2
votes
2
answers
1k
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/'...
20
votes
4
answers
10k
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.
0
votes
1
answer
116
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", ...
0
votes
1
answer
332
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 ...