Distros should ship with this this under /readme.jpg
Linux
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
Yes, you put the app in /opt, no not in /bin or /usr/bin
So where are programs installed?
I was playing with Linux the other day and installed something and was tearing my hair out trying to find where the exe or whatever was to launch the damn program.
None of the folders made any sense to me.
It should be in /bin or /usr/bin or /usr/local/bin. You can use "which" command to know
or /opt, or a binary in some hidden folder in /home...
Same as Windows and MacOS, really. You can follow best practices and conventions, or just install your software wherever you want.
I guess the problem is that app developers write the installers, and they suck at following conventions. Obligatory fuck Snap, as it creates a folder in the home dir, and it doesn't even bother to hide it, and it is not even reconfigurable.
/home is for every program to store its personal junk in hidden files apaprently
This is one of my biggest gripes stopping me from switching to Linux. I just can't give-up windows' partitions. I find Unix/Linux file system to be incompatible with how I like storing my files.
You can just create partitions and mount them at whatever path you like.
Hell, you can do /c/not/sure/why/you/like/this/better/clownfarts_penis
I like partitions to be at the root of my file system. And dedicate each one to a specific use. And even dedicate a separate hard drive for my personal files. When in need of transfer or repairs just move this drive to another PC and carry on the work while the former PC gets repaired or nuked.
You can absolutely do this. You can mount partitions anywhere off of /
I have 5 drives in a system and I mount them as /storage1 through /storage5
When you run git-bash from an install of the git suite, that's a valid pathname.
Oh. Just on my system?
This image shows how the system stores it's own stuff. Your junk will go in /home/mtchristo/whatever you want.
If you don't like that, you can do whatever you want. Linux will let you.
Think of it like in Windows where you have this structure.
That's an old image, though - Windows has a C:\Users\youruser setup like /home/youruser for a while now.
I find the %APPDATA% thing way less convenient than ~/.config and I'm quite happy when programs have the "bug" that they still use ~/.config on Windows.
Yeah, but my point is that every OS has system folders. And Linux gives you more freedom.
Bad wording on my part, I wasn't disagreeing. My file server has a /files directory because it saves me a few key strokes and because I can.
I'm pretty sure sbin
originally meant static binaries and not system binaries lol
I always thought /usr was for "user".... TIL
It did, let me explain:
On the original (ie Thompson and Ritchie at Bell in 1969-71), I think it was a PDP-11, they installed to a 512kb hard disk.
As their "stuff" grew they needed to sprawl the OS to another drive, so they mounted it under /usr and threw OS components that didn't fit.
https://landley.net/writing/unixpaths.pdf
I've done the same, outgrew so you mount under a tree to keep going, it just never became a historical artifact.
It is, this infographic is wrong. Or I guess technically some other standard could define it like the infographic, but the Filesystem Hierarchy Standard defines it as a secondary hierarchy specifically for user data.
/usr used to be the user home directory on Unix...well most of them. I think Solaris/SunOS has always been /export/home as I recall.
Huh. I did as well. Like /use/bin was for user installed applications and such. You learn something everyday.