Wednesday 7 October 2015

How to change the default display output limit of terminal ubuntu linux

By default, in ubuntu, when you type your command, or try to open your log/messages file, the output goes beyond the display, and it trims out. Below are the methods, that can help you to see more output on the terminal:
1. Go to Edit->Profiles->Edit->Scrolling, and select the option unlimited.

2. $ cat /home/abcd/Downloads/fileName.txt | more , with the usage of more command.
3. You can save your complete session, by using script command.
script — make typescript of terminal session
Ex:
$ script /tmp/command.out
Script started, file is /tmp/command.out
$ the_command
...
$ exit
Script done, file is /tmp/command.out
$ less /tmp/command.out

No comments:

Post a Comment