I've accidentally corrupted the uname file in the /bin/ directory and now it does not return any information. Is there any possible way to recreate it?


Locate the binary file:

$ which uname

Find out which package provides the file:

$ dpkg -S /bin/uname
coreutils: /bin/uname

Reinstall the package using the --reinstall flag

sudo apt install --reinstall coreutils

This replaces all the files of the package except configuration files.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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