В windows реестр а в linux

Windows:
— Stores the data in files within the directory hierarchy
— These files are like the mentioned .dll and other supporting files
— Then the files are managed through management systems like databases (the Registry) to provide easier interaction with the user(s).
— This means we point and click, but TONS of data is recorded in the background for ease of use, faster accessibility and unnecessary data storage in the name of easier usage.

Linux:
— Files are stored in the separated partitions (we have to remember, in Linux, we can access hardware more directly, including the screen — everything is accessible through the CLI).
— These files are in the directory hierarchies already in place (in the storage system of the OS, similar to Windows but not just separated by folders)
— The files are more readable, easier to access, but they require the knowledge of the CLI’s to be able to utilize them.

Primary Difference:
Windows adds the databases «layer» to the OS interface to manage the interactions from the user, system, etc. This makes it «easier» to utilize the GUI to access and perform everything, but it also makes the user and system highly dependent on this database system for most functionality. Linus on the other hand, allows direct interfacing with the components, meaning you are having to know the «language» to type in lieu of the Windows point-and-click methods. Yes, you can utilize a CLI through Windows, but then you are not truly comparing the Windows to Linux comparison. The differences are in how the user accesses the data, how the system utilizes the data, and how Windows simply adds more «management» (by the system) to produce an «easier» interface than knowing your way around a command line.

It is an understandable comparison to assess as someone new to the CLI/Linux environment, but it makes a lot more sense when you apply the intent of both of these systems first. Linux is not «subverting the attempts Microsvck has made with the integration of a Registry», it is giving the user more power by eliminating layers of abstraction between the user and the hardware.

To imagine this, think of a typewriter. You press the keys, they move the gears and you hammer the ink to paper producing data. In Linux, a user enters commands to interface with the system kernel to perform actions in the hardware. In a Windows environment, you have more potential layers between the user and the hardware. Applications can invoke commands which communicate with the OS, which interfaces with the system/kernel, which then works with the hardware. This process becomes more complicated in Windows as more variables enter the equation, like the commands having to interact with the Registry to retrieve information prior to being able to execute things… and this is why Windows uses more resources to run, do basic and complex tasks. Preloaded services and processes are loaded to allow management of functions that Linux would require the user to invoke. And yes, there are processes that run in Linux, but I am trying to just give a basic idea of how the systems differ to better display why some other comments have been inaccurate. The idea of using Linux is to minimize the interfaces between user and hardware, keeping things simpler with much less clutter. Windows tailors to the users and tries to encompass more functionality in a more easily accessible way, but it comes at the cost of complex management systems (that can easily become cluttered and problematic). The Registry can also provide a digital trail of all physical connections and other physical interactions with hardware that is just saved and saved (unless cleaned by a user/program). I’d prefer to have readable files that I can manually delete when not used, compared to cleaning the various/many spots needing regular cleaning in Windows (and potentially risking BIG problems b/c of the Registry). It is just another layer to manage things behind the scenes and establish more of a digital trail that the user gets stuck storing.

Unfortunately, many users are conditioned to Windows and are too fearful of Linux prior to trial. There are so many flavors, some having differing commands, shells, etc. which becomes difficult to choose as a beginner. Once we remove our «Windows conditioning», it becomes clearer that Linux distros are superior in many ways (w/o the bloated software). The only scenario I personally feel Windows is superior for is playing games. It becomes more disturbing as MS pushes more to unify to 1 OS at a time, always wanting to get more data from you. It is a good skill to have, and playing with a Linux distro can potentially answer these questions for new users reading these posts.

Windows:
— Stores the data in files within the directory hierarchy
— These files are like the mentioned .dll and other supporting files
— Then the files are managed through management systems like databases (the Registry) to provide easier interaction with the user(s).
— This means we point and click, but TONS of data is recorded in the background for ease of use, faster accessibility and unnecessary data storage in the name of easier usage.

Linux:
— Files are stored in the separated partitions (we have to remember, in Linux, we can access hardware more directly, including the screen — everything is accessible through the CLI).
— These files are in the directory hierarchies already in place (in the storage system of the OS, similar to Windows but not just separated by folders)
— The files are more readable, easier to access, but they require the knowledge of the CLI’s to be able to utilize them.

Primary Difference:
Windows adds the databases «layer» to the OS interface to manage the interactions from the user, system, etc. This makes it «easier» to utilize the GUI to access and perform everything, but it also makes the user and system highly dependent on this database system for most functionality. Linus on the other hand, allows direct interfacing with the components, meaning you are having to know the «language» to type in lieu of the Windows point-and-click methods. Yes, you can utilize a CLI through Windows, but then you are not truly comparing the Windows to Linux comparison. The differences are in how the user accesses the data, how the system utilizes the data, and how Windows simply adds more «management» (by the system) to produce an «easier» interface than knowing your way around a command line.

