Display recent changes
This page was last updated on July 27, 2019.
Display all files changed today in the current directory:
ls -al --time-style=+%D | grep $(date +%D)
Display all files changed today in the current directory and all its subdirectories:
ls -alR --time-style=+%D | grep $(date +%D)
Display all files changed in the last 24 hours in the current directory and its subdirectories:
find /PATH/TO/DIRECTORY -mtime -1 -ls
Display all files changed in the last 10 minutes in the current directory and its subdirectories:
find . -mmin -10 -ls
Display the most recently modified file in the current directory and its subdirectories:
find . -type f -printf '%T@ %p\n' | sort -n | tail -1 | cut -f2- -d" "
Display the most recently modified files in the current directory and its subdirectories:
find . -type f -printf '%T@ %p\n' | sort -n | tail | cut -f2- -d" "
Find out which KDE configuration files changed as the result of a given KDE setting
This may help you to find out which KDE configuration files change as a result of a given KDE setting. This only works for settings that are kept in your /home/username/.kde/ directory.
- Open a terminal window and type this to make sure you’re in your /home/username directory:
- Type this to copy your .kde directory to a new directory named kdetemp:
- Change your settings in KDE Control Center, the panel, etc.
- Open a terminal window again and find out which file(s) changed by typing this to compare your .kde directory with the kdetemp directory you created:
- When you’re finished, type this to remove the kdetemp directory:
cd
cp -a .kde kdetemp
diff -r kdetemp .kde | less
rm -rf kdetemp
Obligatory Happy Ending
And they all lived happily ever after. The end.
Comment: