How To Perform Factory Reset In Linux


If you are a Linux user then you must love the feature of it that is modification. Linux is fully customizable OS. You can create your own themes , styles and looks in it. By doing this sometimes you mess with its configuration and all you need to reset to default / factory reset . In this post we will see some options which are available to reset Linux and get back our factory configuration in Linux. 

1) Backup your current ./config directory to another directory in case if the restore process get fails you can get to previous one.

2) Now delete the ./config directory from your user home directory with below command.

cd ~

rm -rf ./config

3) Now copy the files from the /etc/skel/.conf to your user profile.

cp -r /etc/skel/.config .

That's enough to restore your default theme setting for your Linux. Restart your system and  default theme for your system will be restored.

But if you want to reset the all user configuration and back to factory reset then delete all the hidden files under the user home directory and copy all /etc/skel directory to your home directory.

rm -rf .*     Please use this command with caution or just remove hidden directory one by one.

cp -r /etc/skel .

Note : This will also remove the configured application and its data.

=> If you are using KDE Plasma DE and want to reset your KDE Plasma modification then run below command.

mv .kde4 .kde4.old

After that restart your system . And a fresh KDE plasma will be reloaded.

Reset With Dconf Tool

This command will reset Ubuntu Unity, Gnome and MATE desktops to the default state. run the below command to reset the all configuration to default one.

dconf reset -f /

This will reset all customization and tweaks you made in your system, including the pinned applications in the Unity launcher or Dock, desktop panel applets, desktop indicators, your system fonts, GTK themes, Icon themes, monitor resolution, keyboard shortcuts, window button placement, menu and launcher behavior etc.


Factory reset with Resetter

This tool is exclusively available for Ubuntu/Debian base system.  Download it from official GitHub page. This tool provide custom restore which help you to choose if you dont want to reset a specific application, kernels, users, dependencies etc . As it is GUI base application , it is easy to use .


That's how you can do a factory reset without reinstalling the system or loss your personal files.


Please share this post on your social media with below given links.





Post a Comment