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
1answer
12 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
21 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 ...
1
vote
1answer
26 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 ...
1
vote
1answer
22 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
22 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
20 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
32 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
10 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 ...
0
votes
1answer
54 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
35 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
67 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
20 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
47 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
64 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
30 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
52 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
56 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
43 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 -> ...
-1
votes
3answers
40 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
371 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
33 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: ...
1
vote
1answer
29 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
45 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
25 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 ...
6
votes
2answers
49 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
634 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
113 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
38 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
14 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 ...
4
votes
1answer
44 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
52 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
47 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 ...
1
vote
3answers
143 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
38 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
31 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
16 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
73 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
62 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
65 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 ...
0
votes
2answers
35 views

Does soft linking a directory hard link its subfiles?

Suppose I have the following configuration: Folder A file1 file2 I then create a soft link of Folder A as follows: ln -s A B so that we now have: Folder A file1 file2 Folder B ( symlink of ...
3
votes
1answer
49 views

OS X: Can `ls` show broken symlinks?

When in Linux, I enjoy having \ls -l --color=auto show broken symlinks with red text for the name of the symlink and blinking text for the missing linkee. But in OS X, \ls -lG (the closest thing I ...
3
votes
1answer
32 views

cp command which partially resolves symlinks

Is there an easy way to copy a directory recursively where symlinks to external files/directories are resolved (target file is copied), but internal symlinks (pointing to files inside the copied tree) ...
2
votes
2answers
39 views

How run Linux application from a mounted Windows disk?

I have dual-boot operating system, Ubuntu and Windows 7. The problem is I can't install some Linux application on my Linux because considering the disk space. I always regret to myself why I allocated ...
2
votes
2answers
37 views

link to an executable and remove some parameters

I currently am using Xamarin Studio, which has a bug in this version. It adds 2 parameters to an executable, which causes the output to flood with error messages, slowing down the build time from a ...
1
vote
1answer
35 views

What link should i use for home- & owncloud-data?

the plan is to built a debian-based sever with owncloud for syncing addressbooks, calendars, files etc. and also access large video-files in the LAN via webdav from some kodi-clients (maybe also use ...
0
votes
1answer
124 views

file with permission lrwxrwxrwx does not show any link on “ls -l” command

lrwxrwxrwx. 1 tomcat tomcat 27 Oct 17 00:23 work This is my file(link) I want to go inside a directory within it to rm a file and then copy the new one. But it says permission denied and does not ...
2
votes
1answer
81 views

*.desktop nor symlink works (just for this one file) - Linux Mint 17.2 Cinnamon

I have this desktop entry: [Desktop Entry] Name=dummy Type=Application Terminal=false Icon=/home/xyz/Software/Test/ico.png Exec= /home/xyz/Software/Test/start which is supposed to execute file ...
0
votes
2answers
30 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
1answer
16 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: $> ...
1
vote
1answer
40 views

What are these symlinks in /run/udev/watch?

I searched my computer for all the broken symlinks with the command find / -xtype l And it returned these among a few others: /run/udev/watch/9 /run/udev/watch/8 /run/udev/watch/5 ...