A
A
allaga2020-01-27 17:04:11
linux
allaga, 2020-01-27 17:04:11

Is there an analogue of sfc for Linux?

Good evening!

Often under Windows I use the sfc utility with the /scannow key. Now I want to try such similar utilities for checking system files on Linux.

Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2020-01-27
@allaga

As far as I remember , sfc /scannow scans files for matching amounts and restores them if necessary.
Install the scan tool :
sudo apt-get install -y debsums
Check system:
sudo debsums -c
Full equivalent of sfc /scannow for linux (deb compatible):

sudo apt-get install -y --reinstall $(dpkg -S $(debsums -c) | cut -d : -d 1| uniq -u)

For linux with other non-Debian package managers, the command will be different, google it yourself. But the integrity check is always in one form or another.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question