Archive for August, 2015

How to change the default text editor in debian

August 31, 2015

sudo update-alternatives –config editor

Advertisements

How to check if I am running systemd , sysv or upstart ?

August 27, 2015

stat  init process (process 1) and it will show the binary.

Example: On a systemd box

#stat /proc/1/exe
File: ‘/proc/1/exe’ -> ‘/lib/systemd/systemd’