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)

1
vote
3answers
202 views

Run a shell script via a symbolic link from the directory containing the script itself

My desire is not to change directory then execute. I use a jar file and need to execute that. So I made a very basic shell script to do that. #!/bin/sh java -jar TreeForm.jar Then, I saved it as ...
1
vote
2answers
51 views

Solaris tar: “symbolic link failed: Not a directory”

When unpacking a tar archive with a symlink under Solaris 10, I get this error: tar: lib/jre/: symbolic link failed: Not a directory The lib/jre symlink points to lib/jre1.8.0_46 which is in the ...
6
votes
3answers
467 views

How do I get `ls -l` output for a link recursively until reached the original file?

Let me give an example (it's just an example taken from here): $ ls -l /usr/bin/gnome-text-editor lrwxrwxrwx 1 root root 35 Mar 16 2015 /usr/bin/gnome-text-editor -> /etc/alternatives/gnome-text-...
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 ...
2
votes
2answers
148 views

How to redirect file output to a different directory?

I have a program that regularly outputs files to a directory, let's say /a/b. I am utterly unable to change where these files are outputted. But for me to use them, I must first move them to, let's ...
0
votes
2answers
93 views

How to prevent symlink from creating within itself?

Running the following command works as expected, creating a symlink to src from include/bb: ln -sf ../src include/bb However, calling the same command again will cause an additional symlink to src ...
0
votes
0answers
155 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 ...
1
vote
1answer
88 views

Why is /bin a symbolic link to /usr/bin?

According to the Filesystem Hierarchy Standard the /bin directory should contain utilities needed in single user mode. In practice, many Linux distributions make the directory a symbolic link to /usr/...
3
votes
2answers
36 views

“Junctioned” symbolic links

Does Linux have the capability to use "junctioned" symbolic links? I'm not sure if this is an actual term or not, so let me explain the concept. I have a git repository containing all my ...
2
votes
0answers
147 views

rsync's “Read-only file system (30)” error

NB: This is a 2-part question: why does an error happen, and how to work around the error. (The two parts are related, inasmuch as the answer to the "why"-question may shed light on the "how"-...
3
votes
1answer
51 views

How is a symlink represented in a file system vs a hard link?

I want to make sure my understanding of this is correct: Making a Hard link is created another dentry that points to the same inode Making a symlink is creating a completely new file object/inode ...
1
vote
1answer
23 views

Directing old symbolic link to a different location

Example: I created a symbolic link into my /usr/local/bin folder using sudo ln -s ~/Desktop/package/Application/tool1 sudo ln -s ~/Desktop/package/Application/tool2 … I would like to move my ...
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:...
1
vote
1answer
37 views

Symlink to same directory

I've set up a ftp server for using ftp push on a tv recording page. I've created an extra user for this, who has only access to one directory, which the user is chroot-ed in. But the page does not ...
2
votes
1answer
94 views

copy and symlink mysql to another disk partition

I'm using ubuntu 12.04 and have two disk partition named: /dev/sda and /dev/sdb. my home partition and other programs are in /dev/sda. therefor any work like database benchmark on my mysql databases ...
1
vote
1answer
181 views

apache Virtual Host Configuration CentOS7

My host machine is Windows 7 and guest machine is CentOS 7. I am a new to Apache and I am trying to create VirtualHost on CentOS7. I have read a lot of documentation and a lot of answers over ...
1
vote
0answers
40 views

Bash tab completion not working within symlinked directory

I'm working with Bash 4.2.46 on RHEL7 with the bash-completion packages installed, but I seem to have found an odd corner case where tab completion doesn't seem to work as expected. I have a set of ...
2
votes
1answer
58 views

Automatically add slash when navigating through symlink

I use symlinks a lot and pretty much linked my whole home directory into a folder .other or .dotfiles. When I'm im my home directory and try to got into the folder .config/, its actually a symbolic ...
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=...
1
vote
1answer
324 views

Symlink to file which does not exist yet

I'm currently trying to cleanup my home directory by moving files like .vimrc, .bash_profile, etc. to a directory .dotfiles in my home directory. The idea is to use symbolic links to these files ...
1
vote
1answer
72 views

Symlink to clean up home directory

I'm currently trying to clean up my Mac. I hate it when my home directory (~) is full with config files and stuff I don't want to see all the time (.bash_history, .bash_sessions, etc.). My idea about ...
2
votes
2answers
78 views

difference between /dir and /dir/ [duplicate]

Consider a symlink I am making to my Music directory named music. ln -s Music music now consider following sequence of commands: edward@ArchLinux:~$ readlink music Music edward@ArchLinux:~$ ...
0
votes
0answers
159 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. ...
1
vote
1answer
50 views

Make a shortcut to a program that changes to its directory

Sorry if this seems a daft question but I'm still new to Linux. Is there an equivalent of a Windows Shortcut in Linux (as opposed to a link) The problem I have is this: I have an application that ...
1
vote
1answer
608 views

Why can't I copy symbolic links?

cp: cannot create symbolic link ‘/xyz/pdq’: Operation not permitted So, I'm trying to copy one directory to a Veracrypt encrypted USB stick. Command I used was: cp -aL /source /destination I've ...
1
vote
1answer
59 views

How can I determine last access of a symbolic link without updating it?

Over time, a once tidy directory structure is changed and extended in unanticipated ways on a needs bases. After enough years go by it becomes 'a mess'. Of course, I had nothing to do with it. :-) ...
3
votes
1answer
115 views

root cannot connect to symlinked socket of other user

I use oh-my-zsh's ssh-agent plugin to have a static symlink to my current SSH_AUTH_SOCK created. When connecting through SSH with agent forwarding enabled the file /tmp/ssh-agent-$USER-screen is ...
1
vote
2answers
107 views

Is it evil to link to a crontab?

I think about doing something like: sudo ln -s ~/myCustomCrontab /var/spool/cron/crontabs/username because I'd like to have all customized files in my home directory. Possible risks I can think of ...
0
votes
1answer
53 views

Is there anyway to create a link that acts just like a shortcut?

I have Ubuntu 14.0.4 LTS. I have the following folder on my system: /opt/JBoss_4.0.4.GA/server/default/deploy Also I have this symbolic link to that folder on my Desktop: JBoss deploy -> /opt/...
-1
votes
3answers
98 views

Deleting symbolic links - Logics and how to [duplicate]

First, Happny new year all here! I'm very new to UNIX\Linux and I've mistakenly created the following Symlink: sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-enabled/phpmyadmin.confservice ...
4
votes
5answers
525 views

What is a symbolic link made from? Understanding the structure of symlinks

I use Ubuntu 15.10 and I'm very new in Linux. After reading in Wikipedia what is a symbolic link in general, and after executing a symlink creation command in the Ubuntu Unix-bash terminal, I ought to ...
0
votes
0answers
36 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/...
1
vote
1answer
35 views

Connect Symbolic Link to program or script that returns a file

I wanted to know if I can make a symlink to a file say in a Database. This is a wild guess, but is it possible to intercept the link-follow say using a C function and then let function return the ...
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 ...
1
vote
1answer
32 views

Dereference symlinks from a path

I have path to a file /home/jcubic/www/shell/config.json where www is symlink to /domains/jcubic.pl/public_html is it posible to get path /home/jcubic/domains/jcubic.pl/public_html/shell/config.json ...
5
votes
2answers
59 views

Installing programs on a removable drive

I am planning to install some software on removable media (which will presumably always be present in the computer, though it's possible that there could be occasions where it is absent). After doing ...
16
votes
6answers
728 views

Equivalent of alias for a symbolic link?

I find myself needing to jump around a few directories in my home folder often and get tired of writing them. I would like a quicker approach, which would traditionally be a symbolic link. However, I ...
5
votes
1answer
121 views

Find all dirs/files that have symlinks pointing to them?

I am in a situation where I want to delete some cruft, but there might be some symlinks pointing to the cruft, so I don't want to delete those targets. Is there a command or some switches that will ...
1
vote
2answers
50 views

Create symbolic link recursively, if file 1.JPG exists rename it to 1A.JPG

I have a shell script for creating symbolic links of all my photos from one year. The photos are from different cameras and are in subdirectories. f=$(pwd); export f; q="2015/"; z="2015_Links/"; find ...
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 ...
5
votes
1answer
178 views

Can GNU Stow use a stow directory that is a symbolic link?

Consider this script. #! /usr/bin/env bash mkdir -p target mkdir -p mydir/package/ touch mydir/package/file ln --symbolic mydir stow file stow stow --verbose --dir=./stow --target=./target package ...
5
votes
1answer
124 views

How do I create a shortcut for a script, and run it as a .desktop file?

I have installed Teamspeak onto my Ubuntu 15.10 system. Teamspeak requires a script to be ran in-order to start. How can I create a symbolic link that is a .desktop so I can open the .desktop file, ...
1
vote
2answers
55 views

Undeletable symbolic link on smbfs/simfs

During a software installation, the configure script created a symbolic link with what seems to be ln -s foo foo on a smbfs filesystem mounted with the options credentials=/etc/fstab.passwd,uid=1001,...
1
vote
3answers
806 views

How to copy symlinks as symlinks from one machine to another?

Let's assume I have two identical systems. On the first system I've created a symbolic link. On the second one I want to copy that symlink via sftp and the symlink shall work the same (i.e if the ...
3
votes
2answers
65 views

How to split FHS read-only and read/write directories across two disks with Linux/systemd, without partitioning the raed/write disk?

My objective is to have the physical storage for the Linux FHS read/write directories (/home, /srv, /tmp, /var) on a separate (logical or physical) disk from the potentially read-only rest of the root ...
3
votes
0answers
46 views

Symlink as WorkingDirectory in systemd service

I have a service with WorkingDirectory=/srv/ctr/current which is a symlink. It seems the service doesn't pick up changes in the symlink when restarted. The error log reports /srv/ctr/releases/69 as ...
1
vote
1answer
19 views

update-rc.d process output to symlink file

I have a script /etc/init.d/script.sh configured with update-rc.d to run on startup, which it does ok. It contains line: python pathto/script.py >> /home/sd/log.txt 2>&1 The script ...
3
votes
1answer
147 views

Access a file in PHP through a symbolic link from a user that normally doesn't have permission

I have this website, where if the user submits a form, a python script is executed through a php page, and the python script creates a zip file and should offer it to the user for download through a ...
1
vote
1answer
72 views

How to make ls warning me about parent directory is symlink

I just found a scenario which i (or someone new to linux) might accidentally rm file because user thought it's duplicated file. Let's say i have this two binary files: [xiaobai@xiaobai note]$ ls -...
2
votes
1answer
134 views

Creating a symlink with a colon in the name on cygwin bash

I'm using bash, version 4.3.42(4)-release (i686-pc-cygwin) on cygwin. I want to create a symlink C: -> /cygdrive because a vagrant build process has that file path specified. The vagrant script has ...