Miscellaneous Terminal Commands

Below are a some terminal commands that I’ve accumulated.   I’m at the point where I need to write these things down otherwise I’ll never remember them.

MQTT Commands

Subscribe to a topic

 mosquitto_sub -v -t 'test/topic'

Publish a topic

 mosquitto_pub -t 'test/topic' -m 'helloWorld'

Correcting error IP after reloading NOOBs OS

control/shift/J
term_.command.removeAllKnownHosts()

Raspberry Pi line commands

Start/Stop/Status of Openhab2 system:

sudo /etc/init.d/openhab2 start
sudo /etc/init.d/openhab2 stop
sudo /etc/init.d/openhab2 status

Reboot the network

sudo /etc/init.d/networking stop 
sudo /etc/init.d/networking start   or
sudo /etc/init.d/networking restart

Display running processes

ls /var/run

Below are a some terminal commands that I’ve accumulated.   I’m at the point where I need to write these things down otherwise I’ll never remember them.

MQTT Commands

Subscribe to a topic

 mosquitto_sub -v -t 'test/topic'

Publish a topic

 mosquitto_pub -t 'test/topic' -m 'helloWorld'

Correcting error IP after reloading NOOBs OS

control/shift/J
term_.command.removeAllKnownHosts()

Raspberry Pi line commands

Start/Stop/Status of Openhab2 system:

sudo /etc/init.d/openhab2 start
sudo /etc/init.d/openhab2 stop
sudo /etc/init.d/openhab2 status

Reboot the network

sudo /etc/init.d/networking stop 
sudo /etc/init.d/networking start   or
sudo /etc/init.d/networking restart

Display running processes

ls /var/run

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.