ความแตกต่างของ /bin, /sbin, /usr/bin, /usr/sbin ใน Linux
- /**
- 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↩
ในระบบ Linux ไดเรกทอรีสำคัญเหล่านี้มีบทบาทต่างกันตามลักษณะของคำสั่งและระดับผู้ใช้งาน โดยสรุปได้ดังนี้
- / คือไดเรกทอรีราก (root directory)
- /bin: คำสั่งที่ติดตั้งมาจากระบบ โดยเป็นคำสั่งสำหรับผู้ใช้งาน
- /sbin: คำสั่งที่ติดตั้งมาจากระบบ ซึ่งเป็นคำสั่งสำหรับผู้ดูแลระบบ/ซูเปอร์ยูสเซอร์
- /usr/bin: คำสั่งสำหรับผู้ใช้งานของแอปพลิเคชัน
- /usr/sbin: คำสั่งสำหรับผู้ดูแลระบบ/ซูเปอร์ยูสเซอร์ของแอปพลิเคชัน
- /usr/local/bin: คำสั่งสำหรับผู้ใช้งานของซอฟต์แวร์ที่ติดตั้งในเครื่อง (local)
- /usr/local/sbin: คำสั่งสำหรับผู้ดูแลระบบ/ซูเปอร์ยูสเซอร์ของซอฟต์แวร์ที่ติดตั้งในเครื่อง (local)