this post was submitted on 06 Sep 2024
150 points (94.1% liked)

Linux

5371 readers
33 users here now

A community for everything relating to the linux operating system

Also check out !linux_memes@programming.dev

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 1 year ago
MODERATORS
 
top 21 comments
sorted by: hot top controversial new old
[–] reisub@discuss.tchncs.de 24 points 2 months ago (2 children)

This is outdated, since /bin, /sbin and /lib now should be merged with their /usr counterparts

[–] neidu2@feddit.nl 12 points 2 months ago* (last edited 2 months ago)

Also, fuck /media. All of my (middle aged) homies hate /media

[–] Hamartiogonic@sopuli.xyz 1 points 2 months ago

It’s a tradition at this point. If you post an infographic about unix/linux system folders, you’re obliged to avoid all modern sources. Preferably, you would use material that is at least 20 years old.

[–] neidu2@feddit.nl 23 points 2 months ago

WTF, for the past 25 years, I thought /usr was short for /user, partially because of FreeBSDs preference for having user homes in /usr/home/*

[–] gofsckyourself@lemmy.world 15 points 2 months ago

Here's a higher quality version

[–] webghost0101@sopuli.xyz 12 points 2 months ago (5 children)

So where am i supposed to mount my permanent other file systems?

I used to mount them to home, after realizing how much headache that was causing i moved them to mnt. Surely that makes the most sense?

[–] Ghoelian@lemmy.dbzer0.com 12 points 2 months ago* (last edited 2 months ago) (1 children)

I usually put them in /media, so my games drive for example lives in /media/games.

Seems to mostly fit with the usual external media that gets mounted there.

[–] Hubi 3 points 2 months ago

Yup, that's what I do too. Mine are mounted to /media/user/ by default.

[–] astrsk@fedia.io 11 points 2 months ago

/mnt is reasonable and normal. I have used /mnt, /data, /media for various hardware and software mounted storage. It really doesn’t matter unless you’re dealing with some specific software or organization with esoteric requirements.

[–] neidu2@feddit.nl 6 points 2 months ago

You mount them to /proc for extra spiciness

[–] Kyatto@leminal.space 6 points 2 months ago (2 children)

You can just make a new folder, I put mine on /data

[–] adespoton@lemmy.ca 4 points 2 months ago

Doesn’t even have to be new; I’ve got one at ~/Downloads in my fstab.

[–] webghost0101@sopuli.xyz 3 points 2 months ago

Its like the gates of heaven have just opened…

[–] Scoopta@programming.dev 4 points 2 months ago

/mnt or /media usually. I use /mnt for permanent filesystems and /media for removable ones but there are no hard rules. My home folder is a separate filesystem from my rootfs, just depends on how you want things setup.

[–] bionicjoey@lemmy.ca 12 points 2 months ago

A more accurate and detailed explanation is available by running man hier

[–] nanook@friendica.eskimo.com 1 points 1 month ago

Temporary files can be created by user programs. On my machines, I made /tmp an in memory file system and also disallow execution or setuid/gid in this directory as much malware tries to abuse it in this manner.

[–] cupcakezealot@lemmy.blahaj.zone 1 points 2 months ago

i know it would never happen but id love for microsoft to adopt a structure like this

[–] takeheart@lemmy.world 1 points 2 months ago (1 children)

What's the difference between run time program data and temporary files? Is /tmp just for system level processes but not for user space?

[–] Lemongrab@lemmy.one 2 points 1 month ago

You can shove anything in /tmp, it is (by default) read/writeable by all users/groups. Plenty of user apps create files/folders in tmp

[–] Tehdastehdas@lemmy.world 1 points 2 months ago

Cryptic mess, needs a redesign.

[–] Mr_Blott@feddit.uk 0 points 2 months ago

I don't have this problem because I use Windows snorts