Article View: news.software.nn
Article #5286Re: Links of Binaries
From: Ofer Inbar
Date: Wed, 12 Jan 1994 23:47
Date: Wed, 12 Jan 1994 23:47
28 lines
2362 bytes
2362 bytes
craig@med.unc.edu (Ron Craig) writes: >I just installed nn on my machine, and it seems that many of >the commands (nnadmin, for example) are just copies of the >nn binary executable. Is there any reason that these copies >must be huge physical copies? Can't I just use a soft link >Here's what I have now: >-rwxr-xr-x 8 craig ds 432951 Jan 06 13:59 /usr/local/bin/nn >-rwxr-xr-x 8 craig ds 432951 Jan 06 13:59 /usr/local/bin/nnadmin >-rwxr-xr-x 8 craig ds 432951 Jan 06 13:59 /usr/local/bin/nnbatch >-rwxr-xr-x 8 craig ds 432951 Jan 06 13:59 /usr/local/bin/nncheck >-rwxr-xr-x 8 craig ds 432951 Jan 06 13:59 /usr/local/bin/nngoback >-rwxr-xr-x 1 craig ds 1204 Jan 06 13:59 /usr/local/bin/nngrab >-rwxr-xr-x 8 craig ds 432951 Jan 06 13:59 /usr/local/bin/nngrep >-rwxr-xr-x 8 craig ds 432951 Jan 06 13:59 /usr/local/bin/nnpost >-rwxr-xr-x 1 craig ds 3495 Jan 06 13:59 /usr/local/bin/nnstats >-rwxr-xr-x 8 craig ds 432951 Jan 06 13:59 /usr/local/bin/nntidy >-rwxr-xr-x 1 craig ds 1334 Jan 06 13:59 /usr/local/bin/nnusage These are not copies, they are hardlinks. They do not take up any extra space. You can see that they are links because in the ls output above, the link count for eight of your files is 8. If you used ls -i, you would see that all eight of these files have the same i-node. -- Cos (Ofer Inbar) -- cos@cs.brandeis.edu -- WBRS (BRiS) -- WBRS@binah.cc.brandeis.edu WBRS@brandeis.bitnet Brandeis University Computer Science Department (617) 736-2700 415 South Street, Waltham MA, 02254-9110 System Admin: 736-2717
Technical Details
Message-ID:
<cos.758418431@cs.brandeis.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmd.de!xlink.net!howland.reston.ans.net!noc.near.net!news.cs.brandeis.edu!cosReferences:
<2h1s67$nms@bigblue.oit.unc.edu>Show Full Headers
Complete Article Headers
Message-ID: <cos.758418431@cs.brandeis.edu> Subject: Re: Links of Binaries Date: Wed, 12 Jan 1994 23:47:11 GMT From: cos@cs.brandeis.edu (Ofer Inbar) References: <2h1s67$nms@bigblue.oit.unc.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmd.de!xlink.net!howland.reston.ans.net!noc.near.net!news.cs.brandeis.edu!cos Newsgroups: news.software.nn Sender: news@news.cs.brandeis.edu (USENET News System) Organization: Brandeis University Lines: 28