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
Using
-Dfile.e
is truncated or flows off screen. How can I scroll to see the output or word wrap it?
Using fold
without watch:

fold
with watch:

Asked by Kshitiz Sharma
(9105 rep)
Oct 14, 2015, 06:59 AM
Last activity: Dec 6, 2018, 05:30 PM
Last activity: Dec 6, 2018, 05:30 PM