symlink

What does "6" mean in glibc.so.6?

What does "6" mean in glibc.so.6? When exploring the C++ binary, I find that libstdc++.so.6 is dyn-linked into libm.so.6 and libc.so.6: $ ldd /lib/x86_64-linux-gnu/libstdc++.so.6 linux-vdso.so.1 (0x00007ffcb737b000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fd3b2295000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fd3b1c00000) /lib64/ld-linux-x86-64.so.2 (0x00007fd3b2396000) libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fd3b2275000) My questions are: What does 6 mean in the name? I originally thought it was …

Total answers: 2

How much space do I need to create a symlink?

How much space do I need to create a symlink? I have a server which contains 1 TB of space. I filled it to capacity; then I wanted to make a symlink. I removed a different symlink, but the server still wasn’t happy – it said I didn’t have any space available. Didn’t I just …

Total answers: 2

What's limiting the depth of a recursive symlink chain?

What's limiting the depth of a recursive symlink chain? Out of curiosity, I ran the following: mkdir haha cd haha ln -s ../haha haha Which created a recursive structure like this: ┌────────┐ V │ haha/ │ haha/────┘ I wanted to see how deep into this I could go, so I typed cd haha/ and held …

Total answers: 1

Substitute a new man page for an older one

Substitute a new man page for an older one I’ve just built (from source) a current version (ver 2.1) of libgpiod on my RPi 4B. There are six (6) "command-line tools" included in the source tarball for libgpiod. During the make install process, these tools – and their new man pages – were installed in …

Total answers: 1

Unable to symlink directory with all file contents

Unable to symlink directory with all file contents I want to symlink locations to ~/locations. So that everything in locations appears in ~/locations: λ tree locations/ locations/ ├── adelaide │   └── config ├── amber │   └── config ├── austin │   └── config ├── boston │   └── config ├── boulder │   └── config ├── durham │   …

Total answers: 1

does rsync switch -a (ARCHIVE) always includes -l (symlinks)

does rsync switch -a (ARCHIVE) always includes -l (symlinks) does rsync option -a (ARCHIVE) always includes -l (symlinks) in linux systems? I was revising some old scripts containing both options and thought to drop unneeded options. The script might be used by other people or system, so I’d like to double check Asked By: Serge …

Total answers: 1

Trying to create same folder structure and symlink files using Cygwin Terminal

Trying to create same folder structure and symlink files using Cygwin Terminal Followed this post – How to copy a folder structure and make symbolic links to files? cp -al /src/dir /dest/dir # hard-links to leaf-files cp -as /src/dir /dest/dir # symlinks to leaf-files But after working single time on copying my mounted Google drive …

Total answers: 1

how to copy symlinks without dereferening them from an external hard drive (NTFS)?

how to copy symlinks without dereferening them from an external hard drive (NTFS)? I am moving my files from one computer to another via an external hard drive formatted with NTFS. I have a folder called "library" with many PDFs. This folder contains quite a few symlinks since some PDFs (i.e., books or articles) belong …

Total answers: 1

dos2unix cannot follow symlink if link targets file on another partition

dos2unix cannot follow symlink if link targets file on another partition I have a text file a.txt with CRLF endings which is the target of a symbolic link link.txt. By default, dos2unix does not follow symbolic links. I have to add –follow-symlink for that. It works if a.txt and link.txt are on the same partition. …

Total answers: 2

Konsole auto-completion for link pointing to folder

Konsole auto-completion for link pointing to folder Original Question When cding into a folder through a link, auto-completes does not add the last / unless I hit tab twice. How to change that behavior? MWE: cd /tmp/ && mkdir test && cd test && mkdir folder && ln -s folder link Then do cd lin …

Total answers: 1

PostgreSQL not working after creating a symbolic link on the pg_hba.conf file

PostgreSQL not working after creating a symbolic link on the pg_hba.conf file I’m trying to create a symbolic link on /var/lib/pgsql/data/pg_hba.conf (default path on Fedora) pointing to the real file located somewhere else, for example /var/lib/pgsql/data/pg_hba.conf -> /home/pg_hba.conf (command for this example: sudo ln -sf /home/pg_hba.conf /var/lib/pgsql/data/pg_hba.conf). I set /home/pg_hba.conf permissions (-rw——-), owner (postgres) and …

Total answers: 1

conflict between bash and its auto-completer on the meaning of .. for symlink to directory

conflict between bash and its auto-completer on the meaning of .. for symlink to directory In my home directory /home/regis, after creating a symbolic link LINK to directory DIR/SUBDIR, and doing cd LINK, I have a conflict between bash and its auto-completer regarding what .. leads to. For bash auto-completer, .. leads to /home/regis, as …

Total answers: 1

symlink created nested symlink

symlink created nested symlink I wrote a symlink script for someone on another team to run in a directory I don’t have access to, and it seemed to have caused something unexpected. destination_path=/path/to/dest/ source_path=/path/to/src for dir in first second do # replace existing symlink for subdir in {1000..1020} do ln -sf $source_path/$dir/$subdir $destination_path/$dir/$subdir done done …

Total answers: 1

How can I make git treat symlinks as a file?

How can I make git treat symlinks as a file? I have a very specific use case. The DesignSync versioning system we use replaces files with their symlink to the remote repository when we check-in a file. Since I use git locally to version my changes before checking it in, I don’t want "replacing a …

Total answers: 1

Are library symlinks used to load libraries?

Are library symlinks used to load libraries? I had someone tell me this, "I do know the symlinks are not used on linux when loading a library." However, this does not seem correct to me. Too often I have had to fix broken symlinks when I have been messing around in Linux. I can find …

Total answers: 2

gdbus symbol look up error

gdbus symbol look up error I’m using Archlinux. After a recent update, I find that the gdbus doesn’t work and it presents a symbol lookup error: ➜ tidedra@ZgrArch ~ gdbus gdbus: symbol lookup error: /usr/lib/libgobject-2.0.so.0: undefined symbol: g_string_free_and_steal Then I thought it was probably a problem about the version of library, so I checked the …

Total answers: 2

Why do certain programs or systems rely on symlinks?

Why do certain programs or systems rely on symlinks? Context As I was navigating through the file-system to find the persisted files from a mounted docker volume, I found it difficult to unravel the unending ls/cd/tree of directories only to find more symlinks… Maybe this is the wrong question to ask since my search is …

Total answers: 1

Symbolic Link seems to be Contradictory when dealing with '../'

Symbolic Link seems to be Contradictory when dealing with '../' The contradiction here is how symlink deal with directory ../ in 2 ways: treat the current path as the result printed by pwd treat the current path as absolute path I will discuss them with an example (pretty easy to understand). Considering the following directory …

Total answers: 1