- cross-posted to:
- [email protected]
- cross-posted to:
- [email protected]
I rarely spot /srv in the wild.
I use /data for local server data.
Pretty sure openmediavault uses it, but that’s the only one I’ve seen
The icon for media reminds me of a bidet on a floor plan.
Just forwarded this pic to my dad. I’ll be guiding him in installing Mint on one of his old Windows desktops this coming Saturday! Wish us luck in the coming years 😂
deleted by creator
I’m sure this guy’s dad that needs help installing Linux will appreciate the clarification, good thing you’re here to point that out
Y’all got this! Good luck 🍀
I never understood the title for /usr. Now I do. Thanks!
I always thought it stood for user. I even say it that way.
It’s just short for “user;” “User System Resources” is probably a backronym.
This email explains it in detail: http://lists.busybox.net/pipermail/busybox/2010-December/074114.html
TLDR:
/usr
stands foruser
/home is for every program to store its personal junk in hidden files apaprently
Is it just me, or are the definitions for /sys and /proc mixed up?
No I thinks is basically right although could be better worded maybe
/sys is virtual file structure for kernel system info
/proc is virtual file structure of kernel process info
My understanding is /proc came first but was abused/free for all and started being used for all sorts of non standard/process kernel access. So /sys was created with stricter rules to make it more standardised.
Nah, it’s just that
/proc
is incorrect - it contains information about running processes, as well as kernel data structures as visible by the process reading them.
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.
I always thought /usr was for “user”… TIL
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.
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.
Linux file system is ext* tho.
https://lemmy.world/post/9437525
My version of this with a bit more detail
Thanks! I’ll save this, tell myself I’m going to strictly follow it this time and forget about it (again) lol
Edit: Thank you, found it on your shared link ! 😄
Oh wow thank you ! Would it be to much to ask for a dark mode version? If there’s a one hit button to change into a more eye friendly color mode :)
Either way, thank your for sharing your work :))
I still have no clue where permanently attached USB SSDs are supposed to be mounted. I just shove them into LVM2 and put the mapper under /mnt since putting them under /home wouldn’t let other users access them.
permanently attached USB SSDs are supposed to be mounted
Just mount them somewhere under
/
device, so if a disk/mount fails the mounts depended on the path can´t also fail.I keep my permanent mounts at
/media/
and I have a udev rule, that all auto mounted media goes there, so/mnt
stays empty. A funny case is that my projects BTRFS sub-volume also is mounted this way, although it is technically on the same device.
Much better, thanks!
Cool. Thanks for sharing!
except nowadays many distro mounts removable media under /run/media instead of /media (for good reason).
What’s the reason?
/run is a temporary fs, so if the mount, filesystem or even the entire system crashed, all the mounted data will be cleaned up after a reboot.
On the contrary, if the mount crashed, it might leave a folder or data on /media, making subsequent mount problematic.
Here is a well-written comment about the rationale behind this mount point: https://www.reddit.com/r/linuxquestions/comments/tzo984/comment/i40e2za/
Probably so that you don’t accidentally write to a directory by mistake when it isn’t mounted, and then lose access when you mount something over it, all while services are looking for files that are only there sometimes.
I’ve had exactly this happen to me. It was my own fault but it took a bit of work figure out.
Where would you mount non-removable media?
I think there is no rule, but I like to mount them on
/mnt
.A good discussion can be found here: https://www.reddit.com/r/linuxquestions/comments/u0ri07/where_do_you_usually_mount_your_internal_drives/
Wow. Talk about ways to skin a cat.
I mount mine to /media using autofs.
I was, at one point, using /mnt but ran in to some situation that Proxmox didn’t like that involved bind mounts (can’t remember what) and shifted them all over to /media.
Not when I use it!
honestly /home should has never been created we should have kept user homes in /usr
why
Because housing prices are ridiculous.
FHS is an absolute dumpster fire that would never be dreamed up in this day and age
I’m pretty sure
sbin
originally meant static binaries and not system binaries lol