It is an understandable comparison to assess as someone new to the CLI/Linux environment, but it makes a lot more sense when you apply the intent of both of these systems first. Linux is not «subverting the attempts Microsvck has made with the integration of a Registry», it is giving the user more power by eliminating layers of abstraction between the user and the hardware.

To imagine this, think of a typewriter. You press the keys, they move the gears and you hammer the ink to paper producing data. In Linux, a user enters commands to interface with the system kernel to perform actions in the hardware. In a Windows environment, you have more potential layers between the user and the hardware. Applications can invoke commands which communicate with the OS, which interfaces with the system/kernel, which then works with the hardware. This process becomes more complicated in Windows as more variables enter the equation, like the commands having to interact with the Registry to retrieve information prior to being able to execute things… and this is why Windows uses more resources to run, do basic and complex tasks. Preloaded services and processes are loaded to allow management of functions that Linux would require the user to invoke. And yes, there are processes that run in Linux, but I am trying to just give a basic idea of how the systems differ to better display why some other comments have been inaccurate. The idea of using Linux is to minimize the interfaces between user and hardware, keeping things simpler with much less clutter. Windows tailors to the users and tries to encompass more functionality in a more easily accessible way, but it comes at the cost of complex management systems (that can easily become cluttered and problematic). The Registry can also provide a digital trail of all physical connections and other physical interactions with hardware that is just saved and saved (unless cleaned by a user/program). I’d prefer to have readable files that I can manually delete when not used, compared to cleaning the various/many spots needing regular cleaning in Windows (and potentially risking BIG problems b/c of the Registry). It is just another layer to manage things behind the scenes and establish more of a digital trail that the user gets stuck storing.

Unfortunately, many users are conditioned to Windows and are too fearful of Linux prior to trial. There are so many flavors, some having differing commands, shells, etc. which becomes difficult to choose as a beginner. Once we remove our «Windows conditioning», it becomes clearer that Linux distros are superior in many ways (w/o the bloated software). The only scenario I personally feel Windows is superior for is playing games. It becomes more disturbing as MS pushes more to unify to 1 OS at a time, always wanting to get more data from you. It is a good skill to have, and playing with a Linux distro can potentially answer these questions for new users reading these posts.

I have a DVD+-RW drive that has quit working. Apparently many users of this laptop model experience the same problem under windows and are required to edit the registry to correct the problem. So where should I look to make a similar edit?

asked Oct 11, 2010 at 22:47

ixtmixilix's user avatar

ixtmixilixixtmixilix

13.1k27 gold badges82 silver badges119 bronze badges

4

Thankfully, there is no Linux equivalent of the Windows registry. Configuration is kept in (mostly) text files:

  • The system configuration is in text files under /etc.
  • The system state, which in Windows ends up mixed with configuration data, lives under /var.
  • User configuration and state lives in “dot files”, i.e., files and directories whose name begins with a . in your home directory.

You can’t simply transpose a registry edit to a configuration in another operating system: registry edits are completely Windows-specific. You’ll have to understand what the registry edit is doing and transpose it to Linux. It’s likely that you’ll end up modifying a file under /etc, but there are too many potential candidates to list here (also, it might depend on your distribution).

answered Oct 11, 2010 at 23:15

Gilles 'SO- stop being evil''s user avatar

6

The equivalent of the registry on Linux is Elektra but it is not very popular. Most software uses a configuration file located in the /etc directory.

https://www.libelektra.org/

answered Dec 5, 2021 at 8:15

Abdallah B's user avatar

You must log in to answer this question.

Not the answer you’re looking for? Browse other questions tagged

.

A typical way to store configuration in Linux per user is to store it in /home/username/.someapp, where someapp is the name of your program. I love this in Linux actually because when I move to another computer, all I have to do is save/move my home directory, and that will save all my configuration.

On Windows, the registry has a user part HKEY_CURRENT_USER, and others that represent any user, such as HKEY_LOCAL_MACHINE, being global for the whole system. For the user part, you should put the configuration in the user directory like I explained before, because it shouldn’t require any super-user privileges. The local machine part you can choose either to also put in the user directory, where then every user will have separate configuration, or put it in something like /var/lib/someapp, but keep in mind that it’ll be read-only then.

With all this, keep in mind that you should create your own configuration format, or use some library, such as libconfig, XML or JSON.

