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)
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)
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)
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)
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)
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)
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)
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)
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
LEARN ABOUT HPUX
symlink
symlink(2) System Calls Manual symlink(2)NAME
symlink - make symbolic link to a file
SYNOPSIS DESCRIPTION
The function creates a symbolic link. Its name is the pathname pointed to by path2, which must be a pathname that does not name an existing
file or symbolic link. The contents of the symbolic link are the string pointed to by path1.
RETURN VALUE
Upon successful completion, returns 0. Otherwise, it returns -1 and sets to indicate the error.
ERRORS
If fails, is set to one of the following values:
[EACCES] Write permission is denied in the directory where the symbolic link is being created, or search permission
is denied for a component of the path prefix of path2.
[EEXIST] The path2 argument names an existing file or symbolic link.
[EFAULT] path1 or path2 points outside the process's allocated address space. The reliable detection of this error
is implementation-dependent.
[EIO] An I/O error occurred while reading from path1, making the directory entry for path2, allocating the inode
for path2, or writing out the link contents of path2.
[ELOOP] Too many symbolic links were encountered in resolving path2.
[ENAMETOOLONG] The length of the path2 argument exceeds or pathname resolution of a symbolic link produced an intermediate
result that exceeds or a pathname component is longer than
[ENOENT] A component of path2 does not name an existing file or path2 is an empty string.
[ENOSPC] The directory in which the entry for the new symbolic link is being placed cannot be extended because no
space is left on the file system containing the directory, or the new symbolic link cannot be created
because no space is left on the file system which will contain the link, or the file system is out of file-
allocation resources.
[ENOTDIR] A component of the path prefix of path2 is not a directory.
[EROFS] The new symbolic link would reside on a read-only file system.
APPLICATION USAGE
Like a hard link, a symbolic link allows a file to have multiple logical names. The presence of a hard link guarantees the existence of a
file, even after the original name has been removed. A symbolic link provides no such assurance; in fact, the file named by the path1 argu-
ment need not exist when the link is created. A symbolic link can cross file system boundaries.
Normal permission checks are made on each component of the symbolic link pathname during its resolution.
AUTHOR
was developed by the University of California, Berkeley.
SEE ALSO cp(1), chown(2), link(2), lstat(2), open(2), readlink(2), unlink(2), symlink(4), <unistd.h>.
STANDARDS CONFORMANCE CHANGE HISTORY
First released in Issue 4, Version 2.
symlink(2)