Skip to content

Instantly share code, notes, and snippets.

@blindpet
Last active August 29, 2015 14:26
Show Gist options
  • Save blindpet/4860f17a680faf88e781 to your computer and use it in GitHub Desktop.
Save blindpet/4860f17a680faf88e781 to your computer and use it in GitHub Desktop.
sudo stat /proc/1/exe
sudo stat /proc/1/exe | grep -i file | awk '{print $4}' | grep 'systemd\|upstart\|init'
cut as well http://linuxpoison.blogspot.hu/2012/08/bash-script-string-manipulation-find-cut.html
http://unix.stackexchange.com/questions/196166/how-to-find-out-if-a-system-uses-sysv-upstart-or-systemd-initsystem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment