06-08-2006
Quote:
Originally Posted by Vikas Sood
I did not know that you could create soft links for directories as well. Thanks again for your reply.
No problem. There's no limit on what kind of files you can symlink because all a symlink contains, is a path. It'll even let you link to files that don't exist, though they'll fail to open when you use them, much like a webpage 404.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
hi ,
I was applying patches after that when i reboot i get these message. I did not do anything other thatn this. Now i am unable to start my oracle . Tell me how to solve this
These are the error messages
forceload of /drv/rdriver failed
/drv/rdmexus failed
... (7 Replies)
Discussion started by: sathiya
7 Replies
2. UNIX for Dummies Questions & Answers
hi people,
I'm trying to create a mount point, but am having no sucess at all, with the following:
mount -F ufs /dev/dsk/diskname /newdirectory
but i keep getting - mount-point /newdirectory doesn't exist.
What am i doing wrong/missing?
Thanks
Rc (1 Reply)
Discussion started by: colesy
1 Replies
3. UNIX for Advanced & Expert Users
is there any command to know the list of mount points in a server.i need only the mount point lists.i tried using df but it was not helpful.i am using Solaris (1 Reply)
Discussion started by: dr46014
1 Replies
4. AIX
Hello, I have an AIX Oracle database server that I need to create a new filesystem/mount where I can create a new ORacle home to install 11g on. What are the needed steps to create this? There are mounts for Oracle 9i and 10g already. Thank you.
- David (7 Replies)
Discussion started by: dkranes
7 Replies
5. Red Hat
Hi,
Can you tell me something about NFS mount point ?
Regards,
Maddy (3 Replies)
Discussion started by: Maddy123
3 Replies
6. Red Hat
Dear All,
We have two different mount points in Linux NFS one is 15 TB and another one is 15 TB.
Can we club both of the two mount points and club in to a single volume in Linux.
As we need to restore Database in that single volume.
Kindly help us on this.
Regards ,
rj (10 Replies)
Discussion started by: jegaraman
10 Replies
7. UNIX for Beginners Questions & Answers
guys i would like to know can we have 2 mount point which is same name but on different directory? (3 Replies)
Discussion started by: leecopper
3 Replies
8. AIX
I have situation where my disk upon reboot, has its mount point as #
LOGICAL VOLUME: disk4vol VOLUME GROUP: disk4vg
LV IDENTIFIER: 00f609aa00004c0000000152414b786c.1 PERMISSION: read/write
VG STATE: active/complete LV STATE: closed/syncd
TYPE: jfs2 WRITE VERIFY: off
MAX LPs: 512 PP SIZE: 512... (1 Reply)
Discussion started by: mrmurdock
1 Replies
9. UNIX for Beginners Questions & Answers
How to create a new mount point with 600GB and add 350 GBexisting mount point
Best if there step that i can follow or execute before i mount or add diskspace IN AIX
Thanks (2 Replies)
Discussion started by: Thilagarajan
2 Replies
10. UNIX for Beginners Questions & Answers
Hi there,
I have a mount point that is locked.
How do I unlocked it? (1 Reply)
Discussion started by: alvinoo
1 Replies
LEARN ABOUT DEBIAN
symlink
SYMLINK(2) Linux Programmer's Manual SYMLINK(2)
NAME
symlink - make a new name for a file
SYNOPSIS
#include <unistd.h>
int symlink(const char *oldpath, const char *newpath);
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
symlink():
_BSD_SOURCE || _XOPEN_SOURCE >= 500 || _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED || _POSIX_C_SOURCE >= 200112L
DESCRIPTION
symlink() creates a symbolic link named newpath which contains the string oldpath.
Symbolic links are interpreted at run time as if the contents of the link had been substituted into the path being followed to find a file
or directory.
Symbolic links may contain .. path components, which (if used at the start of the link) refer to the parent directories of that in which
the link resides.
A symbolic link (also known as a soft link) may point to an existing file or to a nonexistent one; the latter case is known as a dangling
link.
The permissions of a symbolic link are irrelevant; the ownership is ignored when following the link, but is checked when removal or renam-
ing of the link is requested and the link is in a directory with the sticky bit (S_ISVTX) set.
If newpath exists it will not be overwritten.
RETURN VALUE
On success, zero is returned. On error, -1 is returned, and errno is set appropriately.
ERRORS
EACCES Write access to the directory containing newpath is denied, or one of the directories in the path prefix of newpath did not allow
search permission. (See also path_resolution(7).)
EEXIST newpath already exists.
EFAULT oldpath or newpath points outside your accessible address space.
EIO An I/O error occurred.
ELOOP Too many symbolic links were encountered in resolving newpath.
ENAMETOOLONG
oldpath or newpath was too long.
ENOENT A directory component in newpath does not exist or is a dangling symbolic link, or oldpath is the empty string.
ENOMEM Insufficient kernel memory was available.
ENOSPC The device containing the file has no room for the new directory entry.
ENOTDIR
A component used as a directory in newpath is not, in fact, a directory.
EPERM The file system containing newpath does not support the creation of symbolic links.
EROFS newpath is on a read-only file system.
CONFORMING TO
SVr4, 4.3BSD, POSIX.1-2001.
NOTES
No checking of oldpath is done.
Deleting the name referred to by a symlink will actually delete the file (unless it also has other hard links). If this behavior is not
desired, use link(2).
SEE ALSO
ln(1), lchown(2), link(2), lstat(2), open(2), readlink(2), rename(2), symlinkat(2), unlink(2), path_resolution(7), symlink(7)
COLOPHON
This page is part of release 3.44 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
Linux 2010-09-20 SYMLINK(2)