Skip to content

Instantly share code, notes, and snippets.

@eduan
Created October 5, 2016 18:48
Show Gist options
  • Save eduan/59bb1fb24308a00e6efa68b6bd749f74 to your computer and use it in GitHub Desktop.
Save eduan/59bb1fb24308a00e6efa68b6bd749f74 to your computer and use it in GitHub Desktop.
#awesome command
( zcat $( ls -tr /var/log/apt/history.log*.gz ) ; cat /var/log/apt/history.log ) | egrep '^(Start-Date:|Commandline:)' | grep -v aptdaemon | egrep '^Commandline:'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment