Scroll through command output without a temporary file
up vote
2
down vote
favorite
I am wandering if there is a way to read the full output of a command when it uses more than the screen. I am currently having to output the command into a file, and then using nano
to scroll through it.
E.g. $ ls -Al /etc/
only displays the end of the output and cuts of the rest.
command-line
add a comment |
up vote
2
down vote
favorite
I am wandering if there is a way to read the full output of a command when it uses more than the screen. I am currently having to output the command into a file, and then using nano
to scroll through it.
E.g. $ ls -Al /etc/
only displays the end of the output and cuts of the rest.
command-line
add a comment |
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I am wandering if there is a way to read the full output of a command when it uses more than the screen. I am currently having to output the command into a file, and then using nano
to scroll through it.
E.g. $ ls -Al /etc/
only displays the end of the output and cuts of the rest.
command-line
I am wandering if there is a way to read the full output of a command when it uses more than the screen. I am currently having to output the command into a file, and then using nano
to scroll through it.
E.g. $ ls -Al /etc/
only displays the end of the output and cuts of the rest.
command-line
command-line
edited Nov 24 at 20:12
Rui F Ribeiro
38.3k1476127
38.3k1476127
asked Oct 6 '15 at 20:22
Krii
18011
18011
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
up vote
4
down vote
accepted
You need to use less
less is a pager, it allows you to view a page at a time. e.g.
command | less
ls -Al /etc | less
The most common command while in less are:
enter advance one line
space advance one page
q quit / exit help
h help
see man less
for more info, like how to search.
add a comment |
up vote
1
down vote
That's possible by pressing shift + pg up.
More information on scrollback and the scrollback buffer can be found here.
This will depend on the terminal (emulator).
– ctrl-alt-delor
Oct 6 '15 at 20:32
It works for me.
– Krii
Oct 6 '15 at 20:33
@richard Which one(s) don't implement a scrollback buffer?
– Jan
Oct 6 '15 at 20:33
1
@Jan I can not list them all, but some examples are the consolealt
ctrl
F1
, old or low resource using emulators, and some physical terminals.
– ctrl-alt-delor
Oct 6 '15 at 20:41
1
@richard, the linux console does have a scrollback buffer, it just only works for the current vt, and is lost on vt switch.
– hildred
Oct 7 '15 at 2:59
add a comment |
up vote
0
down vote
Pipe any command's output into less
and it will allow pagination, searching nd whatnot.
ls -lA /etc | less
As 'less' is displaying your text, hit h
for help, read and ponder.
man less
- more to read.
add a comment |
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
4
down vote
accepted
You need to use less
less is a pager, it allows you to view a page at a time. e.g.
command | less
ls -Al /etc | less
The most common command while in less are:
enter advance one line
space advance one page
q quit / exit help
h help
see man less
for more info, like how to search.
add a comment |
up vote
4
down vote
accepted
You need to use less
less is a pager, it allows you to view a page at a time. e.g.
command | less
ls -Al /etc | less
The most common command while in less are:
enter advance one line
space advance one page
q quit / exit help
h help
see man less
for more info, like how to search.
add a comment |
up vote
4
down vote
accepted
up vote
4
down vote
accepted
You need to use less
less is a pager, it allows you to view a page at a time. e.g.
command | less
ls -Al /etc | less
The most common command while in less are:
enter advance one line
space advance one page
q quit / exit help
h help
see man less
for more info, like how to search.
You need to use less
less is a pager, it allows you to view a page at a time. e.g.
command | less
ls -Al /etc | less
The most common command while in less are:
enter advance one line
space advance one page
q quit / exit help
h help
see man less
for more info, like how to search.
edited Oct 6 '15 at 20:35
answered Oct 6 '15 at 20:31
ctrl-alt-delor
10.2k41955
10.2k41955
add a comment |
add a comment |
up vote
1
down vote
That's possible by pressing shift + pg up.
More information on scrollback and the scrollback buffer can be found here.
This will depend on the terminal (emulator).
– ctrl-alt-delor
Oct 6 '15 at 20:32
It works for me.
– Krii
Oct 6 '15 at 20:33
@richard Which one(s) don't implement a scrollback buffer?
– Jan
Oct 6 '15 at 20:33
1
@Jan I can not list them all, but some examples are the consolealt
ctrl
F1
, old or low resource using emulators, and some physical terminals.
– ctrl-alt-delor
Oct 6 '15 at 20:41
1
@richard, the linux console does have a scrollback buffer, it just only works for the current vt, and is lost on vt switch.
– hildred
Oct 7 '15 at 2:59
add a comment |
up vote
1
down vote
That's possible by pressing shift + pg up.
More information on scrollback and the scrollback buffer can be found here.
This will depend on the terminal (emulator).
– ctrl-alt-delor
Oct 6 '15 at 20:32
It works for me.
– Krii
Oct 6 '15 at 20:33
@richard Which one(s) don't implement a scrollback buffer?
– Jan
Oct 6 '15 at 20:33
1
@Jan I can not list them all, but some examples are the consolealt
ctrl
F1
, old or low resource using emulators, and some physical terminals.
– ctrl-alt-delor
Oct 6 '15 at 20:41
1
@richard, the linux console does have a scrollback buffer, it just only works for the current vt, and is lost on vt switch.
– hildred
Oct 7 '15 at 2:59
add a comment |
up vote
1
down vote
up vote
1
down vote
That's possible by pressing shift + pg up.
More information on scrollback and the scrollback buffer can be found here.
That's possible by pressing shift + pg up.
More information on scrollback and the scrollback buffer can be found here.
edited Apr 13 '17 at 12:36
Community♦
1
1
answered Oct 6 '15 at 20:25
Jan
5,1941827
5,1941827
This will depend on the terminal (emulator).
– ctrl-alt-delor
Oct 6 '15 at 20:32
It works for me.
– Krii
Oct 6 '15 at 20:33
@richard Which one(s) don't implement a scrollback buffer?
– Jan
Oct 6 '15 at 20:33
1
@Jan I can not list them all, but some examples are the consolealt
ctrl
F1
, old or low resource using emulators, and some physical terminals.
– ctrl-alt-delor
Oct 6 '15 at 20:41
1
@richard, the linux console does have a scrollback buffer, it just only works for the current vt, and is lost on vt switch.
– hildred
Oct 7 '15 at 2:59
add a comment |
This will depend on the terminal (emulator).
– ctrl-alt-delor
Oct 6 '15 at 20:32
It works for me.
– Krii
Oct 6 '15 at 20:33
@richard Which one(s) don't implement a scrollback buffer?
– Jan
Oct 6 '15 at 20:33
1
@Jan I can not list them all, but some examples are the consolealt
ctrl
F1
, old or low resource using emulators, and some physical terminals.
– ctrl-alt-delor
Oct 6 '15 at 20:41
1
@richard, the linux console does have a scrollback buffer, it just only works for the current vt, and is lost on vt switch.
– hildred
Oct 7 '15 at 2:59
This will depend on the terminal (emulator).
– ctrl-alt-delor
Oct 6 '15 at 20:32
This will depend on the terminal (emulator).
– ctrl-alt-delor
Oct 6 '15 at 20:32
It works for me.
– Krii
Oct 6 '15 at 20:33
It works for me.
– Krii
Oct 6 '15 at 20:33
@richard Which one(s) don't implement a scrollback buffer?
– Jan
Oct 6 '15 at 20:33
@richard Which one(s) don't implement a scrollback buffer?
– Jan
Oct 6 '15 at 20:33
1
1
@Jan I can not list them all, but some examples are the console
alt
ctrl
F1
, old or low resource using emulators, and some physical terminals.– ctrl-alt-delor
Oct 6 '15 at 20:41
@Jan I can not list them all, but some examples are the console
alt
ctrl
F1
, old or low resource using emulators, and some physical terminals.– ctrl-alt-delor
Oct 6 '15 at 20:41
1
1
@richard, the linux console does have a scrollback buffer, it just only works for the current vt, and is lost on vt switch.
– hildred
Oct 7 '15 at 2:59
@richard, the linux console does have a scrollback buffer, it just only works for the current vt, and is lost on vt switch.
– hildred
Oct 7 '15 at 2:59
add a comment |
up vote
0
down vote
Pipe any command's output into less
and it will allow pagination, searching nd whatnot.
ls -lA /etc | less
As 'less' is displaying your text, hit h
for help, read and ponder.
man less
- more to read.
add a comment |
up vote
0
down vote
Pipe any command's output into less
and it will allow pagination, searching nd whatnot.
ls -lA /etc | less
As 'less' is displaying your text, hit h
for help, read and ponder.
man less
- more to read.
add a comment |
up vote
0
down vote
up vote
0
down vote
Pipe any command's output into less
and it will allow pagination, searching nd whatnot.
ls -lA /etc | less
As 'less' is displaying your text, hit h
for help, read and ponder.
man less
- more to read.
Pipe any command's output into less
and it will allow pagination, searching nd whatnot.
ls -lA /etc | less
As 'less' is displaying your text, hit h
for help, read and ponder.
man less
- more to read.
answered Oct 6 '15 at 20:32
Hannu
33916
33916
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f234356%2fscroll-through-command-output-without-a-temporary-file%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
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
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown