There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

kbin.life

FQQD , to linux in Linux File System
@FQQD@lemmy.ohaa.xyz avatar

i always thought /usr stood for “user”. Please tell me I’m not the only one

lascapi ,
@lascapi@jlai.lu avatar

You’re not the only one 😅 🙋

superkret ,

I thought it was United System Resources.
And I still don’t know what’s the point in separating /bin, /sbin, /usr/bin and /usr/sbin.
Also /mnt and /media
Or why it’s /root and not /home/root

4am ,

I think /mnt is where you manually mount a hard drive or other device if you’re just doing it temporarily, and /media has sub folders for stuff like cdrom drives or thumb drives?

superkret ,

Yeah, but why?
You can mount a hard drive anywhere, and why not put all the cdrom and thumbdrive folders in /mnt, too?

DarkMetatron ,

It gets even more complicated nowadays because most DE will mount removable drives somewhere in folders like /run/$USER/

Dalaryous ,

/media is for removable drives. If you mount something there, file managers like Gnome will show you the “eject” or “disconnect” button.

/mnt drives show up as regular network drives without that “eject” functionality.

umbraroze ,

/mnt is meant for volumes that you manually mount temporarily. This used to be basically the only way to use removable media back in the day.

/media came to be when the automatic mounting of removable media became a fashionable thing.

And it’s kind of the same to this day. /media is understood to be managed by automounters and /mnt is what you’re supposed to mess with as a user.

taaz ,

/sbin are system binaries, eg root only stuff, dunno the rest but I would guess there are some historical reasons for the bin usr/bin separation

superkret ,

I know the distinction between /bin and /sbin, I just don’t know what purpose it serves.

Historically, /bin contained binaries that were needed before /usr was mounted during the boot process (/usr was usually on a networked drive).
Nowadays that’s obsolete, and most distros go ahead and merge the directories.

linearchaos ,
@linearchaos@lemmy.world avatar

It’s easier to manage security that way.

Instead of having one binary folder full of stuff that’s intended to be run with privilege access and non-privilege access, all the privileged stuff goes in sbin and you don’t even see it in your path as a regular user. It also means that access rights can be controlled at the folder level instead of the individual file level.

Zeppo ,
@Zeppo@sh.itjust.works avatar

/home is often on a separate volume. You’d want root to be available in a maintenance situation where /home may not be mounted.

I don’t recall the reasons for the addition but /media is newer than /mnt.

grue ,

I don’t recall the reasons for the addition but /media is newer than /mnt.

Something to do with hard-coded mounts in /etc/fstab vs. dynamically-mounted removable media (USB drives etc.), I think.

DarkMetatron ,

Mostly historical reasons, /home was often a network mounted directory, but /root must be local.

And only regular users have their home in /home

mvirts ,

Idk why I feel compelled to add this info, but / doesn’t have to be local as long as the necessary kernel modules for mounting it are available in the initrd or built into the kernel.

DarkMetatron ,

Yes, that is true. I was speaking in the context of very early Unix/Linux before initrd was a thing.

jacobc436 ,

They hold “system binaries” meant for root user. It’s not a hard distinction but many if not most Linux fundamentals have their roots in very early computing, mainframes, Bell and Xerox, and this good idea has been carried into the here&now. Not sure about the provenance of this one, but it makes sense. isn’t /mnt /media different between distros? These aren’t hard and fast rules - some distros choose to keep files elsewhere from the “standard”.

/bin and /usr/bin, one is typically a symbolic link to another - they used to be stored on disks of different size, cost, and speed.

refspecs.linuxfoundation.org/…/ch03s16.html

unix.stackexchange.com/…/difference-between-bin-a…

DarkMetatron ,

And I still don’t know what’s the point in separating /bin, /sbin, /usr/bin and /usr/sbin.

This goes back to the olden days when disk space was measured in kilo and megabytes. /sbin/ and /usr/sbin have the files needed to start a bare bone Unix/Linux system, so that you could boot from a 800kb floppy and mount all other directories via network or other storage devices as needed.

schnurrito ,

I think it originally did under old Unix, it was what /home is nowadays; “Unix System Resources” is a backronym.

bubstance ,
@bubstance@lemmy.sdf.org avatar

You are correct and this can be seen in some of the old demos from the '80s floating around on YouTube. There is even a chart that specifically labels a directory like /usr/bwk as the user’s home.

Plan 9 also uses this old convention; users live under /usr and there is no /home.

Kuunha ,

Ken Thompson and Dennis Ritchie created Unix on a PDP-7 in 1969. Well around 1971 they upgraded to a PDP-11 with a pair of RK05 disk packs (1.5 megabytes each) for storage.

When the operating system grew too big to fit on the first RK05 disk pack (their root filesystem) they let it leak into the second one, which is where all the user home directories lived (which is why the mount was called /usr). They replicated all the OS directories under there (/bin, /sbin, /lib, /tmp…) and wrote files to those new directories because their original disk was out of space. When they got a third disk, they mounted it on /home and relocated all the user directories to there so the OS could consume all the space on both disks and grow to THREE WHOLE MEGABYTES. And thereafter /usr is used to store user programs while /home is used to store user data.

