Skip to content

Instantly share code, notes, and snippets.

@altherlex
Last active October 26, 2016 19:33
Show Gist options
  • Save altherlex/9195f766859bf466a861 to your computer and use it in GitHub Desktop.
Save altherlex/9195f766859bf466a861 to your computer and use it in GitHub Desktop.
Track Back around who execute your method
# All users crontab. More http://www.thegeekstuff.com/2009/11/how-to-install-edit-or-remove-cron-jobs-in-batch-mode/
ls /var/spool/cron/crontabs/
# An array with a list of files who invoke to irrive in method inspected.
ruby method caller
# list all linux users
cat /etc/passwd
# list w/ filters
ls -l | grep 15 | awk -v x=9 '{print $x}'
#or
ls -l | grep 15 | awk '{print $9}'
# log ftp
tail -f /var/log/proftpd/proftpd.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment