3 ms·
Not necessarily. You could go the way of busybox or uutils and have a single binary with many hard links. So 'ls', 'wc', 'grep', etc can all point at a single
by jleahy 10y ago
Not necessarily.
You could go the way of busybox or uutils and have a single binary with many hard links. So 'ls', 'wc', 'grep', etc can all point at a single executable which dispatches to different functionality based on argv[0].
Then you can even share code between the binaries, which should make them even smaller.
- glandium 10y agols and grep are in /bin on my system. wc, coming from coreutils is in /usr/bin. But that's really only a small part of /usr/bin. $ dpkg -L coreutils | grep -c /usr/bin 76 Are you suggesting that all of e.g. GNOME should be a single program?
- cgag 10y agoWhy hard links over symlinks?
- hueving 10y agoSo someone doesn't unlink the main binary when they are cutting unused utils to save space.