Skip to content

Instantly share code, notes, and snippets.

@lajunta
Created April 14, 2016 08:57
Show Gist options
  • Save lajunta/d04c8933e1e2b1b4b61cc65acb9c1c96 to your computer and use it in GitHub Desktop.
Save lajunta/d04c8933e1e2b1b4b61cc65acb9c1c96 to your computer and use it in GitHub Desktop.
find latest 10 file in a directory
find /data/dbback -type f -printf "%C@ %p\n" | sort -rn | head -n 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment