4 ms·
I always thought of it as the place for essential binaries needed for system rescue (single user boot). For this reason, they should also be statically linked.
by sergiosgc 13y ago
I always thought of it as the place for essential binaries needed for system rescue (single user boot). For this reason, they should also be statically linked. I got this a long time ago from reading the Filesystem Hierarchy Standard [1]
Not that this rule of thumb helps define the location of bash. It may or may not be considered essential for recovery.
[1] https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard http://www.linuxfoundation.org/collaborate/workgroups/lsb/fhs http://www.linuxfoundation.org/collaborate/workgroups/lsb/fh...
- dredmorbius 13y agoNot necessarily statically linked, though IIRC OpenBSD's /bin/sh is for both robustness and security reasons. Debian distros offer an alternative sashroot login which uses the stand-alone shell, which is both statically linked and includes numerous additional built-ins useful for recovery or forensics work.