Why is /mnt a “temporary” mounting point? I alwags put my permanent ones there. I’d say /media is temporary…
Would like an easy way to remember.
- mnt = mount
- opt = optional ?
- etc = etcetera ?
- proc = process ?
- srv = server ?
- var = variable ?
/srv stands probably for
serve
as in serving static files like static websites. (Source)More information here: https://refspecs.linuxfoundation.org/FHS_3.0/fhs/index.html
A good first approximation.
So where in this setup would you mount a network share? Or am additional hard drive for storage? The latter is neither removable nor temporary. Also
/run
is quite more than what this makes it seem (e.g. user mounts can be located there), there is practically only one system path for executables (/usr/bin
)…Not saying that the graphic is inherently wrong or bad, but one shouldn’t think it’s the end all be all.
I do /volumX for additional hard drives.
For most network share I use /mnt/$server.
For most network share I use /mnt/$server.
I use
/mnt/$proto/$server
, though that level of organization was probably overkill. Whatever…I do /volumX for additional hard drives.
Or /home/me/drive
On debian when i mount an ftp server through my file browser it uses gvfs
This will mount it to /run/user/1000/gvfs/ftp:host=<IP>,port=<PORT>,user=<fpt-user>
I’m gonna blow everyone’s mind… I have my Linux system in a relatively small 4gb drive, and my home in a 4Tb drive. I mount my 4tb drive to /home/me as someone already said.
If my SSD for my OS takes a shit as people say, all you do is install it again, change fstab to swap the home directory and you’re back in business like nothing happened. That’s like 10 minutes install time on a good SSD these days. The other guy who mentioned this, didn’t point this out. The idea of separating my home folder into its own drive didn’t occur to me for years and years of using Linux. Every wrong update I was there copying home like a total windows 11 noob. I also install my extra drives and shares on /mnt, that’s standard.
It feels like
/opt
's official meaning is completely lost on developers/packagers (depending on who’s at fault), every single directory in my/opt
belongs to standalone software that should just be put into either/usr/lib
or/usr/share
with some symlinks or scripts into/usr/bin
.I’ve also seen creating there deployment or configuration stack of your choice.
honestly /home should has never been created we should have kept user homes in /usr
why
Because housing prices are ridiculous.
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.
The icon for media reminds me of a bidet on a floor plan.
I have always wondered why there was a developer folder(/dev)
Now i know that the government is trying to make people think it stands for something else so they can replace all programmers with advanced random number generators
Also /lib is where some people keep discarded capitalists
/lib/tar.d/
That’s a US-only extension mainly used by Facebook and Twitter members.
Not when I use it!
Visualizing it like this makes it so clear how incredibly outdated this design is.
What is outdated?
“Linux File Systems”
*List of root directories*
Uh, where are the file systems? EXT4… BTRFS… FAT32…
Meanwhile the Linux Standards Base cries in a corner.
That’s what I thought too. This is directory structure, not file systems.
FHS is an absolute dumpster fire that would never be dreamed up in this day and age
A pedantic thing to say, surely, but the title really should’ve been: “Linux Directory Structure” – ‘Linux filesystems’ (the title in the graphic) refers to a different topic entirely; the title of this post mitigates the confusion a bit, though still, ‘directory structure’ is the better term.
Right?
I was expecting superiors to the fat & exfat file storage systems
Yep, You are right. Done
To be more pedantic the correct title would be the Filesystem Hierarchy Standard (FHS)…which describes the directory structures
Sure but for example I understand that /dev and /proc are actually kind of filesystems on their own
Here’s a higher quality version
Great username
I need to get this in sticker form