Системный реестр — это особая база данных, которая хранит информацию о настройках и конфигурациях операционной системы и установленных на ней приложений. Эта концепция широко распространена в операционных системах семейства Windows. Но что насчет Linux?

В отличие от Windows, Linux не использует системный реестр. Вместо этого, ОС Linux предоставляет альтернативные способы хранения и доступа к системным и прикладным настройкам. Главным компонентом системы является файловая система, которая организована иерархически в виде древовидной структуры.

Каталог /etc — это главное место хранения системных настроек в Linux. В этом каталоге находятся конфигурационные файлы для различных служб системы и установленных приложений. Например, файл /etc/passwd содержит информацию о пользователях, а файл /etc/fstab — информацию о подключенных файловых системах.

Кроме того, Linux поддерживает использование переменных среды, которые можно определить в файле .bashrc в домашнем каталоге пользователя. Это позволяет задавать системные настройки для конкретных пользователей или групп пользователей. Также в Linux применяется использование конфигурационных файлов в директории /usr/local/etc, которые могут быть установлены или изменены пользователями.

Содержание

  1. В Linux можно ли использовать аналог системного реестра?
  2. Определение системного реестра в операционной системе
  3. Различия между системным реестром Windows и Linux
  4. Альтернатива системному реестру в Linux
  5. Преимущества использования альтернативы системному реестру в Linux
  6. Примеры использования альтернативных решений в Linux

В операционной системе Linux отсутствует прямой аналог системного реестра, как, например, в операционных системах семейства Windows. Вместо этого, Linux использует другие механизмы для хранения конфигурационных данных и настроек.

В Linux файловая система является основным местом хранения системных и пользовательских настроек. Конфигурационные данные и настройки программ хранятся в виде текстовых файлов, которые располагаются по различным директориям в файловой системе.

Примерами таких директорий являются:

  • /etc: в этой директории хранятся системные настройки и конфигурационные файлы программ, устанавливаемых в систему. Здесь могут находиться файлы с настройками сети, пользователей, сервисов и т. д.
  • /usr/share: в данной директории могут храниться общие настройки и данные, используемые различными программами. Например, здесь могут располагаться файлы с настройками интерфейсов программного обеспечения или тем оформления.
  • ~/.config: данная директория предназначена для хранения персональных настроек и конфигурационных файлов каждого пользователя системы. Каждый пользователь имеет свою собственную директорию, где могут находиться файлы с настройками конкретных программ.

Таким образом, в Linux конфигурационные данные и настройки распределены по различным файлам и директориям в файловой системе. Это позволяет пользователям более гибко настраивать систему, изменять параметры программ и обеспечивает большую степень контроля над конфигурацией в сравнении с централизованным системным реестром, как в Windows.

Определение системного реестра в операционной системе

Однако в операционной системе Linux концепция системного реестра отсутствует. Вместо этого Linux использует файловую систему для хранения конфигурационных файлов. Каждая программа или служба в Linux может иметь отдельные файлы конфигурации, расположенные в соответствующих каталогах.

Таким образом, в Linux отсутствует единый централизованный реестр, где хранятся все настройки системы, как в Windows. Вместо этого конфигурационные данные хранятся в отдельных файлах, которые обычно находятся в каталогах /etc и /usr.

Каждый тип конфигурации имеет свой собственный файл или набор файлов, в которых хранится информация о настройках. Примерами таких файлов могут быть /etc/passwd, /etc/hosts, /etc/fstab и другие.

Таким образом, хотя концепция системного реестра в операционной системе Linux отсутствует, файловая система Linux предоставляет структурированный способ хранения и доступа к конфигурационным данным.

Различия между системным реестром Windows и Linux

Самое значительное различие между Windows и Linux в отношении системного реестра заключается в их философии. Windows использует единую централизованную базу данных, в которой хранятся все настройки и параметры системы, в то время как Linux предпочитает децентрализованный подход к управлению конфигурацией.

Вместо системного реестра Linux использует конфигурационные файлы в текстовом формате. Эти файлы располагаются в разных местах системы и имеют различные названия и форматы в зависимости от используемого дистрибутива Linux. Настройки могут быть изменены прямым доступом к файлам или с использованием специализированных инструментов командной строки.

Такая децентрализованная структура позволяет пользователям Linux гибко управлять конфигурацией системы, вносить изменения или подбирать настройки под свои потребности. Кроме того, наличие текстовых файлов вместо централизованной базы данных упрощает отладку и редактирование настроек.

Однако следует отметить, что некоторые дистрибутивы Linux могут иметь некоторые аналоги системного реестра Windows. Например, некоторые настройки в Ubuntu хранятся в реестре dconf или в директории /etc.

