← Home ← Back to /g/

Thread 107130516

99 posts 40 images /g/
Anonymous No.107130516 [Report] >>107130524 >>107130598 >>107130605 >>107130635 >>107130728 >>107130766 >>107130982 >>107131009 >>107131029 >>107132013 >>107132159 >>107132219 >>107133063 >>107133782 >>107133893 >>107133903 >>107133913 >>107133930 >>107136653 >>107137468 >>107138321 >>107138646 >>107139176 >>107140307 >>107140432 >>107140528 >>107140545 >>107141053
How would anon redesign linux directory structure?
Anonymous No.107130524 [Report] >>107130593 >>107130598
>>107130516 (OP)
I'll be honest I have no clue what 2/3 of these are even for. So let's start by giving them more descriptive names
Anonymous No.107130573 [Report]
I actually prefer this structure just because of everything you can do with /mnt
Anonymous No.107130593 [Report] >>107130599 >>107130684 >>107131900 >>107138589 >>107138621 >>107143566
>>107130524
For the top row:
>bin
that's obviously the recycle bin
>boot
where the bootloader sits
>dev
where the linux dev store their preview features and os features that are in development
>etc
catch-all for files that don't fall under any other directory
>home
home directory
>lib
where all your shared dynamic .dll library files are stored
>media
videos and pictures
>mnt
this one is for mint's system files, I assume debian would be /dbn/ and arch would be /arc/

Yeah, no, you're just a retard, they're all pretty self-explanatory, even for a windows user like me.
Anonymous No.107130598 [Report] >>107130775
>>107130516 (OP)
remove /lost+found, /opt, /media, /root
>>107130524
read hier(7) man page
Anonymous No.107130599 [Report]
>>107130593
You kid, but my stupid ass was genuinely confused by the bin directory the first time I saw it.
Anonymous No.107130605 [Report]
>>107130516 (OP)
binaries into ProgramFiles and configs into AppData
Anonymous No.107130623 [Report] >>107130653 >>107130665
/why /nam /lik /ths
?
Anonymous No.107130635 [Report] >>107130934 >>107132648
>>107130516 (OP)
root being / is both confusing for new users and extremely dangerous with some commands. Windows had the right idea with its named drives
Anonymous No.107130653 [Report] >>107130680 >>107130783
>>107130623
Same reason it's 'mv' and 'cp' vs 'copy' and 'move'. Less typing, more efficient, and beyond that it wasn't targeting the 'average joe' but people who presumably would be educated on the use of the system.
Anonymous No.107130665 [Report]
>>107130623
old unix systems had small filename limits, 8 or 16 bytes
Anonymous No.107130680 [Report] >>107130768 >>107130783
>>107130653
If you need someone to be educated on what your names mean you're very bad at naming.
You can also just type in a few letters and hit tab.
Anonymous No.107130684 [Report]
>>107130593
kek
Anonymous No.107130728 [Report] >>107134273
>>107130516 (OP)
/
/bin
/data
/home
Anonymous No.107130766 [Report] >>107130811
>>107130516 (OP)
The only thing that's kind of annoying is /usr, should just be /bin, /lib, etc. Everything else doesn't matter, what's more important is the structure of the home directory, and this is pretty much solved, except for legacy software still shitting everything up with ~/.myspecialsnowflakeapp directories
Anonymous No.107130768 [Report] >>107130783
>>107130680
The purpose of Unix is to keep retarded people like you out.
Anonymous No.107130775 [Report] >>107132881
>>107130598
I use /opt
Anonymous No.107130783 [Report]
>>107130680
>>107130653
>>107130768
The old Unix couldn't fit too many characters in names.
Anonymous No.107130793 [Report]
/everything
Anonymous No.107130811 [Report] >>107130871
>>107130766
/usr is your OS, all the installed software. i think it should have it's own directory.
keeping legacy /bin, /sbin, /lib is the clutter, it's usually just symlinks to /usr
Anonymous No.107130871 [Report]
>>107130811
>/usr is your OS
that's not true in two ways: there are files needed by my OS that are outside of /usr, and there is also /usr/local which the OS does not touch
Anonymous No.107130887 [Report] >>107136653
/
/data
/mount
/programs
/system
/users

