[an error occurred while processing this directive]
HP OpenVMS SystemsUNIX Portability Initiative |
|
Hard Link Example (
You can enable hard links by using either the
To initialize an ODS-5 disk with hard links enabled, enter the following command:
To enable hard links on a mounted Files-11 volume, enter the following command:
If you have a volume that has hard links enabled, and you want to disable hard links, end the SET VOLUME command:
Note, however, disabling hard links can result in some strange file behavior. For example, assume that you have disabled hard
links, as shown in the preceding example, but you would like to create an alias for your file
First you create an alias for
Now delete the original file:
To fix this problem, or to check the number of hard links to a file, enter the following command: This command counts the number of directory entries that reference each file and sets the link count if it is incorrect.
Before you create aliases for files on disks that have previously had hard links enabled, be sure to use the
To report link counts, use
To check the number of links, enter the following command:
|