Difference between revisions of "Important hidden .dot files in your home partition/ru"
Views
Actions
Namespaces
Variants
Tools
(Created page with "'''.bash_profile & .bashrc''' - Конфигурация ''''bash'''' для каждого пользователя.") |
|||
Line 57: | Line 57: | ||
==Файлы== | ==Файлы== | ||
'''.bash_profile & .bashrc''' - Конфигурация | '''.bash_profile & .bashrc''' - Конфигурация '''bash''' для каждого пользователя. | ||
'''.xinitrc''' - If it is present in a user's home directory, startx and xinit execute it. Otherwise startx will run the default /etc/X11/xinit/xinitrc. | '''.xinitrc''' - If it is present in a user's home directory, startx and xinit execute it. Otherwise startx will run the default /etc/X11/xinit/xinitrc. |
Revision as of 06:53, 14 February 2023
=Что такое скрытый файл <.dot>?
They are files & directories with a "." dot in front of them. Placing a "." dot in front of a file or directory tells the operating system that such files & directories are to be hidden from view in file managers, file requesters & such. File managers & other applications can usually be set to view these normally hidden files. These hidden files & directories usually contain configuration files of some sort.
В данной статье эти скрытые файлы будут называться <.dot>-файлами.
Почему стоит знать об этих <.dot>-файлах?
- Эти файлы содержат информацию о настройках/конфигурации, которую часто необходимо изменить
- Нелишним будет знать, какие каталоги и файлы <.dot> в каталоге ~/ помогут вам сэкономить время и силы, если вам придется переустанавливать Manjaro из-за сбоя оборудования, повреждения данных, ошибки пользователя...
- If you are coming from, or going to another distro, this can be extremely valuable knowledge. As again, these <.dot> files can save you an enormous amount of time & effort in configuring your system to be just the way you like it. More on this to come.
- This knowledge can also be used to backup important config files, some of which can have had many, many hours of work in them.
Так что же делают эти файлы <.dot> в моем /home?
Заглянув в каталог ~, можно обнаружить любые каталоги, содержащие конфигурацию или другие пользовательские данные для нашей системы, включая DE/WM и приложения.
Some examples of these are; panels, trays, clocks, text editors, image viewers, pdf viewers & other applications. A quick look in your ~/.config directory will make this clear.
Ссылка на ключевые <.dot>-файлы
The following represent some of the most common types of <.dot> files that are found directly in your home folder. This is not an extensive list but represents some of the most common items.
Whether the files are important or not cannot be judged in this article - it depends on how much time you have spent on customizing your configuration files. Some window managers can only be configured using these files - in that case they become important. Or you have a collection of scripts in ~/.local/bin - they have become important as they - often - represent a great amount of work.
Каталоги
.cache - Contains cached application files. Keep an eye on this folder as sometimes application caches can grow over time.
.config - This is where most modern applications keep user specific configuartion. This is the first place you should look for application related configuration files. Also, it is worth noting that any config files in this directory will have absolutely no effect if the program that they belong to is not installed on your machine. So orphan config files pose absolutely no danger.
.local - Holds a user specific version of /usr/local. Most notably application launchers can be found in .local/share/applications
.local/bin - Folder for your own scripts - included in your PATH
.mozilla - Configuration data for Firefox
.thunderbird - Configuration and mailboxes for Thunderbird
.ssh - ssh keys, known hosts and other per user ssh configuration
.steam - Data, config and game files for Valve's Steam platform
.gnupg - database for encrypting and signing using GnuPG - your private keys are here as well
Файлы
.bash_profile & .bashrc - Конфигурация bash для каждого пользователя.
.xinitrc - If it is present in a user's home directory, startx and xinit execute it. Otherwise startx will run the default /etc/X11/xinit/xinitrc.
.zshrc - Per user configuration for zsh
.netrc - Configurations for accessing e.g. ftp servers
Re-using /home
People often get into trouble due to their keeping their old /home partition for a couple of prime reasons:
- 1. Permission problems (if they are using a different user name for example).
- 2. They have a mixture of hidden <.dot> files from multiple distros in /home
Before trying to re-use an existing /home be sure to review this section of the Partioning Wiki Page
When coping <.dot> files from one /home to another, it is important to be selective, especially when doing so between different distros or different versions of the same distro. For example, it is unwise to copy an entire ~/.config over but perfectly safe to bring over many of the files within it on an application by application basis.