How to mod the / folder on linux

required

How to do it?

Step 1


create the desired directory

Step 2


create a .hidden file at / (only works on modern systems)

Step 3


add the name of the directories that you don't want to the .hidden file, this will make those folders appear as hidden files for more recent file managers (old file managers (and the ls command) might still display those as normal files), let's say i want to change the user's folder from /home to /users, you would add "home" to this file

Step 4


mount those directories in a bind to some other directory, run

$ sudo mount --bind /path/to/originaldirectory /path/to/newdirectory


this will make a link to the new directories that will still allow them to read and write to the original directories, while not appearing as links but as proper directories

Step 5


add the bind mount to /etc/fstab
you can do that by adding

/path/to/originaldirectory /path/to/newdirectory none bind 0 0


to /etc/fstab


and you're finished!

now your system has a cool new root folder hierarchy!