source: lists.busybox.net/pipermail/…/074114.html

jol ,

Yup same. I always wondered why there was a user folder when we already have home.

TrickDacy ,
@TrickDacy@lemmy.world avatar

Same. I actually feel like I remember the professor of my only unix class saying that. Hoping I’m wrong.

gerryflap ,
@gerryflap@feddit.nl avatar

I was just about to post the same thing. I’ve been using Linux for almost 10 years. I never really understood the folder layout anyway into this detail. My reasoning always was that /lib was more system-wide and /usr/lib was for stuff installed for me only. That never made sense though, since there is only one /usr and not one for every user. But I never really thought further, I just let it be.

AnUnusualRelic ,
@AnUnusualRelic@lemmy.world avatar

It’s always been for USeR binaries. It’s the first time I’ve seen this bizarre backronym (40 years of Unix here).

sirico , to linux in Linux File System
@sirico@feddit.uk avatar

immuatables be all about /var

Dirk , to linux in Linux File System
@Dirk@lemmy.ml avatar

A blast from the past!

CIAvash , to technology in What kind of messaging apps do you use?
@CIAvash@lemmy.world avatar

Delta Chat, SimpleX and Jami

todd_bonzalez , to linux in Linux File System
@todd_bonzalez@lemm.ee avatar

“Linux File Systems”

List of root directories

Uh, where are the file systems? EXT4… BTRFS… FAT32…

Zeppo ,
@Zeppo@sh.itjust.works avatar

That’s what I thought too. This is directory structure, not file systems.

moormaan , to linux in Linux File System

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 😂

velox_vulnus ,

This image is misinformation. That’s not a filesystem, that’s a layout standard called the FHS. Filesystems are FAT32, BTRFS, EXT4, etc.

c0smokram3r ,
@c0smokram3r@midwest.social avatar

Y’all got this! Good luck 🍀

Tiuku , to showerthoughts in Any observation can be turned into an interesting question.

I’m not so sure. What about an observation like “The empty set contains no elements.” ?

sxan ,
@sxan@midwest.social avatar

Which set contains no elements?

Or, more in the spirit of OP’s observation:

What are the fundamental rules for set theory?

InquisitiveApathy ,

You have to go more Im13andthisisdeep with it:

‘When a set has no elements we call it empty. It’s always unique, but contains nothing inside it. What is something else in your life that is also so simple and empty, yet utterly unique?’

Then you wait for a hundred replies, 50 listing various containers that are special to them and the other 50 telling you it’s their soul that’s empty.

s38b35M5 , to explainlikeimfive in ELI5 how come Discord can give out military specs and warn the FBI about a shooter without being tried to shutdown like tictok and others??
@s38b35M5@lemmy.world avatar

China=Bad

TikTok does what every other social media app does (which is 100% legal in the US, thanks to corrupt leaders and law makers), but:China, so: Bad.

MonkderVierte OP , to linux in [Answered] Any open source host solution for private users?

Yunohost seems what i look for. Thanks!

kuneho , (edited ) to linux in Linux File System
@kuneho@lemmy.world avatar
elvith ,

Since almost everything on the right would be located in /home/<username> on the left, it should include some of the subdirectories of %windir%\

kuneho ,
@kuneho@lemmy.world avatar

welp, it’s another story how useful is this picture 😄, it just came to my mind and brought me some nostalgia in the meantime towards the artist. (yeah, saying artist in this case is strange, but otherwise who made this is a digital artist, or was, idk how active still)

MonkderVierte , to science_memes in AI Artefacting

Die Geister die ich rief…

BradleyUffner , to linux in Linux File System

Those are directories, not filesystems.

velox_vulnus , (edited ) to linux in Linux File System

This is the FHS layout, which is one of the common layout style for Unix-like OSes, and it has nothing to do with Linux or filesystems in general. Misleading information. GoboLinux has what they call the GoboLinux hierarchy layout, that adheres to NeXTSTEP or BeOS. Nix and Guix has the Store hierarchy layout, wherein, everything is contained inside a store directory. Filesystems include FAT16, FAT32, exFAT, BTRFS, Bcachefs or EXT1/2/3/4, just to mention a few examples.

savvywolf , to linux in Linux File System
@savvywolf@pawb.social avatar

If my /bin contains exe files, something has gone very wrong somewhere…

Also, all these infographics are a sad casualty of the /usr/bin merge.

bigmclargehuge , to games in Spooky Games
@bigmclargehuge@lemmy.world avatar

Dusk. Quake meets Evil Dead. One of the best games I’ve played in years. It’s definitely more of a straight up shooter than a horror game, but the themes/setting/art style nail the spooktober vibe. I replay it every autumn and always have a great time

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • lifeLocal
  • goranko
  • All magazines