Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there any way to check files in Ubuntu and reset config if there is something wrong? Some application that will go through the files and detects if they are in a good standing.

share|improve this question
Which applications or related configurations do you want to set to Defaults , please specify. – atenz Jul 23 '12 at 17:38
up vote 1 down vote accepted

To check the integrity of files that came from deb packages, you can make use of the /var/lib/dpkg/info/*.md5sums files.

Verifying Unity files:

cd /
md5sum -c /var/lib/dpkg/info/unity*.md5sums

If you get an error just run sudo apt-get --reinstall install <corrupted-package-name> to reinstall the package.

share|improve this answer
It looks like there are no errors. Thank you for help – PLANTROON Jul 23 '12 at 18:17

If you're talking about Unity you can try to execute unity --reset on a terminal (Ctrl+Alt+T).

share|improve this answer
yeah that would help my broken compiz config .. but I want to check all files if they are working or no. Cause I dont wanna be surprised once I want to play something or do something with Ubuntu and then system crashes into terminal with error messages like before ... – PLANTROON Jul 23 '12 at 17:39
Thank you @Eric Carvalho. Does unity --reset command reset any changes made by compiz? – PLANTROON Jul 23 '12 at 18:01
@PLANTROON yes it does. – Eric Carvalho Jul 23 '12 at 18:08

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.