Skip to content

Instantly share code, notes, and snippets.

@weshouman
Created June 3, 2015 21:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save weshouman/c047186651bf8e4d234a to your computer and use it in GitHub Desktop.
Save weshouman/c047186651bf8e4d234a to your computer and use it in GitHub Desktop.
useful linux commands tips
#processes:
###########
pgrep cron
# (if found) shows process number of *cron* processes
pidof cron
# (if found) shows process number of cron process
env
# prints all env variables
sudo service cron start
# to start a service (namely cron) instead of invoking 'sudo /etc/init.d/cron start'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment