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 ...

learn more… | top users | synonyms (1)

0
votes
2answers
43 views

Run a command which returns a string when reading a file [duplicate]

I have this idea and maybe it is not feasible, but I think it worth asking. Let's say a user is running this command: cat ~/file.txt Whenever something tries to read from this file, I would like ...
0
votes
1answer
83 views

Create a symbolic link in the current directory

I have got a question were I have to create a symbolic link named "new" to file /test/test1/test2. The current command I have is this: ln -s /test/test1/test2 /new I am not if there is a specific ...
0
votes
1answer
28 views

File -> ../../archive/folder/file restore

Hi i'm new to Linux and I need to use it temporary to set up LetsEncrypt. Once complete, I needed to move the /etc/letsencrypt/live/fullchain.pem file into the root dir but i moved the file incorectly:...
0
votes
2answers
71 views

Asterisk behaviour in creating links

I am trying to create symbolic links for a set of files. Suppose I want to link all the files with the pdf extension from an origin_directory to my present directory. Up to now I have this command: ...
0
votes
2answers
72 views

Create a symbolic copy of another directory that has it's own local data

I have a directory foo that contains files and directories. I want to create a new directory foo_0311 that contains the same files as foo (and sees updates when the files change), but that allows by ...
0
votes
1answer
162 views

need help with a a symlink and the PATH variable

I tried to install drush with composer from a script that is runing with sudo $nameofuser `logname` #drush installation getcomposer(){ # Composer Global installation curl -sS https://getcomposer....
0
votes
1answer
264 views

How to find out which package installed a symlink

In this question I describe my problems finding out the package that installed the final target of the /usr/bin/rename command. dpkg -S /usr/bin/rename did not give a result, but after first finding ...
0
votes
1answer
253 views

how to change where a symlink points [duplicate]

Can you tell me what is this in red marker area. ? and if want to change /media/files/tb-prod/files to some other path, then how it will be .. ?
0
votes
1answer
131 views

Point folder on main HDD to newly mounted 2nd HDD

What is the best way to point a folder in one of my websites directory to a folder in a second HDD I just had installed? I see things about fstab and symlink but am lost at what is the best way to do ...
0
votes
1answer
118 views

Symbolic linking to ~/ instead of ~/[path/file]

I moved all of my dot files out of ~/ in to ~/data/dotfiles I then did ln -s ~/data/dotfiles/[filename] ~/ My intention was ln -s ~/data/dotfiles/[filename] ~/[filename] This included my .vimrc , ....
0
votes
1answer
32 views

Confused with symlinks - link created within a desired directory

during installation of the program, following window popped up: I continued with the installation and now I want to make symlink. The reason for this is that there is plenty of free space in /galy/...
0
votes
1answer
412 views

How to rebuild /etc/cron.d on CentOS?

I installed an RPM on a CentOS machine that was supposed to merge its own files contained in a /etc/cron.d structure with the current /etc/cron.d. However it replaced the current contents. I believe ...
0
votes
1answer
31 views

How to Avoid Many Levels of symlinks with this find?

I know the thread and try to fix my find with -mindepth 15 unsuccessfully find -L $HOME -type f -name "*.tex" \ -exec fgrep -l "janne" /dev/null {} + | vim -R - Unsuccessful attempt find -L $...
0
votes
1answer
28 views

How to Prevent Dropbox Access Elsewhere when Symlink?

I have the symbolic link ln -s $HOME/BTsync/masi/ $HOME/Dropbox/ I notice that contents in Dropbox GUI on Internet Browser are in conflict where masi directory has old files. I delete the ...
0
votes
1answer
35 views

Full system backup with dd include symlinks

I'm really new in unix and Linux and just tried to learn something. My question is how can I make full system image/backup with dd include symlinks? Is dd good or I should use another approach? Can ...
0
votes
1answer
95 views

Debian git error: undefined symbol: __gmpn_cnd_add_n

$ sudo apt-get install git $ git clone sth Cloning into 'a-folder'... git-remote-https: symbol lookup error: /usr/lib/x86_64-linux-gnu/libhogweed.so.2: undefined symbol: __gmpn_cnd_add_n ...
0
votes
1answer
36 views

cron not working with commands symlinked in custom PATH

I have a script job.sh in /home/user/scripts, which is then symlinked to /home/user/bin/job. The custom binaries path has been included in .bashrc, so whenever I issue the command job param1 etc from ...
0
votes
1answer
17 views

Edit Path of Sym-Link

I am curious if there is a way to set a symlink that could follow the below example format: $> /tmp/../home/usr1/dir/oldFile Specifically I want to create a file in another folder, say: $> /...
0
votes
1answer
389 views

Create symbolic link for directory, symbolic link end up inside target

I know it's been asked many times, but I followed the instruction and cannot create the link. The symlink (gradle-current) always ends up inside the target (gradle-2.7) cd ~ ln --symbolic -t /home/...
0
votes
1answer
283 views

Elegant Way To Store Dotfiles on GitHub

I need an elegant solution to store my dotfiles on GitHub for easy access. I tried to create a dotfiles directory and symlink all the dotfiles into there. Then I tried adding the symlinks to git and ...
0
votes
2answers
44 views

Best practice to mount directory in /home to directory in /media?

I have 4 drives on my home server. 3 external drives mounted in fstab to three individual directories in /media. The fourth drive contains a headless debian os install. I want to mount a directory in ...
0
votes
1answer
119 views

How I can change all symlink to the new path [duplicate]

Please, I want to change the symlink to the new path My symlink's in this form lrwxrwxrwx. 1 s01 s01 56 Mar 22 13:17 zmjppcxlpq2m.png -> /home/s01/public_html/cgi-bin/uploads/00029/zmjppcxlpq2m ...
0
votes
1answer
76 views

Overhead when relocating a directory to a different file system using a symbolic link

I need to relocate some frequently accessed files to a different file system. The simplest way of doing this is to move the directory containing the files to the new file system and creating a ...
0
votes
1answer
519 views

Update symlinks by scripting? [duplicate]

I have a directory which contains many symlinks which point to other directories. Now I would like to rename a common ancestral directory of the linked directories by the symlinks, and also have ...
0
votes
1answer
131 views

Can rsync mirror a directory, without following symlinks linking outside the tree?

I want to mirror some home directories to a remote location, but don't want to follow links that point outside the tree. Links pointing with the directories themselves are okay. I also want the links ...
0
votes
1answer
113 views

Trouble creating symbolic link [closed]

I installed a software on OpenSUSE. However, to open it one has to type /usr/local/software/start_software everytime. I tried creating a symbolic link using sudo ln -s /usr/local/software/...
0
votes
1answer
2k views

Always getting “not a symbolic link” message, while installing any package

When I am installing any package in my centos 6.0 system, by yum or rpm, I always getting /sbin/ldconfig: /usr/lib64/libreadXMLnew.so.1 is not a symbolic link message. There is never a problem in ...
0
votes
2answers
1k views

Hard links versus symbolic links: which one is faster / smaller? [duplicate]

Hard links Given a file original.txt, a hard link hardlink.txt will point to the same inode and continue to exist even when original.txt is deleted. Symbolic links Given a file original.txt, a ...
0
votes
1answer
170 views

How to prevent find -execdir from following symlinks?

Say I have a symlink: linktob -> b If I run something like find . -type l -execdir chmod 777 {} \;, the chmod command affects the file the symlink is pointing to, i.e. ‘b’. The man page suggests ...
0
votes
1answer
805 views

Opera, Firefox has no kiosk option like Chrome gives it openly?

While using Chrome kiosk mode, i have problem with openbox desktop, its not doing correct for some javascript rendering. So i wanted to test opera and firefox but both does not support kiosk at all ...
0
votes
1answer
391 views

Keeping multiple root directories in a single partition

I'm working out a partition scheme for a new install. I'd like to keep the root filesystem fairly small and static, so that I can use LVM snapshots to do backups without having to allocate a ton of ...
0
votes
0answers
22 views

Querying soft links to a file - non-bruteforce method [duplicate]

Is there a way, workaround to find out how many symlinks are pointing to a file? I know the find method, but this will look up all the files. Is there a more lightweight solution? Is it possible to ...
0
votes
0answers
26 views

Compare the options -T, -P and --no-dereference in coreutils

From the manual of coreutils, here are three quotes from three different places, where the first two are from options common to several utilities and the third one is from ln quote 1 -T --no-...
0
votes
0answers
61 views

Home folder GONE

Suddenly some of my files are not showing up in the browser. I decide to reboot and come back to a totally default home screen and home folder (all my files are gone). When I go to /home and type ls -...
0
votes
1answer
16 views

Inside a linked folder, doing “ls” to relative paths outside it shows the contents pointed by linked directory, not the source. Is this correct? [duplicate]

Suppose this directory structure: /folder1/ /folder2/ Now, if I enter cd /folder1 ln -s /folder2 linkToFolder2 cd /folder1/linkToFolder2 ls .. I thought that, given that pwd is /folder1/...
0
votes
0answers
19 views

How to create symlink USB to COM port

I need help to create the udev rule. I need my my USB printer to be located as COM1. lsusb ouput: ‍Bus 001 Device 005: ID 0fe6:811e Kontron (Industrial Computer Source / ICS Advent) Parallel Adapter‍...
0
votes
0answers
42 views

How to create a symbolic link of all files in a directory using a shortened name obtained with using a piped cut on the filename

I have a directory full of libraries (*.so.0.*), and I want to use find to create a symbolic link to each file, named *.so.0. Here is a (non working) try: find $HOME/.local/lib64/ -name "lib*.so.0.*"...
0
votes
1answer
32 views

How could I quickly find a recursive symbolic link? [duplicate]

I am experiencing an issue with a indexing program running much longer than expected. I want to rule out the possibility of a recursive symbolic link. How could I find a symbolic link that is ...
0
votes
0answers
11 views

Difference between symlimk and link? [duplicate]

What is the difference between a "symlink" and a "link".
0
votes
0answers
27 views

File and folder size using ls and du [duplicate]

I created a folder and copied a 992 byte jpg file in it. Then I created a hard and soft links for the file. The hard link is the same size of the file and the soft link is 8 bytes. Now when I checked ...
0
votes
0answers
146 views

Symlink not working for /opt folder

I am in the midst of installing Java on red hat machine. So I downloaded jre-1_5_0_10-linux-i586.rpm and copied it into /opt/local. Then I ran sh ./jre-1_5_0_10-linux-i586-rpm.bin and finally I ...
0
votes
1answer
45 views

get target file size by symlink on cifs share

in shared directory f:/dir on Win2008 absolute symlink created with mklink f:/dir/symlink2file f:/dir/file This share then mounted in Debian with mount -t cifs -o file_mode=0600,user=login,pass=...
0
votes
0answers
154 views

Can't see files in OwnCloud (Data Path set to existing directory)

I installed owncloud server on my Raspberry Pi (Jessie Lite) and got a problem seeing my files. I got three external HDDs I connected to my Raspberry. On boot I mount them to /mnt/ext1 / ext2 / ext3. ...
0
votes
0answers
35 views

Symlink files to mirrored directory tree

I'm attempting to symlink files to a mirrored directory tree. Both directories (source and desired destination of symlinks) are on separate mountpoints inside a FreeBSD jail. Source directory: /mnt/...
0
votes
0answers
101 views

How can I make symbolic link to a file in /home/user/.local/share to use with Alt+F2?

I apologize if this question is too elementary or if it has been asked previously. I did try to thoroughly search for it, but it is possible that I did not use the right keywords. I have zotero (a ...
0
votes
0answers
15 views

Symlink all directories under base - including new directories created. Ongoing Symlink

So i understand I could probably just use CRON to do this, because I can symlink directories under base using ln -s /base/* /target But just wondering if anybody knows a way to have this ...
0
votes
2answers
36 views

Is there a method to make Multipart or Virtual Files?

Is there a method of creating a symbolic file that refers to the contents of a directory? So for example, calling: cat all_keys would give the same output as: cat keys/key1+keys/key2+etc... I've ...
0
votes
0answers
99 views

Symbolic link not allowed or link target not accessible: /home

I cannot access http://localhost/~user. The error message is: Symbolic link not allowed or link target not accessible: /home I do not have a /home. In my case it's: /RAID/home/*/public_html I ...
0
votes
0answers
88 views

Deleting of whole symbolic link folder when rpm -e is ran

I am currently building an rpm for RHEL 6.6. The installation of the rpm goes great the the command rpm -Uvh foo.rpm. However I run into a problem when I do the rpm -e foo command. The problem is ...
0
votes
0answers
75 views

Linux capabilities for java to resolve symbolic links

I run a java program by a non-root user. The program has to resolve a symlink to the real file name, but the link is owned by a different non-root user. I used setcap to set capabilities to open root-...