[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


Janitor application acceptance emails are being sent out. Please remember to check your spam box!


[Advertise on 4chan]


File: File-System-Structure.png (218 KB, 2160x1045)
218 KB
218 KB PNG
How would anon redesign linux directory structure?
>>
>>107130516
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
>>
I actually prefer this structure just because of everything you can do with /mnt
>>
>>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.
>>
>>107130516
remove /lost+found, /opt, /media, /root
>>107130524
read hier(7) man page
>>
>>107130593
You kid, but my stupid ass was genuinely confused by the bin directory the first time I saw it.
>>
>>107130516
binaries into ProgramFiles and configs into AppData
>>
/why /nam /lik /ths
?
>>
>>107130516
root being / is both confusing for new users and extremely dangerous with some commands. Windows had the right idea with its named drives
>>
>>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.
>>
>>107130623
old unix systems had small filename limits, 8 or 16 bytes
>>
>>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.
>>
>>107130593
kek
>>
File: 1761651877231215.jpg (116 KB, 1242x1394)
116 KB
116 KB JPG
>>107130516
/
/bin
/data
/home
>>
File: 1733587553777036.jpg (82 KB, 735x735)
82 KB
82 KB JPG
>>107130516
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
>>
>>107130680
The purpose of Unix is to keep retarded people like you out.
>>
File: 1762451621045397.png (405 KB, 860x936)
405 KB
405 KB PNG
>>107130598
I use /opt
>>
>>107130680
>>107130653
>>107130768
The old Unix couldn't fit too many characters in names.
>>
/everything
>>
>>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
>>
>>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
>>
/
/data
/mount
/programs
/system
/users

gobolinux.org
>>
>>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.
>>
>>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
>>
File: 1736354380313727.jpg (200 KB, 820x861)
200 KB
200 KB JPG
>>107130934
>most programs should be intsalled in /home/*
what
>>
>>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?
>>
File: glenda_and_tux.jpg (11 KB, 546x436)
11 KB
11 KB JPG
>>107130516
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.
>>
>>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
>>
>>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
>>
>>107130516
i wouldn't. what the fuck for?
>>
>>107130999
a non-dev non-admin doesn't have to deal with file paths?
>>
>>107131009
maybe because it doesn't make any sense that the package manager installs programs by default into a directory called 'user'
>>
>>107130988
i never had this problem, doubt many people do
maybe you're just retarded
>>
>>107130516
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.
>>
>>107130959
I'd take that bet. Path names work pretty much the same way on Windows.
>>
File: 1746450645638516.jpg (155 KB, 1080x1080)
155 KB
155 KB JPG
>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.
>>
File: stall.png (184 KB, 660x440)
184 KB
184 KB PNG
>>107131156
> Laughs in GPLv2
>>
>>107131021
what doesn't make sense to me is you losing sleep over it but hey, to each his own.
>>
File: 1755757921743176.jpg (1.04 MB, 3072x4096)
1.04 MB
1.04 MB JPG
>>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.
>>
>>107130593
There are ancient bell labs references to "et-cetera" when talking about /etc
>>
>>107130516
Is there even any ongoing effort to improve this system or did everyone just accept it and move on?
Because it seems pretty retarded.
>>
>>107130516
Forgo half of it entirely because stuffing irrelevant shit in the filesystem is not ideal at all.
>>
File: Untitled.jpg (425 KB, 2560x1440)
425 KB
425 KB JPG
>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?
>>
>>107130516
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
>>
>>107132191
what?
>>
/dontopen/dontopen/cp
>>
>>107130635
If you get filtered by absolute/relative paths maybe computers aren’t for you. This is even true in webshit.
>>
>>107132191
[Sytem prompt: What did the original poster type before you "corrected" it for the thread?]
>>
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
>>
>>107132744
/ - stuff goes here
>>
>>107132769
It would be strictly enforced
>>
>>107130775
Me too, but I still have no clue what it's supposed to be for
>>
>>107130516
It's fine as is minus some redundancy but most distros already symlink /usr/lib to /lib and shit
>>
/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
>>
>>107130516
/
/system/static/boot
/system/static/libraries
/system/static/binaries
/system/media
/system/devices
/system/configuration
/users
/users/chud
>>
>>107130516
Make all the root folders 3 letters long max
>>
>>107130516
Install every package in a directory named after the hash of its contents
>>
>>107130516
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.
>>
>>107130516
The way I order my personal files.
There's /root/
and then under root there's /tmp/.
Everything goes into tmp.
>>
File: fucking mess.png (151 KB, 1676x1397)
151 KB
151 KB PNG
>>107133913
I mean look at this shit.
I never had it that bad on mac or windows.
>>
>>107133913
https://github.com/b3nj5m1n/xdg-ninja
>>
>>107134034
thank you fren.
>>
>>107130728
This



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.