2 ms·
I always thought the purpose of the /bin directory was for the basic unix commands. https://en.wikipedia.org/wiki/Unix_directory_structure#Conventional_directo
by collyw 13y ago
I always thought the purpose of the /bin directory was for the basic unix commands.
https://en.wikipedia.org/wiki/Unix_directory_structure#Conventional_directory_layout https://en.wikipedia.org/wiki/Unix_directory_structure#Conve...
- sergiosgc 13y agoI 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.