I am new to Linux and on of my projects is to find all .config files. I made sure to be logged in as root. What command would I run to do this.

  • 1
    There are a lot of config files on your system. Some are labelled with *.config and some are not. Some are in your /etc, some are in your /usr, and some are in your /home. Perhaps you could explain a bit more clearly exactly what you are looking for...and why? – user535733 Feb 22 '18 at 21:26
  • 3
    This sounds like homework, and you were not paying attention in class. – dobey Feb 22 '18 at 22:30

From your parent folder on the terminal, you could use find and grep commands:

find | grep "\.config"

locate -br \\.config$

If it is not installed, then previously use sudo apt install mlocate

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