this post was submitted on 06 Sep 2024
1226 points (95.7% liked)

Linux

48185 readers
1332 users here now

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

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
top 50 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 2 months ago

Distros should ship with this this under /readme.jpg

[–] [email protected] 2 points 2 months ago

Yes, you put the app in /opt, no not in /bin or /usr/bin

[–] [email protected] 9 points 2 months ago (1 children)

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.

[–] [email protected] 6 points 2 months ago (1 children)

It should be in /bin or /usr/bin or /usr/local/bin. You can use "which" command to know

[–] [email protected] 9 points 2 months ago (1 children)

or /opt, or a binary in some hidden folder in /home...

[–] [email protected] 5 points 2 months ago (1 children)

Same as Windows and MacOS, really. You can follow best practices and conventions, or just install your software wherever you want.

[–] [email protected] 8 points 2 months ago

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.

[–] [email protected] 46 points 2 months ago

/home is for every program to store its personal junk in hidden files apaprently

[–] [email protected] -3 points 2 months ago (2 children)

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.

[–] [email protected] 6 points 2 months ago (2 children)

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

[–] [email protected] 1 points 2 months ago (1 children)

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.

[–] [email protected] 3 points 2 months ago

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

[–] [email protected] 4 points 2 months ago

When you run git-bash from an install of the git suite, that's a valid pathname.

Oh. Just on my system?

[–] [email protected] 17 points 2 months ago (1 children)

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.

[–] [email protected] 6 points 2 months ago* (last edited 2 months ago) (1 children)

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.

[–] [email protected] 1 points 2 months ago (1 children)

Yeah, but my point is that every OS has system folders. And Linux gives you more freedom.

[–] [email protected] 1 points 2 months ago

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.

[–] [email protected] 13 points 2 months ago

I'm pretty sure sbin originally meant static binaries and not system binaries lol

[–] [email protected] 35 points 2 months ago (3 children)

I always thought /usr was for "user".... TIL

[–] [email protected] 11 points 2 months ago

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.

[–] [email protected] 22 points 2 months ago (1 children)

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.

[–] [email protected] 5 points 2 months ago* (last edited 2 months ago)

/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.

[–] [email protected] 2 points 2 months ago

Huh. I did as well. Like /use/bin was for user installed applications and such. You learn something everyday.

load more comments
view more: next ›