Questions tagged [ln]

Use this tag for questions related to the `ln` (link) command. The `ln` command is available in *nix OS to create links, allowing more than one filename to refer to the same file. Two types of links can be created using `ln`: symbolic links and hard links. Do not use this tag to refer to the natural base-e logarithm (furthermore base-e log is written "log" in most programming languages): use the [natural-logarithm] for that.

The ln (link) command is used in *nix OS to create links, allowing more than one filename to refer to the same file. Two types of links can be created using ln:

  1. Symbolic links: refer to a symbolic path indicating the abstract location of another file. The two file names need not be on the same file system. System call: symlink().
  2. Hard links: refer to the specific location of a physical file. The two file names must both be on the same file system. System call: link().

Note: For questions related to ln function which is used to calculate logarithms, please use the tag.

162 questions
0
votes
1 answer

ln -s command failing in Solaris

I have a situation where my installation process runs a script which creates symbolic links for couple of files. The case here is the links are not being created and ln -s command is getting failed with the below error. No such file or…
user218045
  • 113
  • 1
  • 2
  • 11
0
votes
2 answers

How to create link to directory in makefile in Linux?

I have makefile containing code below. ddd : @mkdir -p /full/path_new/to/new_dir @ln -fs /full/path_old/to/old_dir/private /full/path_new/to/new_dir/private Linux ln command creates link in both directory taget and parent. It means I…
0
votes
1 answer

Is it possible to create links between two perforce repositories?

Is it possible to create a link between two perforce repositories, kind of like symbolic links in linux. Example: //depot/mydir/A@ -> //depot/mydir/B/ So when you try to sync //depot/mydir/A, you will sync //depot/mydir/B/... Or integrate, or so on.…
0
votes
1 answer

Cannot make symbolic links

I run a webpage on CentOS 6.6 by using Apache 2.4.10. My documentroot is /var/www/htdocs. Last month, because my disk became full, I added another disk in /disk1. I want to place large movie files in this directory and want visitors of my website to…
junao
  • 3
  • 1
0
votes
2 answers

find and create hard link with regex in different path

The below script finds a file, then creates a hard link in a destination path. find /path/to/files -name "example" -exec ln {} /path/to/destination/ \; I would like to create the link using the following 'y/./ /; s/[()]//g;…
David Custer
  • 621
  • 1
  • 7
  • 11
0
votes
1 answer

man does not find man pages associated with the source files pointed to by symbolic links

My hard drive recently crashed, so I took the opportunity to upgraded from Mac OS X 10.6.8 to 10.9.5 from a fresh install. Mavericks comes with "gcc" Apple LLVM version 6.0 (clang-600.0.51). I want to use gcc-mp-4.8 that I downloaded from…
irritable_phd_syndrome
  • 4,631
  • 3
  • 32
  • 60
0
votes
2 answers

Why do I get an error when I pass a symbolic link to Gnuplot under Cygwin?

I get an error when using a symbolic link in gnuplot: on l: drive plot "/j/projMainpips/Aggregate/dailyStats.txt" u 1:4 w l lw 1 warning: Skipping unreadable file "/j/projMainpips/Aggregate/dailyStats.txt" No data in plot The link was created…
ManInMoon
  • 6,795
  • 15
  • 70
  • 133
0
votes
1 answer

linux commands mkdir, rm -r and ln -s -T in processing phase of IZPack 5.0.0

I am using JBoss 7.1.1 application server with my java application in linux and have successfully been able to start JBoss during the processing phase of IZPack(processSpec.xml). I was getting "command not found" messages during the processing…
0
votes
1 answer

copy link into multiple subfolders

I am looking if there is a simple use of ln program to create multiple symbolic links in multiple subdirectories all pointing to same file. Example. I'm in a directory /home/user/workspace and want to make a symbolic link of…
0
votes
2 answers

mdfind used for creating symlinks not working as expected

I am trying to use the output from mdfind to create a bunch of symlinks. Output of mdfind is like this: /pathtofile1/ /pathtofile2/ /pathtofile3/ So, I used sed to add ln -s to the start of each line, and awk {print $0 "/directory where I want…
Andrew J. Freyer
  • 591
  • 2
  • 12
  • 38
0
votes
1 answer

Why does moving symlinked directory A to symlinked directory B cause A to be moved inside B?

Scenario: I'm writing a shell script that checks to see if a directory exists; if it does, and it's a symlink, it renames the directory with .bak appended to the directory name. I noticed, however, that if I'm moving a symlinked directory (directory…
3cheesewheel
  • 9,133
  • 9
  • 39
  • 59
0
votes
1 answer

share tomcat logs using tomcat http service

In our testing enviornment (Linux), we use tomcat http service to share logs. for example, In tomcat/webapps/ROOT, ln -s tomcat/logs share-log, then everyone can access tomcat logs http://tomcatip.domain.com:8080/share-log But I have issue with one…
0
votes
2 answers

mac osx ln command: linking directories mac osx with alias or symbolic link?

I have a tool (EVEHQ) on my bootcamp windows xp installed. I'm running parallels to use the application. works great. Problem is the application has a hardwired (binary) directory path it uses to store some data. I need the data on the mac side. I…
Fred
  • 165
  • 8
0
votes
1 answer

(Linux/General) concering /bin/rocks

So I am trying to install a software not "supported" by my linux distro (Ubuntu) I have it under control, but I am curious about some coding I was told to use. sudo ln -s /bin/true /bin/rocks sudo ./setup.sh This was suggested after I…
jon_shep
  • 1,363
  • 3
  • 15
  • 24
0
votes
1 answer

Creating a Symbolic Link to Access MySQL with Automatic Login

I am looking for a simpler way to log in to MySQL through the terminal without having to input my username and password each time. I am using MAMP and to access my databases, I just simply type mysql and it is accessed. To do that I just created a…
Chris Mellor
  • 347
  • 5
  • 15
1 2 3
10
11