تفاوت /bin, /sbin, /usr/bin, /usr/sbin در لینوکس
- /**
- this is root directory */
/** / : this is root directory */
/** /bin : commands in this dir are all system installed user commands */
/** /sbin: commands in this dir are all system installed super user commands */
/** /usr/bin: user commands for applications */
/** /usr/sbin: super user commands for applications */
/** /usr/local/bin : application user commands */
/** /usr/local/sbin: application super user commands */
1.
Linux /bin, /sbin, /usr/bin, /usr/sbin 区别, CSDN Blog-IT-Homer:http://blog.csdn.net/ithomer/article/details/9839957↩
در لینوکس، این مسیرها معمولاً بر اساس نوع دستورها و اینکه برای چه کسی مناسباند تفکیک میشوند. خلاصهی هر مورد:
- /: ریشهی سیستم فایل (root directory)
- /bin: دستورهای نصبشده توسط سیستم برای کاربران (user commands)
- /sbin: دستورهای نصبشده توسط سیستم برای ابرکاربر/مدیر (super user commands)
- /usr/bin: دستورهای کاربران برای برنامهها (applications)
- /usr/sbin: دستورهای ابرکاربر/مدیر برای برنامهها (applications)
- /usr/local/bin: دستورهای کاربری برنامههایی که بهصورت محلی نصب میشوند
- /usr/local/sbin: دستورهای ابرکاربر/مدیر برنامههایی که بهصورت محلی نصب میشوند