Is there a way to scroll back in terminal to a specific command?


up vote
1
down vote
favorite
I have a terminal command which gives me very long output and I want to check this output from the very first line of it. So far I have to scroll with the mouse and try to catch it, which is quite annoying (especially if I executed this command few times). Is there a way to scroll the output to, say, last executed command?
command-line scrolling
add a comment |Â
up vote
1
down vote
favorite
I have a terminal command which gives me very long output and I want to check this output from the very first line of it. So far I have to scroll with the mouse and try to catch it, which is quite annoying (especially if I executed this command few times). Is there a way to scroll the output to, say, last executed command?
command-line scrolling
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I have a terminal command which gives me very long output and I want to check this output from the very first line of it. So far I have to scroll with the mouse and try to catch it, which is quite annoying (especially if I executed this command few times). Is there a way to scroll the output to, say, last executed command?
command-line scrolling
I have a terminal command which gives me very long output and I want to check this output from the very first line of it. So far I have to scroll with the mouse and try to catch it, which is quite annoying (especially if I executed this command few times). Is there a way to scroll the output to, say, last executed command?
command-line scrolling
command-line scrolling
asked Mar 9 at 14:10


wasd
1921215
1921215
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
You can pipe the output of said program to a pager program or a file that you can scroll through at your leisure.
To the less
pager: the-program --args 2>&1 |less
To a file: the-program --args 2>&1 >> output.log
what does 2>&1 stands for?
â wasd
Mar 9 at 15:06
It pipes stderr to stdout so that any error messages generated by the program will show up in the pager or output file.
â dsstorefile1
Mar 10 at 8:48
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
You can pipe the output of said program to a pager program or a file that you can scroll through at your leisure.
To the less
pager: the-program --args 2>&1 |less
To a file: the-program --args 2>&1 >> output.log
what does 2>&1 stands for?
â wasd
Mar 9 at 15:06
It pipes stderr to stdout so that any error messages generated by the program will show up in the pager or output file.
â dsstorefile1
Mar 10 at 8:48
add a comment |Â
up vote
1
down vote
accepted
You can pipe the output of said program to a pager program or a file that you can scroll through at your leisure.
To the less
pager: the-program --args 2>&1 |less
To a file: the-program --args 2>&1 >> output.log
what does 2>&1 stands for?
â wasd
Mar 9 at 15:06
It pipes stderr to stdout so that any error messages generated by the program will show up in the pager or output file.
â dsstorefile1
Mar 10 at 8:48
add a comment |Â
up vote
1
down vote
accepted
up vote
1
down vote
accepted
You can pipe the output of said program to a pager program or a file that you can scroll through at your leisure.
To the less
pager: the-program --args 2>&1 |less
To a file: the-program --args 2>&1 >> output.log
You can pipe the output of said program to a pager program or a file that you can scroll through at your leisure.
To the less
pager: the-program --args 2>&1 |less
To a file: the-program --args 2>&1 >> output.log
answered Mar 9 at 14:28
dsstorefile1
1,312111
1,312111
what does 2>&1 stands for?
â wasd
Mar 9 at 15:06
It pipes stderr to stdout so that any error messages generated by the program will show up in the pager or output file.
â dsstorefile1
Mar 10 at 8:48
add a comment |Â
what does 2>&1 stands for?
â wasd
Mar 9 at 15:06
It pipes stderr to stdout so that any error messages generated by the program will show up in the pager or output file.
â dsstorefile1
Mar 10 at 8:48
what does 2>&1 stands for?
â wasd
Mar 9 at 15:06
what does 2>&1 stands for?
â wasd
Mar 9 at 15:06
It pipes stderr to stdout so that any error messages generated by the program will show up in the pager or output file.
â dsstorefile1
Mar 10 at 8:48
It pipes stderr to stdout so that any error messages generated by the program will show up in the pager or output file.
â dsstorefile1
Mar 10 at 8:48
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1013411%2fis-there-a-way-to-scroll-back-in-terminal-to-a-specific-command%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password