Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
justmove7317yAs a non linux user thank you for this. The rare cases I'm on linux this will help me find stuff easier
-
Not entirely accurate. The best way to learn it is to read their history, how UNIX was created and how and when each of them gets mounted.
For example /bin is not user binaries. It's just binaries. Nothing to do with the user. -
paedub2697y/opt: Additional add-on Apps
Apps! APPS! FUCKING APPS! STUPID FUCKING APPS EVERYWHERE! -
x4fyr217yBut when you are on (at least) ArchLinux /bin and /sbin are symlinks to /usr/bin and /lib to /usr/lib as the differentiation is out of date.
-
@hashedram Putting things in your home folder makes sense though, because it's your "safe stashing place" on the machine.
On some distros, your home folder is encrypted, while the rest of the disk isn't. The permissions are usually set to something like 700 or 770, which disallows others from accessing the contents.
The home directory is usually the place you should backup when buying a new machine -- when using linux as intended, you should be able to blindly delete all directories except /home, and reinstall any other distro and not lose any sleep over it.
I never store code outside of my home directory, and I put a lot of personal tools & programs in ~/bin. -
This is applicable to mac as well for anyone who uses iTerm. Macs have a very similar directory structure.
-
julianmd5057y@hacker From what I have seen in the wild, /opt is for single-folder apps, usually based on Java/python/some other language. The idea is that these apps are called by something like "Java -jar /opt/applications/myapp/myappv1.jar". At least, that's how we do it at work.
-
-
@hacker @julianmd Seriously though, opt(ional) is indeed for third-party, non-distribution-included binary applications like Chrome, Java, etc.
In the past, a company would use a common Unix distribution, and have their own (possibly proprietary) set of tools and applications on top of that. These company-specific binaries would directly be dumped on every system in the /opt directory.
On every system, you should be able to delete the contents of /opt without breaking the OS or losing settings -- but you might break applications. -
hacker17657y@bittersweet @julianmd interesting. I have folders for Atom, Firefox Developer Edition, Processing, and pyCharm in /opt. And also Expo XDE (which is just a single AppImage file, and it can be moved elsewhere).
If I remove them, I'm certain that the apps will stop working...
That's my issue if and when I switch distros/devices. -
orsino7137yThe best description of the Unix/Linux (sorry for the generalisation) directory structure I've seen
-
julianmd5057yAwesome @bittersweet!
Thanks for the info. I very rarely use Linux with a GUI so I wouldn't know about Chrome or other such apps that store their stuff there. -
God, I just finished setting up an Ubuntu home collaboration server today, thinking srv was for server.
-
sodj3866yStrangely enough /usr actually means Unix System Resources and not short for "user"
I only learned this recently :/
Related Rants
-
gururaju56*Now that's what I call a Hacker* MOTHER OF ALL AUTOMATIONS This seems a long post. but you will definitely ...
-
linuxxx70This guy at my last internship. A windows fanboy to the fucking max! He was saying how he'd never use anythi...
-
creedasaurus62Another dev on my team just got a new machine. Before he came in today I made two separate USB installers and ...
A handy linux tutorial for whom cares!
rant
tutorials
linux