rm | Cleaning up recycle bin
Valeri Galtsev
galtsev at kicp.uchicago.edu
Mon Feb 24 01:25:09 UTC 2020
> On Feb 23, 2020, at 7:08 PM, Polytropon <freebsd at 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 at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
++++++++++++++++++++++++++++++++++++++++
Valeri Galtsev
Sr System Administrator
Department of Astronomy and Astrophysics
Kavli Institute for Cosmological Physics
University of Chicago
Phone: 773-702-4247
++++++++++++++++++++++++++++++++++++++++
More information about the freebsd-questions
mailing list