0
votes
0answers
15 views

Handling symbolic links in c include path

I'm compiling some software that uses the socket.h library. Make fails with this: In file included from /usr/include/sys/socket.h:38:0, from com/etsy/net/UnixDomainSocket.c:9: ...
0
votes
2answers
27 views

Create symlinks from files in new folder, but not folders

I would like to create symlinks from all files and files in the sub-folders in a new folder. So, it makes a new folder, and in this new folder it mirrors the actual folder structure from the source ...
0
votes
1answer
61 views

unable to execute: Too many levels of symbolic links

By mistake, I executed these commands : sudo ln -sf bash /bin/sh sudo ln -sf bash /bin/bash When I rebooted the Linux server in recovery mode I got this message: init : Failed to spawn ...
0
votes
0answers
19 views

Preserving existing destination symlinks with rsync [migrated]

I am using rsync to keep a local debian repository updated. Recently, the disk I am using to store it started running low on space, so I decided to use symlinks to allow me to move some of the ...
1
vote
1answer
22 views

How to delete broken symbolic links

I have a case where a lot of symbolic links remain after the original file was deleted. It was the result after leaving a Jenkins installation saving all build logs until the number of available ...
1
vote
1answer
25 views

Can symbolic links be used for website URLs?

I'm developing a new website to replace our old website. The URL the dev site is 11.22.33.44/~abc/ (not that IP exactly) because that's what Host Gator gave me to use. Once complete, I'll change DNS ...
0
votes
2answers
21 views

Share configuration files between two users

I have a program which will be used by two users. It saves it data in $HOME. Is it possible to share the config files (or only one of them - the database) between two users? My idea was a symlink. ...
0
votes
3answers
46 views

Linux Bash — how to know which directory I really am in with symlinks?

suppose I have a symlink chain A -> B -> C when I type pwd, it could show me in A, B, or C depending how I get here. How do I show the physical directory address, i.e. not represented by any ...
0
votes
2answers
59 views

Broke most Linux computer functions with bad symlink

I'm using 64-bit Crunchbang, which is Debian-based. I was trying to fix a certain problem with libc6, and naively followed the advice of an askUbuntu answer (link) that made me run the following ...
0
votes
1answer
31 views

Symlink two real directories with files in both

I have two directories, with files in both of them: ./read/pub/ |- file1 and ./write/pub/ |- dir1/ |- file2 |- file3 I need to create a symlink so that all the ...
0
votes
1answer
26 views

Is there a way to catch all invokations of hardlink creation and replace them with symbolic links?

Assume I have a program or build script (consider it a blackbox) which is creating hardlinks and run on Linux (Debian 7.4). If I want to experiment and find out whether the program would work with ...
1
vote
0answers
20 views

ESXi and ghettoVCM - rotate weekly backups to (2) different drives

I am using ghettoVCB to perform VM snapshot backups on an ESXi server. ghettoVCB has a config file that stores parameters for performing the backup. One of the parameters is the destination path, ...
2
votes
1answer
115 views

Starting programs from terminal then exiting terminal exits started programs?

I really was unsure how to phrase the question title. What I mean is that when I use the terminal to start a program, most of the time when the terminal is closed it also exits the programs started ...
0
votes
1answer
45 views

How can I create a “copy on change” copy of a folder in linux?

I have a set of tools for building a very large project. At several high level stages my tools create copies of the build environment (a directory) to allow the user to roll back to that point. I ...
1
vote
2answers
120 views

Make a symlink in bash with two relative paths

I have two directories in my home: ~/dir1 and ~/dir2 with a file in the first: ~/dir1/file.txt Is there any way that I can make a symlink to it from ~/dir2 without moving to ~/ and if not why is that ...
3
votes
2answers
1k views

How to change a symbolic link to a directory to another target?

# ln -sv /path/to/target /path/to/link ‘/path/to/link’ -> ‘/path/to/target’ Now I want to replace that target with target2: # ln -sfv /path/to/target2 /path/to/link ‘/path/to/link/target2’ -> ...
0
votes
1answer
132 views

how to change directory in ubuntu

I'm trying to change the directories of a symbolic link. ln -s /usr/local/mysql-cluster-gpl-7.1.5-linux-i686-glibc23 /usr/local/mysql When I type command cd /usr/local/mysql it is giving me error ...
1
vote
1answer
1k views

