4번독수리의 둥지

/usr/bin vs /usr/local/bin on Linux 본문

Machine

/usr/bin vs /usr/local/bin on Linux

4번독수리 2016. 5. 31. 15:06

http://unix.stackexchange.com/questions/8656/usr-bin-vs-usr-local-bin-on-linux


  1. /bin (and /sbin) were intended for programs that needed to be on a small / partition before the larger /usr, etc. partitions were mounted. These days, it mostly serves as a standard location for key programs like /bin/sh, although the original intent may still be relevant for e.g. installations on small embedded devices.

  2. /sbin, as distinct from /bin, is for system management programs (not normally used by ordinary users) needed before /usr is mounted.

  3. /usr/bin is for distribution-managed normal user programs.

  4. There is a /usr/sbin with the same relationship to /usr/bin as /sbin has to /bin.

  5. /usr/local/bin is for normal user programs not managed by the distribution package manager, e.g. locally compiled packages. You should not install them into /usr/bin because future distribution upgrades may modify or delete them without warning.

  6. /usr/local/sbin, as you can probably guess at this point, is to /usr/local/bin as /usr/sbinto /usr/bin.


참고

https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard

'Machine' 카테고리의 다른 글

django2 + centos6 + virtualbox  (0) 2018.03.28
Setup firewalld for PHP server on CentOS 7 minimal  (0) 2016.07.25
Synerge 1.3.1  (0) 2015.06.08
SVN repository location 변경한 썰  (0) 2015.05.12
VMWare Player + CentOS 7 APM 설정  (0) 2015.04.05