FENIX_coreutils/ln.1

45 lines
1.1 KiB
Groff
Raw Normal View History

2020-12-02 02:31:04 +00:00
.TH LN 1
.SH NAME
ln \- link files
.SH SYNOPSIS
.B ln
[\fB\-fs\fR] [\fB\-L\fR|\fB\-P\fR]
.IR "source_file" \fI"target_file"\fR
.PP
.B ln
[\fB\-fs\fR] [\fB\-L\fR|\fB\-P\fR]
.IR "source_file..." \fI"target_dir"\fR
.SH DESCRIPTION
.B ln
creates links to a file or files. If the \fB\-s\fR option is
specified, a symbolic link is created. Otherwise, a hard link is
created. If multiple source files are given, links to each file are
created in the target directory.
.SH OPTIONS
A listing of options
.TP
.BR \-f
Overwrite any existing files with the same name as the link to be
created.
.TP
.BR \-s
Create symbolic links instead of hard links. If specified, any
instances of \fB\-L\fR and \fB\-P\fR are ignored.
.TP
.BR \-L
If a source file is a symbolic link, create a link to the file
referenced by the symbolic link.
.TP
.BR \-P
If a source file is a symbolic link, create a link to the symbolic
link.
.SH AUTHOR
Written by Kat.
.SH COPYRIGHT
Copyright (C) 2019 Katlynn Richey
.PP
This software is free software. Feel free to modify it and/or pass
it around.
.PP
This \fBln\fR implementation is a part of the fenutils package.