Skip to content

Instantly share code, notes, and snippets.

@raymadrona
Last active July 6, 2017 02:01
Show Gist options
  • Save raymadrona/6fd49ee1f7f494a2ce6e331869c59556 to your computer and use it in GitHub Desktop.
Save raymadrona/6fd49ee1f7f494a2ce6e331869c59556 to your computer and use it in GitHub Desktop.
ps aux | grep php # show processes
grep CRON /var/log/syslog # show cron logs
pgrep <process_name> # show ids of process name
sudo dpkg-reconfigure tzdata # set the timezone in ubuntu
kill $(ps aux | grep '[p]ython csp_build.py' | awk '{print $2}') # kill processes based on grep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment