01-29-2009
Thanks John, The file systems are different. I am testing in two different filesystem, /home/user is one filesystem and /base/projects is another filesystem. But actually, in realtime, the directories are in the same filesystem
Does it mean that the links doesn;t work in different filesystems. Please guide.
I tried as below and i am getting an error when trying to link the directories
user@host:/home/user/wa/directory_A/$ ln /base/projects/directory_A/* /home/user/wa/directory_A
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, clone - create a link to a file
SYNOPSIS
ln [-ifmrRvx] file [name]
ln [-ifrRvx] file ... dir
clone [-ifmvx] file [name]
OPTIONS
-i Ask if ok to remove a file
-f Remove existing links
-m Merge trees, disable the into-a-directory trick
-rR Recursively link a directory tree
-v Display what ln is doing
-x Do not cross device boundaries
EXAMPLES
ln file newname # Make newname a synonym for file
ln /usr/games/chess # Create a link called chess
DESCRIPTION
A directory entry is created for name . The entry points to file . Henceforth, name and file can be used interchangeably. If name is not
supplied, the last component of file is used as the link name. If more than one file is supplied or the name refers to an existing direc-
tory, links will be created in that directory. An existing name will not be removed unless the -i or -f flag is specified.
Clone is a convenient synonym for ln -fmr to create a so-called "link farm", a directory full of links to the original tree.
SEE ALSO
cp(1), link(2), unlink(2).
LN(1)