5 ms·
"Like many Unix users, I long ago created a ~/bin/ directory in my home directory" No, this is my laptop - /usr/bin is the place for that. No, this is a simpl
by gerdesj 7y ago
"Like many Unix users, I long ago created a ~/bin/ directory in my home directory"
No, this is my laptop - /usr/bin is the place for that. No, this is a simple server - /usr/bin is the place for that.
Perhaps I'm missing something after 23 odd years of using Unix systems including this Arch laptop.
- Macha 7y ago/usr/bin is under the control of your package manager _ unless you're building and installing packages for all your adhoc scripts, aren't you worried about name collisions?
- yissp 7y agoI know Arch's package manager, at least, will refuse to install a package if it would overwrite an existing file.
- ISO-morphism 7y agoI keep ~/bin for easy version control/backups of my own scripts. I don't want to make a directory/repo for each script, and for getting them on PATH I can either add ~/bin to PATH or remember to run ln -s ~/bin/* /usr/bin/ after adding a script. Adding to PATH has saved me a few seconds of minor frustration at no cost.
- ses1984 7y agoUsr stands for universal system resource, look up the file hierarchy standard.
- kps 7y agoNo, it's short for ‘user’.
- timbit42 7y agoMore precisely 'users'. Every user can access it.
- mikelward 7y agoIt started out as a separate drive for home directories and files that didn't fit on the first drive. cf. /usr/dmr (Dennis Ritchie), and /usr/ken (Ken Thompson). https://blog.w1r3.net/2018/01/06/rob-landley-about-usr-split.html https://blog.w1r3.net/2018/01/06/rob-landley-about-usr-split...
- kps 7y ago‘Users’ because that's where users' home directories were, like /home in Linux FHS or /Users in Mac OS. Then acquired overflow versions of bin et al. when the root disk filled up.
- deleted 7y ago[deleted]
- yjftsjthsd-h 7y agoI can't write to /usr without root, and I can write to home. I also personally like a clear delineation between things that are managed by the package manager and by myself.
- zozbot234 7y agoStuff in /usr/(bin|share|...) might get overwritten by system update or reinstall. A better choice is /usr/local/
- pvaldes 7y ago/usr/local/bin?