📄 lndir.man
字号:
.\" $XConsortium: lndir.man /main/10 1996/09/28 16:16:45 rws $.\".\" Copyright (c) 1993, 1994 X Consortium.\" .\" Permission is hereby granted, free of charge, to any person obtaining.\" a copy of this software and associated documentation files (the.\" "Software"), to deal in the Software without restriction, including.\" without limitation the rights to use, copy, modify, merge, publish,.\" distribute, sublicense, and/or sell copies of the Software, and to.\" permit persons to whom the Software is furnished to do so, subject to.\" the following conditions:.\" .\" The above copyright notice and this permission notice shall be.\" included in all copies or substantial portions of the Software..\" .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,.\" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF.\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT..\" IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR.\" OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,.\" ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR.\" OTHER DEALINGS IN THE SOFTWARE..\" .\" Except as contained in this notice, the name of the X Consortium shall.\" not be used in advertising or otherwise to promote the sale, use or.\" other dealings in this Software without prior written authorization.\" from the X Consortium..\" .TH LNDIR 1 "Release 6.1" "X Version 11".SH NAMElndir \- create a shadow directory of symbolic links to another directory tree.SH SYNOPSIS.B lndir[.B \-silent] [.B \-ignorelinks].I \|fromdir\|[.I todir].SH DESCRIPTIONThe.I lndirprogram makes a shadow copy .I todir of a directory tree.I fromdir, except that the shadow is notpopulated with real files but instead with symbolic links pointing atthe real files in the .I fromdirdirectory tree. This is usually useful for maintaining source code fordifferent machine architectures. You create a shadow directorycontaining links to the real source, which you will have usuallymounted from a remote machine. You can build in the shadow tree, andthe object files will be in the shadow directory, while thesource files in the shadow directory are just symlinks to the realfiles..PPThis scheme has the advantage that if you update the source, you need not propagate the change to the other architectures by hand, since allsource in all shadow directories are symlinks to the real thing: just cdto the shadow directory and recompile away..PPThe.I todirargument is optional and defaults to the current directory. The.I fromdirargument may be relative (e.g., ../src) and is relative to.I todir(not the current directory)..PP .\" CVS.adm is used by the Concurrent Versions System.Note that RCS, SCCS, CVS and CVS.adm directories are not shadowed..PPIf you add files, simply run.I lndiragain. New files will be silently added. Old files will bechecked that they have the correct link..PPDeleting files is a more painful problem; the symlinks willjust point into never never land..PPIf a file in \fIfromdir\fP is a symbolic link, \fIlndir\fP will makethe same link in \fItodir\fP rather than making a link back to the(symbolic link) entry in \fIfromdir.\fP The \fB\-ignorelinks\fP flagchanges this behavior..SH OPTIONS.IP \-silentNormally \fIlndir\fP outputs the name of each subdirectory as itdescends into it. The \fB\-silent\fP option suppresses these statusmessages..IP \-ignorelinksCauses the program to not treat symbolic links in \fIfromdir\fPspecially. The link created in \fItodir\fP will point back to thecorresponding (symbolic link) file in \fIfromdir\fP.If the link is to a directory, this is almost certainly the wrong thing..IPThis option exists mostly to emulate the behavior the C version of\fIlndir\fP had in X11R6. Its use is not recommended..SH DIAGNOSTICSThe program displays the name of each subdirectory it enters, followedby a colon. The \fB\-silent\fP option suppresses these messages..PPA warning message is displayed if the symbolic link cannot be created.The usual problem is that a regular file of the same name alreadyexists..PPIf the link already exists but doesn't point to the correct file, theprogram prints the link name and the location where it does point..SH BUGSThe.I patchprogram gets upset if it cannot change the files. You should never run.I patchfrom a shadow directory anyway..PPYou need to use something like.nf find todir \|\-type l \|\-print \||\| xargs rm.fito clear out all files before you can relink (if fromdir moved, for instance).Something like.nf find . \|\\! \|\-type d \|\-print.fiwill find all files that are not directories.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -