01-29-2009
i also tried within the same filesystem and it didn't work either :-(
user@host:/base/projects/$ ln /base/projects/directory_A/* /base/projects/directory_B
ln: 0653-423 /base/projects/directory_A/Sybase_Scripts is a directory. Cannot hard link.
ln: 0653-423 /base/projects/directory_A/Utilities is a directory. Cannot hard link.
ln: 0653-423 /base/projects/directory_A/action is a directory. Cannot hard link.
ln: 0653-423 /base/projects/directory_A/bin is a directory. Cannot hard link.
ln: 0653-423 /base/projects/directory_A/generalLedger is a directory. Cannot hard link.
ln: 0653-423 /base/projects/directory_A/hedgeScenarios is a directory. Cannot hard link.
ln: 0653-423 /base/projects/directory_A/instSource is a directory. Cannot hard link.
ln: 0653-423 /base/projects/directory_A/sqlsource is a directory. Cannot hard link.
ln: 0653-423 /base/projects/directory_A/tk is a directory. Cannot hard link.
10 More Discussions You Might Find Interesting
1. AIX
Hi, I was wondering if someone can help me out with one of my simple problems. I have a filesystem, /oracle/dir1/sapdataA. The client has the filesystem /oracle/dir1/sapdata1. Now I want to link these 2 directories so that if I cd to /oracle/dir1 and do an ls -l I get the following output:
cd... (3 Replies)
Discussion started by: brookingsd
3 Replies
2. Shell Programming and Scripting
I want to link directory to another directory
pls confirm whether i am doing correct or not
I want to link test directory to another hist directory
/users/test/
ln -s /users/hist
pl confirm (1 Reply)
Discussion started by: getdpg
1 Replies
3. Solaris
Hi,
In root folder there is one directory "/usr/sap/P38/TRX00/index" as the data is going to increase so to aviod root fs become 100% full ,we have to create one soft link that would point to another point mount created with on same disk ultimatly that New Fs(/test) will store data instead of... (2 Replies)
Discussion started by: solaris123
2 Replies
4. Web Development
Because of permission issues, I need to link to images in my web page which are stored in /tmp which of course is located in the root directory but my actual html page is much further down in another directory. I thought the the following code should work, but the image comes up as a broken link:... (2 Replies)
Discussion started by: Solerous
2 Replies
5. AIX
Hi All,
I have directory "A" on server "1".
I also have directory "B" on Server "2"
I need to link these 2 directories "A" and "B" which are across servers.
Is it possible?
If so, can somebody help me on this?
Thanks in advance.
Mugundan (2 Replies)
Discussion started by: mjdarm
2 Replies
6. UNIX for Advanced & Expert Users
Is it possible to Hard link a directory? Some people on google say it is possible and some say it is not possible. I haven't seen a working solution though. (3 Replies)
Discussion started by: cokedude
3 Replies
7. UNIX for Dummies Questions & Answers
Hi ,
i am trying to make a symbolic link for an existing directory, but i am facng some problems regarding the usage of command.
If there is no directory i can make a symbolic link, but for an existing directory i am not able to.
can anyone post me the exact usage if we already have the... (1 Reply)
Discussion started by: sahasra
1 Replies
8. Post Here to Contact Site Administrators and Moderators
(split from another thread)
Hi.
Can you please post a copy of the exact link you used?
I have no trouble accessing either the readme, or the link to "Featured Books and Articles by Active Forum Members - Links"
Thanks. (2 Replies)
Discussion started by: Scott
2 Replies
9. Shell Programming and Scripting
Hi,
Can anyone please advise why the following is not working as I expected it to be?
Test script as below:
#!/bin/ksh
for checkdir in dir*
do
echo "Checking ${checkdir}"
if ; then
echo "... ${checkdir} is a directory"
elif Output from sample run as below:
$:... (8 Replies)
Discussion started by: newbie_01
8 Replies
10. Solaris
Hi,
I need to create a link as stagein01 for the /p11/prod/stagein01/.
Please let me know the procedure for the same.
Regards,
VN (5 Replies)
Discussion started by: narayanv
5 Replies
ln(1) General Commands Manual ln(1)
Name
ln - link to a file
Syntax
ln [ -f ] [ -i ] [ -s ] name1 [name2]
ln [ -f ] [ -i ] [ -s ] name ... directory
Description
A link is a directory entry referring to a file. A file, together with its size and all its protection information may have several links
to it. There are two kinds of links: hard links and symbolic links.
By default makes hard links. A hard link to a file is indistinguishable from the original directory entry. Any changes to a file are
effective independent of the name used to reference the file. Hard links may not span file systems and may not refer to directories.
Given one or two arguments, creates a link to an existing file name1. If name2 is given, the link has that name. The name2 may also be a
directory in which to place the link. Otherwise it is placed in the current directory. If only the directory is specified, the link is
made to the last component of name1.
Given more than two arguments, makes links to all the named files in the named directory. The links made have the same name as the files
being linked to.
Options
-f Forces existing destination pathnames to be removed before linking without prompting for confirmation.
-i Write a prompt to standard output requesting information for each link that would overwrite an existing file. If the response from
standard input is affirmative, and if permissions allow, the link is done. The -i option has this effect even if the standard input is
not a terminal.
-s Creates a symbolic link.
A symbolic link contains the name of the file to which it is linked. The referenced file is used when an operation is performed on
the link. A on a symbolic link returns the linked-to file. An must be done to obtain information about the link. The call may be
used to read the contents of a symbolic link. Symbolic links may span file systems and may refer to directories.
See Also
cp(1), mv(1), rm(1), link(2), readlink(2), stat(2), symlink(2)
ln(1)