I have to do watch two commands in the same terminal windows. I mean something like
watch du -h filename.txt && df -h
But its showing only one output.
So what I am thinking is may be its not possible to use watch to run multiple commands on the same window.
If there is any way , Please let me know.
Thank you.
boolean evaluation shortcut) – karatedog Mar 20 '16 at 13:31&&because the OP uses&&. The combination of commands and their linking is incidental to the answer. – Oli Jul 01 '17 at 16:52watch "du -h filename.txt ; df -hgets around the problem karatedog mentioned. Further reading: https://stackoverflow.com/questions/13077241/execute-combine-multiple-linux-commands-in-one-line – Monty _s Flying Circus Apr 20 '18 at 16:44