Skip to content

Instantly share code, notes, and snippets.

@vdm
Last active June 28, 2024 16:09
Show Gist options
  • Save vdm/673530a219fe92536010afd121954f90 to your computer and use it in GitHub Desktop.
Save vdm/673530a219fe92536010afd121954f90 to your computer and use it in GitHub Desktop.
Show config across .d directories without comment or blank lines
tail -n+1 $(find /etc/logrotate* -type f) | grep -vE '^(#|$)'
tail -n+1 $(find /etc/rsyslog* -type f) | perl -ne 'print if !/^(\s*#|$)'
sudo bash -c 'tail -n+1 $(find /{etc,var/spool}/cron* -type f)' | grep -vE '^(#|$)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment