Created
June 3, 2015 21:25
-
-
Save weshouman/c047186651bf8e4d234a to your computer and use it in GitHub Desktop.
useful linux commands tips
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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