Unable to understand basic PATHs at the root

I am trying to bring my data to Mac. I have many rc files in my root such as .vimrc, .srceenrc and .bashrc.

I would like to put these files in specific folders like .vimrc and .screenrc, in ~ / bin / coding and .bashrc, and then again in ~ / bin / shells.

How do I determine where these rc files should be?

0


a source to share


2 answers


Seriously, you should leave them where they are. Applications will look for them in certain places (maybe your $ HOME directory, which by the way is not root, or shouldn't be). This is a very old UNIX convention that you should try to change only if you fully understand the implications.

It doesn't sound condescending, but your mistake in naming your home directory as your root directory seems to indicate that your level of knowledge about how it all works is less than you need to understand these implications (apologies, if this offends you, I tormented best to say it - I mean you have to walk carefully).

If you move them, you will need to make sure that you start the applications that use them with their fully specified paths, and some applications cannot do this.



They all start with "."

to be hidden in normal commands ls

, and if you are using a graphical file browser, there must be a way to hide them there (like the Gnome File Manager CTRL-H

).

+2


a source


Program configuration is defined both at the system level and at the user level, you can customize the user level that is in your home to help you with what you need.

No need to group them in subfolders like you said: leaving them in your home (not the root directory), following the conditions that everyone uses, rc files usually stay there after the program has been removed, so if when- sometime you do a fresh install, you will find the application configured when you left it.



Plus, by leaving them at your home, you can bring your home folder to another system and customize the environment as you see fit.

0


a source







All Articles