[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / 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


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: 1756537686946495.png (12 KB, 360x360)
12 KB PNG
>bin
>stores shell scripts
>>
File: 334.jpg (36 KB, 1024x574)
36 KB JPG
>>109624547
>var/db/repos/local
>no local repos
>>
File: purple-lifes.jpg (89 KB, 976x549)
89 KB JPG
>C:\Windows
>>
>>109624547
binaries also uses interpreter just like shell scripts
ELF binaries for example is executed by /lib64/ld-linux-x86-64.so.2
>>
>etc
>isn't a folder for random things you don't know where else to put

loonix is illogical garbanzo
>>
I grew up on Windows 9x with proper names for folders so hate the Unix/Linux 1970's style directory structure and naming so I just don't look at it or think about it
>>
>dev
>no developer stuff
>>
>>109624547
You have to regularly delete the contents of /bin, since it's your recycle bin and if you don't clear it out regularly you run out of space.
>>
>Recycle Bin
>isn’t a decentralised encrypted cloud back up folder for all my stuff
>>
>>109625619
That's what /var (various) is for.
>>
>mnt
>nothing is mounted there
>>
>>109624547
The Unix FHS is absolute dogshit. It made sense in the 70s it's irrelevant today.
>>
>>109625619
Really should be called /cfg
>>
File: 1787476425.png (619 KB, 976x850)
619 KB PNG
>>109625787
>>mnt
>>nothing is mounted there
there will when i mnt your mom!
>>
File: 1536450177638.png (619 KB, 963x720)
619 KB PNG
>/lib
>doesn't contain blue haired landwhales and trannies
>>
>/home/
>nobody lives there
>>
>>109624547
>shellbags
>stores folders
>>
>>109625619
Linux doesn't have folders, niggers. What you mean are directories
>>
>>109625872
>switch from Ubango (TM) to Fedora (TM)
>Plug USB
>Popup thing shows
>I can access it in file manager
>cp -R /media/<tab><tab><tab>
>nothing happens
>fedora mounts you usb to /run/media/.... instaed of /media
wow, what a glorious idea
>>
>>109626055
don't care, folder is faster to say and write than directory and confuses fewer people.
makes pedants seethe, that's a bonus.
>>
>>109626236
But there are no folders on linux. So you are telling people to go to something that doesn't exist. That's a lie.
>>
>>109626275
haven't seen the files being any paper-like either. it's all lies!!!
>>
>>109626296
But you can print them on paper? You can't print the folder
>>
>>109626275
>But there are no folders on linux
this is just shameless
and we have tards constantly shilling that nonfunctional junk here
>>
>>109625619
yes it is? that's literally why its called that
>>
>>109626328
>You can't print the folder
lol
lmao, even
>>
>>109624547
>apk add rsnapshot
>file /usr/bin/rsnapshot
>/usr/bin/rsnapshot: Perl script text executable
>>
>>109624547
should have called it exe
>>
>>109625734
> var
It stood for variable, so your growable arbitrary sized partitions were mounted there (like var/log).
> ..but i read on the internerf…
>>
>>109624547
What was /sbin for then?
>>
>>109625619
> System32/
> stores 64-bit binaries
>>
>>109629429
>SysWoW64
>doesn't contain anything amazing
>>
>>109624547
The entire unix filesystem hierarchy is a historically grown tumor.
>no, you see, /usr definitely always stood for Unix System Resources, not "users". And it's so obvious what the difference between /usr/local/share vs /usr/share vs /opt is could not possibly be more obvious. It's so obvious and clear that every program treats these things differently and no matter which religious interpretation you decide to accept, it will contradict most programs you encounter.
>>
>/etc
>missing "and so on ..."
>>
>>109626275
There is no folders on windows either. Not now, not ever.
Retards are everywhere though.
“I’m going to 3.5" floppy my file to my OneDrive so I don’t loose my changes”
People confuse the icon with what actually is, does, or connotes. “Illiteracy” doesn’t cover it. They can’t figure out how to assemble Ikea furniture either. This is why AI use is so popular among the illiterate.
>>
File: file.png (280 KB, 737x416)
280 KB PNG
>>109629498
You're a pedantic piece of shit, directories are referred to as folders all over Windows. Go back to eating paint chips and stop bothering people with your mental disorder.
>>
>>109624547
>black people
>aren't black
>aren't people
>>
>>109629557
Imagine not using MKDIR and worshipping the “thoughts” of some UI weenie or marketing droid.

Go get updated on elon musks latest thoughts twatted out and obey any discernible actions contained therein without questioning them.
>>
File: 1769723873659936.webm (2.95 MB, 1056x1052)
2.95 MB
2.95 MB WEBM
>>109629329
>Perl
>>
File: 1769079699737623.jpg (134 KB, 1435x1026)
134 KB JPG
blkdiscard -f /dev/nvme0n1
>>
File: Chudawakens.png (229 KB, 478x825)
229 KB PNG
>shebang
>Still rejects me: Permission denied
>>
>>109629437
>>109629429

>SysWoW64 has 32bit binaries
>System32 has 64bit binaries
>there might be an SysArm32 on some arm devices
>>
>>109625787
It's where you can manually mount non-removable media/partitions but only meant to be temporary
Removable media should be mounted under /media
>>
>>109629414
Things you dont want to have in regular users PATH, that's also why there is a games folder
>>
>>109631804
>non-removable
?
>>
>>109624547
You must be a wintard.
/bin = user command binaries "bin" for short.
/home/you/bin = user scripts or binaries.
you can even convert shell scripts to binary format with the shc program.
https://github.com/neurobin/shc
<code>shc -f <script> -o <executable_name></code>
>>
>>109631820
the ones that fuse with your computer after use
>>
>>109631830
/bin aka /usr/bin is for proggies that come from your package manager
/usr/local/bin is for your own custom proggies/scripts that everyone on your system can access
/home/you/bin is only for you
>>
>>109631843
>/usr/local/bin is for your own custom proggies/scripts that everyone on your system can access
Im the only user so custom scripts go in /home/me/bin
>>
>>109631830
In windows, you just keep adding to %PATH% until you go over the environment block size limits and your command lines start failing in comical ways.
>>
File: 1769917048049547.png (72 KB, 400x224)
72 KB PNG
>>109631830
>The compiled binary will still be dependent on the shell specified in the first line of the shell code
>>
File: 1787544096221.png (129 KB, 404x404)
129 KB PNG
if you're so smart what's your system directory hierarchy?
>>
>>109632491
/sys
/home
Done.
>>
>>109632540
how would you organize /sys
>>
>>109632570
>organizing
That's for the home folder. For sys, just dump all the shit in there, flat.
>>
>>109632576
how would you handle name conflicts?
>>
>>109631843
You're a big guy if you use your own bin
>>
>>109632491
/usr for user stuff (home)
/proc for processes
/cfg for config (etc)
/lib
/bin

/var goes in lib. binaries are system-wide or stored in home folder
>>
>>109632442
>The compiled binary will still be dependent on the shell specified in the first line of the shell code
Yeah, the program is literally for converting shebang scripts to c binaries.
The -U -H flags looks interesting though.
-U : Make binary to be untraceable (using strace, ptrace, truss, etc.)
-H : Hardening. Extra security flag without root access requirement that protects against dumping, code injection,
cat /proc/pid/cmdline, ptrace, etc.. This feature is experimental and may not work on all systems. it require bourne
shell (sh) scripts any positional parameters.
>>
>>109626055
>>109626275
>>109629557
You're a braindead skiddie faggot who just discovered linux and thinks whatever new abstraction layer you're working with is L33thaxxors and the real deal. News flash faggot. They're all metaphors all the way down. All software terminology are abstractions. At least get an EE degree before you mouth off. Oh wait, even that's not rock bottom. KYS



[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.