Apache 2.4 don't follow all symlinks

I'm configuring my local Apache webserver after a fresh Kubuntu 14.04 install. Apache version is 2.4.7. I usually work with files located in a separated partition (/dev/sdb6 here), and create ...
1
vote
1answer
555 views

Using CIFS to mount a Windows share that symlinks another Windows share

I have a Windows Server 2008 VM that hosts some files that are accessed by a mixture of Windows and Linux (Ubuntu 12.04) machines via a windows share. Due to space constraints on the VM host that the ...
0
votes
1answer
19 views

Is there a way to set the symlink attribute for a file in Linux?

I have a directory that I moved from a Linux file system to an NTFS file system and broke all of the symlinks. Moving them back didn't fix the problem because all the symlinks are now very small files ...
1
vote
1answer
36 views

Show one folder's content in other folder

My question is about Linux. I have 2 folders - /home/user/first and /home/user/second. In the /home/user/first there are some files. The second folder is empty. What I want to do is to have ...
0
votes
1answer
19 views

Should I make `emacs` a symlink or environment variable?

When I apt-get install emacs I can just type emacs and it launches. But I decided to replace the apt repository version (23 currently) with the latest stable release (24.3). Now, I'd still like to ...
0
votes
0answers
55 views

How to get OSX/Linux to recognize Windows Symlinks

When connecting to a Windows share through OSX or Linux, symlinks are not properly recognized. They either appear as aliases with no target, or as folders with no permissions to access. At this point ...
0
votes
0answers
26 views

Remove Windows link associations from recursively linked files (created by mistake)

So, because of Windows' bone-headed reverse syntax and the generally piss-poor command line utilities, I accidentally created several hundred recursive links on files in many directories and nested ...
1
vote
0answers
32 views

Apache2: having trouble setting new projects

I just installed LAMP on Linux Mint 15 and ran into troubles when setting up my projects. First I tried putting a symlink into the /var/www directory that points to the project folder in my home ...
0
votes
1answer
248 views

Linux symbolic links not showing in Windows over FTP

I have set up my Raspberry Pi as a storage server. It has a 2TB disk attached to it via USB and I installed ProFTPd to provide access to it. CIFS/Samba had too much overhead, eating away all of the ...
0
votes
2answers
60 views

How to hide the destination of a symbolic link

Say for instance I want to link the following two directories with a command like this: ln -s /home/usertwo testdir When I click ls, in the directory where this link is created, i will see ...
1
vote
0answers
212 views

Can someone compare and contrast Linux “ln -s” and Windows “mklink /J”

I am very familiar with command line commands in linux, and how symlinks(ln -s) work. I am trying to duplicate this feature in windows. Specifically I would like to convert my downloads folder that is ...
0
votes
2answers
52 views

ls -lrt showing file which is not present

When I do ls -lart in my current working directory it shows lrwxrwxrwx 1 root 10004 36 Dec 16 17:59 index.html ->/home/moviebeam/assets/ui/index.html But I cannot see contents of the ...
0
votes
3answers
227 views

CentOS - how to use ln command in this situation?

Create a file like the log file in CentOS, when this log file is updated, then the copy of the log file is also updated. Maybe I use this command: ln -s logfile copy_of_logfile Then when logfile's ...
4
votes
1answer
144 views

No performance increase on I/O intensive operation after symlink to ramdisk

We have a system that transforms a set of several thousand multi-MB files. After every step in the transform, it writes the intermediate file to disk. The concept is similar to a scratch disk. We ...
0
votes
1answer
212 views

Creating a Symlink in an NTFS share

I am currently on Arch Linux accessing Samba shares of an NTFS drive connected to a windows machine. I want to be able to create Symlinks from my Arch Linux machine in the Samba shares. I have googled ...
1
vote
1answer
75 views

Fixing lost symbolic link status [closed]

I have a couple of soft symbolic links that have lost their link status and have become normal files containing link TARGET_FILE_LOCATION I searched quite a bit to find a way to restore their ...
0
votes
1answer
228 views

Copying symbolic links and filenames with special characters to NAS

