Sample Header Ad - 728x90

How to wrap output of watch command?

11 votes
2 answers
10409 views
Consider the following command: watch -d "ps -ef | grep java" It gives following output: kshitiz 11369 11285 0 Oct13 ? 00:06:02 /usr/lib/jvm/jdk1.7.0_40/jre/bin/java -Djava.awt.headless=true -Didea.version==14.1.2 -Xmx512m -Dfile.e The output beyond -Dfile.e is truncated or flows off screen. How can I scroll to see the output or word wrap it? Using fold without watch: enter image description here Using fold with watch: enter image description here
Asked by Kshitiz Sharma (9105 rep)
Oct 14, 2015, 06:59 AM
Last activity: Dec 6, 2018, 05:30 PM