I have six directories with command files. These are /bin
, /sbin
, /usr/bin
, /usr/sbin
, /usr/local/bin
and /usr/local/sbin
.
What are the differences between these? If I'm writing my own scripts, where should I add them?
Related:
- How to understand the Ubuntu file system layout?
- /usr/bin vs /usr/local/bin on Linux
- Where should I put my bash scripts