I have a new Western Digital My Book Live NAS. I am trying to copy files from an old drive to the NAS. I'm using Ubuntu 12.04 and I've mounted the drive by browsing the network in Nautilus and ...
1
vote
1answer
582 views

Accessing symbolic links in VirtualBox

How can you access files in folders that are links, on a shared folder in VirtualBox? For instance, I've got a folder named /home/mrlister/misc on my host computer, which is shared as ...
0
votes
1answer
152 views

Converting Windows batch to Linux script (Batch create symbolic links by first character)

As a noob to Linux and scripting I'm unsure as to how to convert this into a linux script or even where to start. Essentially I want to create a script that creates alphabetized folders A-Z, symlink ...
1
vote
0answers
58 views

Running a symlink locally

I am running the same program multiple times over a linux platform. It is compiled at another server, and frequently updated, and it's uploaded over through rsync to all "hosting" servers, which do ...
0
votes
0answers
49 views

Backup a linux partition without imaging

Typically to backup my Windows partitions (note: pre-Vista/2008 Windows, no symlinks), I usaully tar caf /backup/<name><date>.tar.xz /mnt/<fs>. Currently, I use dd | xz to backup ...
1
vote
1answer
406 views

Disk usage of a symbolic link

If I check the file size of a symbolic link by stat(), then it reports a nonzero file size equal to the link path string. But when I use du on the link, it reports a size of zero blocks. Is there a ...
1
vote
2answers
61 views

Need some help on creating sym links

Using Linux Centos 6 I have 16 years of data sorted in directories by year and then day (1997/001, 1997/002...). Each 'day' directory has 24 files, 1 for each hour, with hour name in each file (i.e. ...
1
vote
2answers
198 views

Easiest way to restore symbolic links turned into text files?

I had folders with many symbolic links in them. Unfortunately after copying that around different filesystems, they've turned into plain text files with the link target as the contents. That is: ...
1
vote
1answer
41 views

Cross platform softlinks?

I am using a scientific software that require softlinks to work with reasonable efficiency. However, I'd also like to sync my data, that must contain bare data from that software (i.e. not packaged ...
2
votes
0answers
304 views

Can not cd into symlink on Debian 7

I want to give user webadmin full access to directory /usr/tomcat/webapps. So, I have created a symlink in webadmin's home directory to the target directory: lrwxrwxrwx 1 webadmin tomcat 28 Aug 19 ...
1
vote
2answers
3k views

How to create symbolic links to all files (class of files) in a directory?

I would like to create symbolic links (ln -s) to all files (or a class of files, e.g. ending with .bar) in a certain directory. Say I'm in the cwd and type ls ../source/*.bar gives me foo.bar ...
1
vote
1answer
147 views

How can I create a symbolic link from Windows that will work under Linux?

I have a ASUS O!Play HD media center hard-drive thingie. It has a 2TB hard drive which is formatted in NTFS, and runs some version of linux. The UI for this thing is awful, and every time I turn it ...
0
votes
0answers
350 views

Modify a symlink

Is there a way to modify a symlink in place? ln -fs a b This doesn't count, since it is unlinking and creating a new symlink (neither is it atomic, but that's a different story). Research suggests ...
0
votes
0answers
173 views

Symlinks are lost after running rsync to sync two directories

I have two identically named directories with similar subdirectories and I would like to merge the contents of one into the other. I'm trying to use rsync to do this and I'm finding that symlinks ...
5
votes
1answer
919 views

How to properly create symbolic link?

scenario : I'm in a place that is not in PATH I have a file name dofoo that is executable I want to create symbolic link in /usr/bin that points to dofoo in current directory quite hard to get the ...
3
votes
2answers
2k views

How to run a symlink pointing to an executable in terminal (Linux)

I installed NodeJs on an Ubuntu machine, and the package have been installed as nodejs. Now, to run it as node, I created a symlink: sudo ln -s /usr/bin/nodejs /usr/bin/node This will work if I ...
1
vote
2answers
688 views

Is it possible to create a subfolder inside a symlink folder but not be added into the parent folder?

Is a very tricky question, sorry about that Base on this Folder A file1 file2 Folder B ( symlink of Folder A (softlink) ) file1 file2 that i want to do is create a folder or file inside my ...