commandline opdrachten


cronjob in user@server:~ $ sudo crontab -e
* * * * * *
| | | | | | 
| | | | | +-- Year              (range: 1900-3000)
| | | | +---- Day of the Week   (range: 1-7, 1 standing for Monday)
| | | +------ Month of the Year (range: 1-12)
| | +-------- Day of the Month  (range: 1-31)
| +---------- Hour              (range: 0-23)
+------------ Minute            (range: 0-59)

VOLLEDIGE SYSTEEM UPDATE & UPGRADE

user@server:~ $ sudo apt-get update && sudo apt-get -y upgrade

DOMOTICZ SERVICE COMMANDO’S

user@server:~ $ sudo /etc/init.d/domoticz.sh start
user@server:~ $ sudo /etc/init.d/domoticz.sh stop
user@server:~ $ sudo /etc/init.d/domoticz.sh restart
user@server:~ $ sudo /etc/init.d/domoticz.sh status

user@server:~ $ sudo netstat -plnt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 0.0.0.0:77              0.0.0.0:*               LISTEN      519/dnsmasq         
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      434/sshd            
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      244/debian

user@server:~ $ ps ax | grep app
  254 ?        Ssl  779:00 /usr/bin/app -platform minimal --http-port=80
  260 ?        Ss    56:28 /bin/bash /usr/bin/app-WIFI2.sh
  328 ?        Ss    30:00 /bin/bash /usr/bin/app-update2.sh
20347 pts/0    S+     0:00 grep --color=auto app