-
You can concatenate command in linux using && so cd /home/pi && ls
should work
-
You can use a ui_template node - set the size as you require - and change the default template to be
<pre><div ng-bind-html="msg.payload"></div></pre>
The template expects html - but adding pre means the carriage returns in the text are then honoured.
example flow
[{"id":"97d389df.a74008","type":"inject","z":"78444ab3.45a654","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"str","x":200,"y":540,"wires":[["8d5af63e.ae2ef8"]]},{"id":"8d5af63e.ae2ef8","type":"exec","z":"78444ab3.45a654","command":"cd ~ && ls -l","addpay":false,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"","x":390,"y":540,"wires":[["7f4d00cc.09979"],[],[]]},{"id":"7f4d00cc.09979","type":"ui_template","z":"78444ab3.45a654","group":"a223b12f.6e05a","name":"","order":0,"width":"6","height":"8","format":"<pre><div ng-bind-html=\"msg.payload\"></div></pre>","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":true,"templateScope":"local","x":580,"y":540,"wires":[[]]},{"id":"a223b12f.6e05a","type":"ui_group","name":"Default","tab":"45c56a9a.0646c4","order":1,"disp":true,"width":"6","collapse":false},{"id":"45c56a9a.0646c4","type":"ui_tab","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]