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.
629
questions
1
vote
1
answer
419
views
Am I using the "ln" and "unlink" commands correctly?
I have several JavaScript projects that use the same set of utility scripts.
Today after copying (cp) the library folder for the dozenth time, I did some research I found the ln && unlink ...
1
vote
2
answers
77
views
Ubuntu Installation on dual-Harddisk computer
I guess many might have asked this. i have a prob which i couldn't find answer for.
My laptop has 256G SSD and 1 TB HDD. Windows boots from SSD. I installed Ubuntu within 30GB space in the HDD, with ...
2
votes
0
answers
446
views
cp -l instead of cp -s does not work?
I have a folder symlink to core files and a folder with my improvements like this:
core/ -> /some/distant/root/directory/core/
script_a.py
special/script_b.py
special/script_c.py
core-improvements/
...
0
votes
0
answers
1k
views
How to create symbolic link in ubuntu 19.04
I have a bug in my steam installation that requires me to create a symbolic link, this is the command i'm using:
ln -s SteamApps steamapps
I get this error message: failed to create symbolic link: ...
1
vote
3
answers
3k
views
Symbolic link one directory of files to another
ka@karl:~$ ls ./test_source_sym
file.txt
ka@karl:~$ ln -s ./test_source_sym ./test_sym/dir
ka@karl:~$ ls -la ./test_sym/dir
lrwxrwxrwx 1 karl karl 17 jun 28 09:56 ./test_sym/dir -> ./...
1
vote
0
answers
2k
views
Processing triggers for libc-bin (2.28-0ubuntu1) ... /sbin/ldconfig.real: /usr/lib/libgraph.so.1 is not a symbolic link
Can someone help me with this problem i have been facing this problem since i have installed libgraph-1.0.2 in my Ubuntu 18.10. Actually i was trying to use graphics.h library in my program so while ...
22
votes
1
answer
43k
views
Is it possible to change the permissions for the symbolic link?
I am trying to change the permissions for the symbolic link.
As how you can see in the image, the soft link has 777 permissions, but i would like to change that.
I tried to change that by:
chmod ...
0
votes
1
answer
3k
views
Why is there a symlink from /usr/local/bin/ to /usr/sbin?
What is the purpose of this symlink?
sudo ln -s /usr/local/bin/snort /usr/sbin/snort
It was a part of the installation process for snort. Now I do not know if it is because it is supposed to be ...
4
votes
1
answer
5k
views
Can't symlink to machine ID
I started using linux yesterday and I'm trying to get a feel for the operating system. I've recently tried to download and install google chrome but upon launch I get this error:
Error: /etc/machine-...
1
vote
1
answer
3k
views
Can't cd to directory for which group has permissions
I have a /home/shared_space/ directory containing symlinks to all user /home/<user>/Projects/ directories.
e.g.
/home/shared_space/johnny -> /home/johnny/Projects/
/home/shared_space/...
1
vote
1
answer
1k
views
Broken symbolic link while creating link from source directory
I created a symbolic link for a file named zotero.desktop to be placed in the directory ~/.local/share/applications, as below:
<At source file's directory>$ ln -s zotero.desktop ~/.local/share/...
0
votes
1
answer
11k
views
input/output error when copy or link a file containing escape characters from home directory to a nfs system
Suppose that I have a home directory /home/mydir(not have sudo permission),which have some file contain time format (YYYY-MM-DD_HH:MM:SS) in filename, when I try to copy or link these files to a nfs ...
3
votes
1
answer
2k
views
Is there a command or technique to 'concreteify' symlinks? (Copy the files so they're no longer a symlink)
I'm using lerna to manage a multipackage monorepo.
It works well in my development environment, where I can be working on multiple packages that have dependencies on each other and the code keeps ...
21
votes
2
answers
28k
views
How to create a read-only link to a directory?
One of my scripts dynamically creates a symlink like so:
ln -s /home/hosting/projects/images /home/hosting/projects/demo/images
How can I make it so that the access through link is read-only?
1
vote
1
answer
304
views
File Dialog box does not see symbolic links
I have my "Documents" folder linked to a directory on a different hard drive.
Freemind cannot see/access/or follow the link from its file open/save dialog boxes. If I filter the dialog box on "all ...
1
vote
0
answers
66
views
Is it possible for bash to recognize hardlinks or symlinks in $PATH?
Terminal, WSL
For example, I currently have GHC's executable in ~/bin/ghc/bin/ghc, but my $PATH only specifies /home/user/bin. I have tried running ln ~/bin/ghc/bin/ghc ~/bin/ghc-usr, but bash still ...
11
votes
3
answers
11k
views
What's the difference between ln -s and mount --rbind?
What's the difference between:
ln -s /mnt/extra/home /
and
mkdir /home
mount --rbind /mnt/extra/home /home
10
votes
2
answers
83k
views
How do I break or delete a symbolic link?
I created a link using the following command.
sudo ln -fs /usr/share/icons/Cyclone/cursor.theme etc/alternatives/x-cursor-theme
I now want to delete this link, as it seems to create some problems. ...
0
votes
0
answers
59
views
Permissions error on mounted symbolic link [duplicate]
Ive created a symbolic link to a mounted NFS drive to Apache's "images" folder:
ls -ltr /var/www/html/images
/var/www/html/images -> /mnt/mount_name/images
Edit:
Ive added the namei command ...
0
votes
0
answers
72
views
Question related to symlinks
I have a dual boot system of ubuntu and windows. So to access files of ubuntu on windows I am going to create symlink of the required folders to an ntfs partition.
So my question is can I create the ...
2
votes
2
answers
3k
views
Extend using another drive [duplicate]
I have a very small drive holding my OS. it's built in to my device, so I can't swap it out for a better one.
I would like to do something like use symbolic links, but rather than replacing them, ...
0
votes
1
answer
574
views
udev symlink doesn't point to /dev file
I am trying to create a udev rule to make a symlink to a usb modem when I plug it in. I expected the link to point to /dev/ttyACM0, however when running ls -l I get the output:
lrwxrwxrwx 1 root ...
1
vote
0
answers
464
views
Error during update : /usr/lib/libbrcolm2.so.1 is not a symbolic link
Hope you can help me I am using Ubuntu 18.04 (64bit) and I am a Newbie so please answer in layman terms.
When I do sudo apt-get update or sudo apt update I get the following message at the end:
...
1
vote
1
answer
230
views
Error: Cannot find -lNrrdIO
I am trying to install NrrdIO on Ubuntu 18.04, to run Marching Cubes to segment medical images. This is the link from which I'm trying to run it.
http://web.cse.ohio-state.edu/research/graphics/...
0
votes
1
answer
2k
views
Failed to create syimbolic link error
When I execute a .sh file, I get this error:
ln: failed to create symbolic link '/lib/ld-lsb.so.3': File exists
How can I solve it? I'tried to give a look to similar posts, but I can't make it work.
2
votes
0
answers
145
views
Can a symbolic link provide default arguments?
I'm playing around with the SoX, an audio conversion program. After installation I notice that it creates a symbolic link /usr/bin/play -> sox. I notice that I can play an audio file with play ...
1
vote
1
answer
5k
views
Linker not finding libsystemd
I'm trying to write a systemd service that uses the watchdog, and after
sudo apt install libsystemd-dev
I checked to make sure it was available:
$ ldconfig -p |grep systemd
libsystemd.so.0 (...
1
vote
2
answers
650
views
Deleting a directory + unlinking the files
I have a folder with many files those have a few sym links pointing to them like
/some_path -> /dir/file1
/some_path2 -> /dir/file2
/some_path3 -> /dir/file3
But I don't remember neither ...
0
votes
2
answers
195
views
ln -s fail to create a symbolic to directory
I tried to create a symbolic link of Books Directory to the Home
#in the Document Directory to the Home Diretory.
ln -s Books/ ~/Books
but it create a file rather than a directory
What's the ...
0
votes
0
answers
154
views
Symbolic links to external HDD not always working after boot-up
I created some symbolic links to certain parts of my HDD (Ubuntu's on SSD). Sometimes, right after boot-up, they don't work and appear as corrupted files. I have to open my HDD through devices list ...
3
votes
1
answer
4k
views
How do you create a symlink to a file on a mounted disk that survives reboot?
On my network, I have a disk on my other computer running Ubuntu (both computers with 18.10) mounted to /home/username/Storage via nfs in fstab. That fstab line looks like,
192.168.2.33:/otherhome/...
21
votes
2
answers
30k
views
How to make Guest OS follow symlinks from shared folder
I have Ubuntu Desktop as my main OS and Ubuntu Server as my Guest OS in VirtualBox 4.2.16.
I created a shared folder called /shared and put in it several symlinks to different folders across my main ...
0
votes
0
answers
489
views
Persistant Symbolic Link -Ubuntu 16.04
Could somebody assist me in creating a persistent symlink for the block devices, using udev ?
I have a cloud server, where I can attach a separate device (/dev/xvdb) as a storage.
I want to create ...
1
vote
1
answer
506
views
checkinstall + symbolic links
I am trying to package this code with checkinstall, but run into this bug which prevents all the symbolic links for shared libraries to be created.
make install creates these links:
libdlt.so -> ...
1
vote
0
answers
90
views
Nautilus FTP symbolic links
When connecting to an FTP server through Nautilus, symbolic links show as documents. When I attempt to open it, it thinks that the symbolic link is trying to point somewhere on my local machine, and ...
0
votes
0
answers
1k
views
Question about Python mapping (/etc/alternatives/python)
I using Ubuntu 16.04 and I currently have 3 Python versions installed: Python 2.7, 3.5 and 3.6. I have a question relating to the /etc/alternatives/python shortcut.
Here is some brief context:
ls -l ...
2
votes
2
answers
2k
views
Script for merging files in multiple nested directories by symbolic link
Basically I am looking for a script to automate stuff (See picture below) in Ubuntu. I'm thinking of using a bash script but other solutions (eg. python?) would also be excellent.
1) Suppose I have a ...
0
votes
0
answers
40
views
What is the best solution when use soft link?
I have a tool.
This tool extracts an executable file (called binA) and then this tool call ./binA
binA file is in where is the same tool's location.
I make a soft link to this tool run anywhere:
ln -...
18
votes
2
answers
81k
views
Symlink /var/www directory
I have been trying to create a symlink:
/var/www -> /home/USER/code/
Following https://stackoverflow.com/questions/9104337/create-a-symbolic-link-of-directory-in-ubuntu , I entered the following ...
1
vote
1
answer
844
views
Dependency is not satisfiable: udisks
I'm having the issue that udisks is not found on my system by a deb-Package.
I assume my Ubuntu is newer than the package and it finds udisks2.
Probably the problem will be solved easily with a ...
-1
votes
1
answer
429
views
How to update softlinks when folder is updated?
I have two directories 'original' and 'soft'.
I have soft links on all the files of the original directory.
ln -s original/* soft/
However, on the regular basis files are getting copied and deleted ...
1
vote
1
answer
2k
views
Creating symbolic links to all config files
New to this forum.
Currently, have I configured myself a little media server using Ubuntu Server 64bit, version 16.04. It runs Plex, Samba, Deluge, SSH, and some custom scripts.
It takes a bit of ...
0
votes
1
answer
779
views
when trying to instal wickRme on 18.04 I get the following error
sudo gdebi WickrMe_4.44.04-01_amd64.deb
...
This package is uninstallable
Dependency is not satisfiable: libicu55
Then I tried searching for a match
apt-cache search libicu
but on install attempt
...
0
votes
0
answers
84
views
Change Default Name Given to Symlinks
I would like to change the name given to any new symlink by default. So if I have a file named "A", the system names the symlink: "Link to A".
But I want to make it "A -Link".
System: Ubuntu 18.04.1 ...
637
votes
8
answers
1.5m
views
How to create a soft or symbolic link?
I am installing p4v in /opt, but /usr/bin is on my path. Is it possible to create a soft or symbolic link for p4v from /opt to /usr/bin, so I can just type "p4v" since /usr/bin is in my path?
2
votes
2
answers
1k
views
show the target of current directory (symbolic link)
I'm in directory ~/a which is a symbolic link to ~/b/c. My prompt looks like:
~/a$
But I hope to cd to ~/b/c.
~/a$ cd .
~/a$
It doesn't work. What's the right way?
0
votes
1
answer
2k
views
What the "snap" is going on with this symbolic link? [duplicate]
I was looking in /usr/bin tonight and saw this:
The symbolic link in cyan / red is a curiosity:
lrwxrwxrwx 1 root root 25 Jul 19 04:48 ubuntu-core-launcher -> ../lib/snapd/snap-confine*
...
2
votes
1
answer
2k
views
ldconfig errors caused by broken Nvidia symlink after upgrade to 18.04
I recently upgraded my computer from 17.10 to 18.04. This involved an upgrade of the nvidia graphics driver from nvidia-384 to nvidia-driver-390. However, I noticed that nvidia-384 was still installed ...
0
votes
1
answer
152
views
Sync Desktops between two computers via Dropbox?
I've been using Dropbox and symlinks to keep two Ubuntu computers in sync, for years.
The setup is a bit fiddly, because some links go TO the Dropbox folder, and some come FROM it, depending on how ...
3
votes
2
answers
2k
views
How edit anyway .conf on symlink using vim?
I have file in ../new-path/ dir.
lrwxrwxrwx 1 root root 32 Sep 6 19:43 test1.conf -> ../new-path1/test1.conf
When I edit it with Vim using sudo vim test1.conf on under Vim dialog said.
"test1....