0 points

honestly /home should has never been created we should have kept user homes in /usr

permalink
report
reply
1 point

why

permalink
report
parent
reply
2 points

Because housing prices are ridiculous.

permalink
report
parent
reply
-3 points

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.

permalink
report
reply
17 points

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.

permalink
report
parent
reply
6 points
*

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.

permalink
report
parent
reply
1 point

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

permalink
report
parent
reply
6 points

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

permalink
report
parent
reply
4 points

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

Oh. Just on my system?

permalink
report
parent
reply
1 point

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.

permalink
report
parent
reply
4 points

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

permalink
report
parent
reply
1 point

FHS is an absolute dumpster fire that would never be dreamed up in this day and age

permalink
report
reply
81 points

I don’t get why this sort of picture always gets posted and upvoted when it’s wrong for most distros nowadays.

permalink
report
reply
7 points

It seems handy when you’re learning about stuff but only when you haven’t learned enough to realize it’s not correct.

permalink
report
parent
reply
12 points

Can you recommend one that is correct? I use pop_os (Ubuntu) and Arch. Kinda curious about either one

permalink
report
parent
reply
34 points
*

Not aware of any correct pictures, but I can tell you what’s wrong with this one

  • /usr: explaining it as “Unix System Resources” is a bit vague
  • /bin: /bin is usually a symlink to /usr/bin
  • /sbin: /sbin is usually a symlink to /usr/sbin, distros like Fedora are also looking into merging sbin into bin
  • /opt: many, I’d say most, “add-on applications” put themselves in bin
  • /media: /media is usually a symlink to /run/media, also weird to mention CD-ROMs when flash drives and other forms of storage get mounted here by default
  • /mnt: i would disagree about the temporary part, as I mentioned before, stuff like flash drives are usually mounted in /run/media by default
  • /root: the root user is usually not enabled on home systems
  • /lib: /lib is usually a symlink to /usr/lib

I would also like the mention that the FHS standard wasn’t designed to be elegant, well thought out system. It mainly documents how the filesystem has been traditionally laid out. I forget which folder(s), but once a new folder has been made just because the main hard drive in a developer’s system filled up so they created a new folder named something different on a secondary hard drive.

permalink
report
parent
reply
5 points

Thanks for this. I’m always confused by the layout and this tend to stick to putting things in the same places, even if they’re wrong :)

permalink
report
parent
reply
3 points

On my distro(Bazzite), /mnt is only a symlink to /var/mnt. Not sure why, but only found out the other day.

permalink
report
parent
reply
6 points
-5 points
*

This needs some modernization and simplification, if Linux ever wants to make it to the mainstream.

This is a much better layout:
/system (contains /boot, /dev, /proc, /run, /sys, /tmp and /var, all the stuff no one ever looks at)
/config (/etc renamed to something sensible)
/apps (contains /bin, /sbin, /usr, /lib and /opt)
/server (renamed /srv, only gets created when needed)
/users (renamed /home, also contains /root now)

permalink
report
reply
4 points

That’s not POSIX

permalink
report
parent
reply
0 points

POSIX sounds like Po-sex which is German for buttsex.

permalink
report
parent
reply
2 points

This is truly an education forum. Danke!

permalink
report
parent
reply
8 points

No one ever looks at /var? Isn’t that where my Apache dir lives? Sorry, I’ve been off Linux for a while. I think I put Git in there as well.

permalink
report
parent
reply
4 points

/bin and /sbin are symlinks already from /usr, so that’s more than half of “apps”.

permalink
report
parent
reply

Linux

!linux@lemmy.ml

Create post

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

Community stats

  • 6.7K

    Monthly active users

  • 4.1K

    Posts

  • 56K

    Comments