← 返回命令列表

Linux command

regedit 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Open the graphical registry editor

regedit

Import a registry file

regedit [file.reg]

Silently import a registry file

regedit /S [file.reg]

Export a registry key

regedit /E [output.reg] [HKEY_CURRENT_USER\Software\App]

Delete a registry key

regedit /D [HKEY_CURRENT_USER\Software\App]

说明

regedit is the Windows Registry Editor, available on Linux through the Wine compatibility layer. It provides a graphical interface for browsing, searching, and modifying the hierarchical Windows registry database that stores configuration settings for Windows applications running under Wine. The tool supports importing and exporting registry files in the standard .reg format, enabling batch configuration changes and backup of registry sections. The /S flag allows silent imports for scripting, while /E exports specific registry keys and their subtrees. These operations are essential for configuring Windows applications that rely on registry settings to function correctly under Wine. On Linux, regedit manages Wine's emulated registry stored in the user's Wine prefix directory (typically ~/.wine). The registry is split into files: system.reg (HKEY_LOCAL_MACHINE), user.reg (HKEY_CURRENT_USER), and userdef.reg (HKEY_USERS\\.Default). Changes made through regedit affect how Windows applications behave within the Wine environment.

参数

/E _FILE_ _KEY_
Export the specified registry key and all subkeys to a .reg file.
/S
Silent mode; suppress confirmation dialogs when importing .reg files.
/D _KEY_
Delete registry key and all its subkeys (Wine extension, not in Windows regedit).
/C _FILE_
Create a new registry from the specified .reg file (replaces entire registry).
/V
Open in advanced mode.

FAQ

What is the regedit command used for?

regedit is the Windows Registry Editor, available on Linux through the Wine compatibility layer. It provides a graphical interface for browsing, searching, and modifying the hierarchical Windows registry database that stores configuration settings for Windows applications running under Wine. The tool supports importing and exporting registry files in the standard .reg format, enabling batch configuration changes and backup of registry sections. The /S flag allows silent imports for scripting, while /E exports specific registry keys and their subtrees. These operations are essential for configuring Windows applications that rely on registry settings to function correctly under Wine. On Linux, regedit manages Wine's emulated registry stored in the user's Wine prefix directory (typically ~/.wine). The registry is split into files: system.reg (HKEY_LOCAL_MACHINE), user.reg (HKEY_CURRENT_USER), and userdef.reg (HKEY_USERS\\.Default). Changes made through regedit affect how Windows applications behave within the Wine environment.

How do I run a basic regedit example?

Run `regedit` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does /E _FILE_ _KEY_ do in regedit?

Export the specified registry key and all subkeys to a .reg file.