4 ms·
On NixOS: % find /bin /usr /bin /bin/sh /usr /usr/bin /usr/bin/env /usr and /bin are only there to provide sh and env for compatibilit
by danieldk 7y ago
On NixOS:
% find /bin /usr
/bin
/bin/sh
/usr
/usr/bin
/usr/bin/env
/usr and /bin are only there to provide sh and env for compatibility with shell scripts.
- mcguire 7y agoIf nothing is in /bin or /usr/bin, where do proggies live? And what does your path look like?
- danieldk 7y agoIn the Nix store (/nix): % which cp /run/current-system/sw/bin/cp Each package has its own path in the nix store: % readlink $(which cp) /nix/store/l96gc2qb8ysnf5hcq1hp5a3r6x905rf4-coreutils-8.31/bin/cp The current system and previous systems also live in the store (Nix has atomic upgrades/rollbacks). Each system can be seen as a package with symlinks to binaries, man pages, etc. in the store. More information about the motivation behind Nix's approach can be found in Nix Pill 1: https://nixos.org/nixos/nix-pills/why-you-should-give-it-a-try.html#idm140737316693568 https://nixos.org/nixos/nix-pills/why-you-should-give-it-a-t...
- marcosdumay 7y agoIn NixOS, they are probably under some directory with a random name. This is the OS where each binary runs with a different path and library path, with only the programs it needs (on the versions it needs) linked there.