Date: Sun, 23 Feb 2020 19:25:05 -0600 From: Valeri Galtsev <galtsev@kicp.uchicago.edu> To: Polytropon <freebsd@edvax.de> Cc: Steve O'Hara-Smith <steve@sohara.org>, freebsd-questions@freebsd.org Subject: Re: rm | Cleaning up recycle bin Message-ID: <9FAFBB4E-04E8-4965-A8F9-3F32086F293E@kicp.uchicago.edu> In-Reply-To: <20200224020823.2462aad4.freebsd@edvax.de> References: <a589bf69-a53b-a732-08ff-74e09b723bbd@cloudzeeland.nl> <20200223184908.b35d656a.freebsd@edvax.de> <20200223182411.81a22ce74509b8778a39d8d3@sohara.org> <20200224020823.2462aad4.freebsd@edvax.de>
next in thread | previous in thread | raw e-mail | index | archive | help
> On Feb 23, 2020, at 7:08 PM, Polytropon <freebsd@edvax.de> wrote: > > On Sun, 23 Feb 2020 18:24:11 +0000, Steve O'Hara-Smith wrote: >> Multiple entries for the same file are quite common for binaries, >> for example /bin/csh and /bin/tcsh are links to the same file, or for that >> matter nearly everything in /rescue is a link to the same file. When there >> are multiple links to a file none of them are special, they're all just >> links. > > Technically, they serve a very specific purpose: When a program > is invoked, it can query argv[0] for the name it was called with. > In case of "csh" vs. "tcsh", this can affect the shell's behaviour. > It's even more obvious for all the programs in /rescue, where > for example "cp" and "ps" point to the same binary, but make that > binary do totally different things when invoked. > > While a symbolic link (symlink) is, as their name suggests, > just a symbolic name for a different file or directory, a > hardlink is actually just an additional name for a file, > and there is no precedence in hard links (like with symlinks, > "_this_ is a reference, but _that_ is the original); they're > all originals. That's why a hardlink can never cross the > border of a filesystem, while a symlink can. > > > > On Sun, 23 Feb 2020 18:58:18 -0600, Valeri Galtsev wrote: >> Thank you, Steve! Very educational. We (I at least) sometimes >> forget fundamentals. > > That's why my little addition for educational completeness. ;-) > Thank you, Polytropon! I can say pretty much about everything you post on the list: very educational, and detailed! Valeri > > > -- > Polytropon > Magdeburg, Germany > Happy FreeBSD user since 4.0 > Andra moi ennepe, Mousa, ... > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" ++++++++++++++++++++++++++++++++++++++++ Valeri Galtsev Sr System Administrator Department of Astronomy and Astrophysics Kavli Institute for Cosmological Physics University of Chicago Phone: 773-702-4247 ++++++++++++++++++++++++++++++++++++++++
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9FAFBB4E-04E8-4965-A8F9-3F32086F293E>
