HARDLINK(8) COMMAND REFERENCE HARDLINK(8) NAME hardlink - check and create hard links to files SYNOPSIS hardlink [ -c char ][ -f ][ -h ][ -n ][ -r root ][ -v ] specification_file ... DESCRIPTION Hardlink makes sure files are properly hard linked together by comparing the files in the filesystem against the lines of a specification file. Each line of the specification file is a description of which files should be hard linked together. See bom(5) and hardlink(5) for details of the file format. Hardlink prints error messages when it is unable to link files together. Hardlink assumes files with non-zero size are more important than those that are zero length. If hardlink determines two files are the same (by doing a binary file compare) and the two files were not originally linked together, hardlink removes one and links them together. OPTIONS -cchar Change the comment character in the specification file to char (default is % ). -f Forcibly make links to the first file in the specification line. It automatically removes any existing files other than the first listed. -h Help. Print a message describing the use of hardlink. No other action is taken no matter what other options are specified. -n Print a shell script to the standard output describing what hardlink would do, but don't do it. Standard output can be piped or given to /bin/sh. -rroot Append root to each file name being checked. (Default is null). -v Verbose. Print all errors encountered. In addition, print all comment lines from the beginning of the specification file to the first non-comment line. DIAGNOSTICS Each error message has a number enclosed in square brackets that indicate the line number of the input record causing Printed 4/6/89 1
HARDLINK(8) COMMAND REFERENCE HARDLINK(8) the error or message. RETURN VALUE [0] No errors occurred. [1] Errors occurred. [USAGE] Incorrect command line syntax. Execution terminated. [NP_ERR] An error occurred that was not a system error. Execution terminated. [P_ERR] A system error occurred. Execution terminated. See intro(2) for more information on system errors. CAVEATS Hardlink is unable to fix hard link counts, RCS ids, and checksums. Nor can it create devices. SEE ALSO cron(8), hardlink(5), and link(2). Printed 4/6/89 2
%%index%% na:336,99; sy:435,429; de:864,1269; op:2133,1297; di:3430,250;4088,28; rv:4116,580; ca:4696,265; se:4961,186; %%index%%000000000143