I have a question regarding the PATH environment on SunOS.
I am setting the PATH as -
export PATH=$PATH:/bin
and /bin has a softlink as
lrwxrwxrwx 1 root root 9 Oct 1 2004 /bin -> ./usr/bin
So, will this path will work for the bin having the softlink?
Thanks for... (1 Reply)
I have to move a lpar from one 671 to another (aix 5.2 ML 07)
when I run mksysb, It alway hangs with "archieving file list"
I've tried to exlude every directory, but still not working
the only thing that can be a problem, is a hardlink directory
normally it should not be possible to... (4 Replies)
I'm trying to relink a file someone tried to delete while a process (that we don't want to shutdown) also had a filehandle open to it.
Consequently, we've got an inode entry but no directory entry (aka 'file') for it.
I've tracked the inode number down via lsof, as well as the particular... (0 Replies)
At risk of twisting the rules to nearly the point of breaking (if you think this goes too far mods, I apologise and accept that this should be deleted), I'm hoping someone might be able to cast a little light on the following problem regarding hard links to files.
... (6 Replies)
Hi,
We have a directory /oracle/UD1/sapdata1,since sapdata1 had no space we created a directory under /oracle/UD1/orarch/sapdata1 and soft linked /oracle/UD1/sapdata1 to /oracle/UD1/orarch/sapdata1 . Is there any way I can see if the files are being actually written to... (4 Replies)
I am facing a peculiar problem on SUN machine.
There is a soft link pointing to a directory. And there is a shell script inside this soft link which is trying to get the directory name from where this script is being executed.
NAME="$(cd $(dirname $0); pwd)"
I want to fetch the... (1 Reply)
Hi
there is a file 'linkk' and i have created a softlink for it in another directory.
$ pwd
/home/guest/khare
$ ln -s linkk /home/guest/khare/AWK/done
now under AWk dir i can see that the softlink is created.
$ pwd
/home/guest/khare/AWK
$ ls -lrt *done
lrwxr-xr-x 1 khare... (2 Replies)
May somebody can give me a hint. I am still using my old squeeze and it works the way I want. But my recent post about changing the owners rights, e.g. 777 or 755 anyway, it could be 644 as well. While configuring a new pc, just by chance I discovered how to enter the BIOS. And here it comes. I... (11 Replies)
Discussion started by: 1in10
11 Replies
LEARN ABOUT SUNOS
link
link(1M) System Administration Commands link(1M)NAME
link, unlink - link and unlink files and directories
SYNOPSIS
/usr/sbin/link existing-file new-file
/usr/xpg4/bin/link existing-file new-file
/usr/sbin/unlink file
DESCRIPTION
The link and unlink commands link and unlink files and directories. Only super-users can use these commands on directories.
Use link to create a new file that points to an existing file. The existing-file and new-file operands specify the existing file and
newly-created files. See OPERANDS.
link and unlink directly invoke the link(2) and unlink(2) system calls, performing exactly what they are told to do and abandoning all
error checking. This differs from the ln(1) command. See ln(1).
While linked files and directories can be removed using unlink, it is safer to use rm(1) and rmdir(1) instead. See rm(1) and rmdir(1).
/usr/xpg4/bin/link
If the existing file being hard linked is itself a symbolic link, then the newly created file (new-file) will be a hard link to the file
referenced by the symbolic link, not to the symbolic link object itself (existing-file).
OPERANDS
The following operands are supported:
existing-file Specifies the name of the existing file to be linked.
file Specifies the name of the file to be unlinked.
new-file Specifies the name of newly created (linked) file.
ENVIRONMENT VARIABLES
See environ(5) for descriptions of the following environment variables that affect the execution of link: LANG, LC_ALL, LC_CTYPE, LC_MES-
SAGES, and NLSPATH.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
/usr/xpg4/bin/link
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWxcu4 |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
SEE ALSO ln(1), rm(1), link(2), unlink(2), attributes(5), environ(5), standards(5)SunOS 5.10 9 Oct 2002 link(1M)