Little Girl's Mostly Linux Blog

DisplayRecentChanges

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.

  1. Open a terminal window and type this to make sure you’re in your /home/username directory:
  2. cd
  3. Type this to copy your .kde directory to a new directory named kdetemp:
  4. cp -a .kde kdetemp

  5. Change your settings in KDE Control Center, the panel, etc.
  6. 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:
  7. diff -r kdetemp .kde | less
  8. When you’re finished, type this to remove the kdetemp directory:
  9. rm -rf kdetemp


Obligatory Happy Ending

And they all lived happily ever after. The end.

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Comment:

Blog at WordPress.com.