В целом, отсутствие системного реестра в Linux — еще одно проявление его открытой и гибкой природы. Это позволяет пользователям иметь большую свободу в настройке и управлении операционной системой.

Альтернатива системному реестру в Linux

В отличие от операционных систем семейства Windows, которые используют системный реестр для хранения конфигурационной информации, Linux использует другую концепцию. Вместо централизованной базы данных, Linux предлагает распределенную файловую структуру, в которой конфигурационные файлы хранятся в текстовом формате.

Основной компонент конфигурации в Linux — это файлы с настройками, которые обычно располагаются в директориях /etc или /usr/local/etc. Каждый служба или приложение может иметь свой собственный файл конфигурации, содержащий параметры и значения. Например, файл /etc/mysql/my.cnf содержит настройки базы данных MySQL.

Плюсом такого подхода является простота редактирования конфигурационных файлов в любом текстовом редакторе. Это также означает, что изменения можно вносить по определенным потребностям, минимизируя риск нарушения целостности системы. Кроме того, системные настройки Linux можно сохранить и перенести на другую машину, просто скопировав соответствующие конфигурационные файлы.

Таким образом, хотя Linux не имеет аналога системного реестра, он предлагает гибкую и простую альтернативу для управления конфигурацией системы через распределенные файлы настроек. Эта особенность делает Linux более модульным и гибким в настройке, а также более удобным для администраторов и разработчиков.

Преимущества использования альтернативы системному реестру в Linux

Это имеет несколько преимуществ:

1. Простота использования:

В Linux каждая системная настройка хранится в виде файла или каталога, доступного для чтения и записи. Это делает работу с конфигурациями и настройками в Linux более прямой и интуитивно понятной.

2. Устойчивость и безопасность:

Поскольку в Linux нет централизованного реестра, системные настройки могут быть изменены только с правами администратора, что существенно повышает безопасность и защищает систему от несанкционированных изменений. Кроме того, при возникновении проблем с настройками, пользователь всегда может легко откатиться к предыдущей версии файла или каталога с настройками.

3. Гибкость и расширяемость:

В Linux можно легко изменять и расширять системные настройки путем создания новых файлов или редактирования существующих. Это дает пользователю больше свободы для настройки системы под свои нужды и предпочтения.

4. Возможность использования нескольких дистрибутивов:

Linux поддерживает множество дистрибутивов, каждый из которых может иметь свою собственную структуру файлов и настроек. Отсутствие централизованного реестра позволяет каждому дистрибутиву иметь свои уникальные особенности и логику хранения настроек.

В целом, отсутствие централизованного реестра в Linux — это преимущество, которое обеспечивает простоту использования, устойчивость и безопасность, гибкость и возможность использования различных дистрибутивов. Эта особенность считается одним из фундаментальных принципов Linux и делает его предпочтительным выбором для многих пользователей и разработчиков.

Примеры использования альтернативных решений в Linux

Linux не использует системный реестр, как, например, операционные системы Windows. Однако, существуют альтернативные решения, позволяющие организовать хранение и доступ к системным настройкам.

Один из наиболее распространенных инструментов в Linux для хранения системных настроек — это конфигурационные файлы. Вместо записи настроек в системный реестр, в Linux каждая программа может иметь отдельный конфигурационный файл, в котором указываются нужные параметры.

Например, файл /etc/ssh/sshd_config используется для настройки SSH-сервера, а файл /etc/network/interfaces предназначен для настройки сетевых интерфейсов.

Другой альтернативный подход в Linux — использование переменных среды. Переменные среды могут содержать информацию о настройках системы и доступны для использования программами. Например, переменная PATH задает путь поиска исполняемых файлов, а переменная LANG определяет язык, используемый для вывода сообщений на экран.

Еще одним способом хранения настроек в Linux являются системные службы (daemons). Системные службы запускаются в фоновом режиме и проверяют наличие идеальных настроек. Например, служба udev отслеживает подключение новых устройств и автоматически настраивает их параметры.

Также, существуют специализированные утилиты в Linux, позволяющие управлять системными настройками. Например, команда sysctl используется для настройки и просмотра переменных ядра, а команда update-alternatives используется для выбора альтернативной версии программы установленной в системе.

В Linux отсутствие системного реестра не является проблемой. Вместо этого, Linux предлагает разнообразие альтернативных решений, позволяющих гибко настроить систему и управлять настройками.

  • В windows отсутствует windows update
  • В windows 10 размытые шрифты как это исправить
  • В windows нет сетевого профиля для этого устройства принтер
  • В windows 10 пропали все точки восстановления
  • В windows нельзя создать папку с названием con