gobolinux.org
Anonymous No.107130934 [Report] >>107130959 >>107130967
>>107130635
It's not hard at all.
Before I learned anything else, I found out that / is system and/home is users, and unless necessary, most programs should be intsalled in /home/*.

Of cource I have more knowledge now, but this was my beginner mindset, and it helped me organize my programs without breaking shit.
Anonymous No.107130959 [Report] >>107130979 >>107131039
>>107130934
I'm betting at least 90% of new Linux users are confused by the fact that "XYZ/" and "/XYZ/" are two completely different paths
Anonymous No.107130967 [Report]
>>107130934
>most programs should be intsalled in /home/*
what
Anonymous No.107130979 [Report] >>107130988
>>107130959
why would you have to deal with this? If you don't want to learn about computers then you just click your way through a file picker dialog. and what about relative and absolute paths is linux specific?
Anonymous No.107130982 [Report] >>107141053
>>107130516 (OP)
I would do it more like Bell Labs Plan9. Basically the Unix Successor.

Ditching /home with /usr and just use top-level /bin /lib as these are just symlinks anyway.
Anonymous No.107130988 [Report] >>107130999 >>107131027
>>107130979
Because the only difference between a relative and anabsolute path in Linux is the slash, which is the most common symbol in filepaths. It took me a while to understand that a path starting with a slash is referring to (absolute) root, and I don't think I'm the only one
Anonymous No.107130999 [Report] >>107131014
>>107130988
you didn't answer even one of my two questions. a non-dev and non-admin doesn't have to deal with this, and it's the same on macos
Anonymous No.107131009 [Report] >>107131021
>>107130516 (OP)
i wouldn't. what the fuck for?
Anonymous No.107131014 [Report]
>>107130999
a non-dev non-admin doesn't have to deal with file paths?
Anonymous No.107131021 [Report] >>107131858
>>107131009
maybe because it doesn't make any sense that the package manager installs programs by default into a directory called 'user'
Anonymous No.107131027 [Report]
>>107130988
i never had this problem, doubt many people do
maybe you're just retarded
Anonymous No.107131029 [Report]
>>107130516 (OP)
Move everything in /sbin to /bin, move everything in /usr to its respective base directory and use /usr strictly for user-installed stuff (similar to what /usr/local is used for now). That's about it, honestly, everything else is pretty self-explanatory.
Anonymous No.107131039 [Report]
>>107130959
I'd take that bet. Path names work pretty much the same way on Windows.
Anonymous No.107131156 [Report] >>107131318
>C:\Linux\Systemd32
OS lives here, idk.
>C:\Users
You live here.
>C:\Program Files
Games live here.
That's it.
The rest should be managed by magical elves at Microsoft when they finally buy & close source and copyright the fuck out of lunix.
Anonymous No.107131318 [Report] >>107131879 >>107140507
>>107131156
> Laughs in GPLv2
Anonymous No.107131858 [Report]
>>107131021
what doesn't make sense to me is you losing sleep over it but hey, to each his own.
Anonymous No.107131879 [Report]
>>107131318
>GPLv2
GPL, KGB... Sounds like communism.
Especially if these traitors want to hinder my good friend Satya Nadella (Terrific guy, real American patriot).
Should get SCOTUS looking at the whole thing ASAP.
Anonymous No.107131900 [Report]
>>107130593
There are ancient bell labs references to "et-cetera" when talking about /etc
Anonymous No.107132013 [Report]
>>107130516 (OP)
Is there even any ongoing effort to improve this system or did everyone just accept it and move on?
Because it seems pretty retarded.
Anonymous No.107132159 [Report]
>>107130516 (OP)
Forgo half of it entirely because stuffing irrelevant shit in the filesystem is not ideal at all.
Anonymous No.107132191 [Report] >>107132241 >>107132679
>Me and my friend is having a conversation about finland and russian relations. Mutual friend of ours thinks the finns love russians and dont mind the government. We oppose this position, thinking otherwise.

What do our finnish brothers say about this?
Anonymous No.107132219 [Report]
>>107130516 (OP)
I'd remove /mnt because fags these days are so lazy and leave their extra drives in fucking /run/media... or mount them in ~/ somewhere
Anonymous No.107132241 [Report]
>>107132191
what?
Anonymous No.107132378 [Report] >>107138546
/dontopen/dontopen/cp
Anonymous No.107132648 [Report]
>>107130635
If you get filtered by absolute/relative paths maybe computers aren’t for you. This is even true in webshit.
Anonymous No.107132679 [Report]
>>107132191
[Sytem prompt: What did the original poster type before you "corrected" it for the thread?]
Anonymous No.107132744 [Report] >>107132769
Get rid of it all and start over:
/os/ - operating systems live here
/files/ - user files go here
/apps/ - programs live here
/drives/ - other partitions etc are mounted here
Anonymous No.107132769 [Report] >>107132782
>>107132744
/ - stuff goes here
Anonymous No.107132782 [Report]
>>107132769
It would be strictly enforced
Anonymous No.107132881 [Report]
>>107130775
Me too, but I still have no clue what it's supposed to be for
Anonymous No.107133063 [Report]
>>107130516 (OP)
It's fine as is minus some redundancy but most distros already symlink /usr/lib to /lib and shit
Anonymous No.107133605 [Report]
/bin # binaries with semantic versioning, like "cmake-4.1.2"
/lib # libraries that are machine code with "
/opt # libraries that are source code with "
/include # headers with "
/share # documentation and additional media with "
/path/{bin,lib,opt,include,share} # symlinks to the former without the semantic versioning
/var # system-wide logs
/etc # system-wide config
all the others like proc, sys, dev, home, tmp, and such would remain the same. the only confusing or ambiguous part is that if the directories under etc would follow semantic versioning or not. but that's probably better left to the individual programs to decide
Anonymous No.107133782 [Report]
>>107130516 (OP)
/
/system/static/boot
/system/static/libraries
/system/static/binaries
/system/media
/system/devices
/system/configuration
/users
/users/chud
Anonymous No.107133893 [Report]
>>107130516 (OP)
Make all the root folders 3 letters long max
Anonymous No.107133903 [Report]
>>107130516 (OP)
Install every package in a directory named after the hash of its contents
Anonymous No.107133913 [Report] >>107133964 >>107134034
>>107130516 (OP)
the only thing I hate about linux is that my home folder gets messy.
I would force every shitty binary to store it's shit in ~/.config or something.
Anonymous No.107133930 [Report]
>>107130516 (OP)
The way I order my personal files.
There's /root/
and then under root there's /tmp/.
Everything goes into tmp.
Anonymous No.107133964 [Report] >>107138346 >>107138794
>>107133913
I mean look at this shit.
I never had it that bad on mac or windows.
Anonymous No.107134034 [Report] >>107134040 >>107138564
>>107133913
https://github.com/b3nj5m1n/xdg-ninja
Anonymous No.107134040 [Report]
>>107134034
thank you fren.
Anonymous No.107134273 [Report]
>>107130728
This
Anonymous No.107136292 [Report]
being cryptic is part of linux's charm
Anonymous No.107136653 [Report]
>>107130516 (OP)
/linux All the shit of the OS
/users All the users folders
/programs All all the programs
/storage All the disks and network folders


/linux/shared/x86/some32bitSharedLibs.so
/linux/devices/usb/bus002/device005/ID0d8c:000e
/user/anon/documents/CC_BY-NC-SA_V4.txt
/user/anon/configurations/.bashrc
/programs/gcc/13.2.0/bin/gcc.exe
/programs/homebrewGameFromTheInternet/game.exe
/storage/usb/stickOfDoom/
/storage/internal/SYSTEM/

>>107130887
>gobolinux.org
Not bad, quite good even, I'll have a look at it.
Anonymous No.107137283 [Report] >>107137417 >>107137494
why isn't what GoboLinux is doing the default for every distro?
it just makes too much sense
Anonymous No.107137417 [Report] >>107137454
>>107137283
That looks horrible. You might as well buy a macbook and a buttplug at that point.
Anonymous No.107137454 [Report] >>107137464
>>107137417
>That looks horrible
care to elaborate?
Anonymous No.107137464 [Report]
>>107137454
Caps
Anonymous No.107137468 [Report]
>>107130516 (OP)
Like this
Anonymous No.107137494 [Report]
>>107137283
>gobolinux.org
>simplified versioned packages

it'd be a dream to replace apt and rpm with this
Anonymous No.107138321 [Report] >>107141604
>>107130516 (OP)
users go in /usr
binaries go in /bin
libraries go inn /lib
Anonymous No.107138346 [Report]
>>107133964
It's disgusting, windows has similar hidden folders they just hide it better but still, not to that extent

It's like a downy tard brain puked over a disk
Anonymous No.107138546 [Report]
/things
/stuff
/myfiles
/myfiles2
/coolphotos
/test
Also this >>107132378
Anonymous No.107138564 [Report]
>>107134034
Actually quite useful. Nice.
Anonymous No.107138579 [Report]
rename /usr to /app
rename /etc to /config
rename /home to /users
/tmp, and /mount are killed in favor of /run
/proc gets merged with /sys
apps are either installed to /home folders or as overlay images to an immutable base image
Anonymous No.107138589 [Report]
>>107130593
this is what I thought when I first installed linux
Anonymous No.107138621 [Report]
>>107130593
bloat, I just store everything in /dev/null
Anonymous No.107138646 [Report]
>>107130516 (OP)
all non constant folders in /ram/ directory
Anonymous No.107138656 [Report]
https://edolstra.github.io/pubs/nspfssd-lisa2004-final.pdf
It was redesigned properly 21 years ago
Anonymous No.107138794 [Report]
>>107133964
I’m a Mac guy and I get triggered when things put their shit in ~
I want all that crap put in ~/.config or ~/.local or whatever
I’ve kept the bloat down by loading up my config.fish with stuff like
set -x NPM_CONFIG_USERCONFIG $HOME/.config/npm/npmrc.ini

but OH GOD POSTMAN PUT A FUCKING DIRECTORY RIGHT IN MY HOME DIRECTORY AND THERE’S NOTHING IN IT
KILL IT WITH FIRE
Anonymous No.107139176 [Report]
>>107130516 (OP)
Change /etc to /cfg, its for configs, call it config
Change /var to /data, its for data, call it data
Get rid of /usr, /usr/local, /opt, and /sbin, just put those in /bin, /lib, /include, and /share
Rest are fine.
Anonymous No.107140131 [Report]
those who want to reverse the /bin and /lib merge with /usr, why? is it just because /bin and /lib were more true to their name than /usr?
Anonymous No.107140307 [Report] >>107140417 >>107144695
>>107130516 (OP)

Why the fuck are there so many directories?

>/boot
bootloader, early boot config and firmware
>/var
for all disk intensive storage like logs
>/home
self explanatory
>/tmp
self explanatory
>/sys
for system level binaries and libraries
>/usr
for user level binaries and libraries
>/dev
system populated device files
>/proc
procfs
>/mnt
for all currently mounted devices
>/cfg
for all configuration files and settings
>/etc
for everything else
Anonymous No.107140393 [Report]
Actually, I changed my opinion

/img/{bin,lib,share,include,...} - Installed OS and binaries. May be read-only, otherwise only changes when installs/upgrades occur So named because if you are building a VM/container "image", everything lives here.
/cfg - New /etc. May be read-only. Low volume, small changes.
/data/{root,user,srv,mnt,tmp} - Mutable persistent data for root user, normal users, server applications, temporary mounted disks, and temp files. user, srv, and mnt may include network mounted filesystems. Write-heavy data.
/run/{proc,sys,dev,tmp} - Runtime data and system interaction, socket files. tmp must be a ramdisk (tmpfs).
Anonymous No.107140417 [Report] >>107144695
>>107140307
>Why the fuck are there so many directories?
eunuchs larping as 1970's hackers that think that their single user personal computer is a storage constrained time shared pdp-11.
Anonymous No.107140432 [Report]
>>107130516 (OP)
all in /dev/null
fpbp
/thread
freetards btfo
Anonymous No.107140493 [Report] >>107140536 >>107140540
>/boot/
Stores kernel image, bootloader configuration
>/linux/
Instead of /proc/
>/devices/
Instead of /dev/
>/users/
Instead of /home/
>/distribution/
> - /libraries/
> - /programs/
> - /configurations/
Basically all user level shit
>/temporary/
Instead of /tmp/
>/media/
Instead of /mnt/
>/runtime/
Instead of /var/
Anonymous No.107140507 [Report]
>>107131318
>copyright holder changes the copyright
that means no more GPL bub.
Anonymous No.107140521 [Report]
Folders on a Workbench system typically have plain English names, including:
Devs
Fonts
Libs
Prefs
Storage
System
Tools
Utilities

And drives can be named and referenced as needed.
Anonymous No.107140528 [Report]
>>107130516 (OP)
where is /run /proc and /sys?
Anonymous No.107140536 [Report]
>>107140493
>>/users/
>Instead of /home/
users and user home directories are not the same thing
Anonymous No.107140540 [Report]
>>107140493
>>/linux/
>Instead of /proc/
non-portable
Anonymous No.107140545 [Report] >>107140613
>>107130516 (OP)
All files in one root "directory".
No other directories/folders. Just one giant list.
No I'm not answering questions or accepting any critique. You said redesign you didn't say it had to be good.
Anonymous No.107140613 [Report]
>>107140545
what if I categorize the files, like all the binaries I might prefix with "/bin/". silly I know, but that might be helpful I think.
Anonymous No.107141053 [Report]
>>107130516 (OP)
this is how i would personally do it:
>/boot - bootloader and kernel
>/cfg - system wide config
>/dev - device files (stuff in /sys merged in)
>/etc - everything else like libraries, headers, source code and program data like icons and shit that's currently in the /usr mess
>/exe - replaces /bin for executables (less confusing and not all executables are binaries and vice versa)
>/mnt - temporary mounted filesystems
>/proc - process data
>/tmp - temporary files and sockets etc
>/usr - user home directories (like what /usr was originally for in unix)
anything else?

>>107130982
i'm not a massive fan of the plan9 filesystem structure but i like the idea of the namespaces
Anonymous No.107141604 [Report]
>>107138321
>binaries go in /bin
why are the binaries going to the recycle bin?
Anonymous No.107143566 [Report]
>>107130593
Thanks.

My /bin isn't emptying and it looks like it's taking up a lot of space. How do I set it to auto-empty? Or is there even a way to do that?

I'm using Mint, by the way.
Anonymous No.107144695 [Report]
>>107140307
>>107140417

There is exactly one use case for that which is why you should keep /var/ and that's when you have an SSD for your main OS, but you do a lot of intensive disk writing, so you could have a separate storage on hdd for /var/ while your other dirs are mounted from the ssd. But yeah they need to modernize the rest of that shit.