Score:1

How to organize files in linux?

US flag

I am super new to linux (1 day experience) and i have a root partition along with home partition now i want to know that like in windows we either can by default install application to program files or custom directory so in linux or ubuntu or zorin should i install it in root also the root partition is smaller compared to home.

ar flag
You may find [this questions and its two answers](https://askubuntu.com/questions/379205/installing-programs-in-root-vs-home-partitions) useful. Also take a look at this [related question](https://askubuntu.com/questions/25158/software-installed-on-root-partition-or-on-home-partition) that asks the same question.
Score:2
cn flag

Yes, you can but you will need to abandon normal installation method and use source installs. The way to install 3rd party apps is by installing in /opt/ for global software or in /home/$USER/ in a private directory.

BUT I would advice against it and use the normal install methods. Linux is NOT Windows so please do not attempt to copy how Windows works. Linux by default is designed to be multi-user with an administrator account to maintain the system. The directory structure is setup to accommodate that.

Each file in Linux has a place to go to otherwise you will need to install the same file multiple times (like Windows does) wasting lots of disk space.

should i install it in root also the root partition is smaller compared to home.

A normal desktop install not using snaps needs about 20Gb. If you need more space deleting snaps and installing the normal version of that software is a good way to save up on space.

chili555 avatar
cn flag
" I would advice against it and use the normal install methods." +1000
Akshat avatar
md
Should i then increase partitition size of /root?
cn flag
That would be better yes. As stated: I have used an ssd for a long time now and I never ever got over 20Gb (I am not using snaps; I delete those and install the regular version).
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.