I want to transport a configuration from one user to another one. But I don't know in which file the program in question stores its configuration.
In order to find out where the configuration is stored, I want to change one setting of them and then look for any file which has changed in the last few minutes.
I know about find . -mmin -10 -ls
but there are quite a few in the output and I would like the result ordered by last change time. Unfortunately the date is somewhere in the middle of the ls
output of that command.
Let's look at a few examples of using
find
:with the
-ls
directive:Clearly very hard to sort.
using
-ls
and-printf
Quite a mess with the timestamp printed on the next line with no newline.
using
-printf
only: we'll print the mtime, a tab, the pathname and a newline:OK, straightforward. Let's sort it so the newest is on top
And then just print the pathname