Existing command line text on screen to file? (non-graphical Linux)
up vote
10
down vote
favorite
On tty2, how do I take a text screenshot of the command line?
command-line text
add a comment |
up vote
10
down vote
favorite
On tty2, how do I take a text screenshot of the command line?
command-line text
add a comment |
up vote
10
down vote
favorite
up vote
10
down vote
favorite
On tty2, how do I take a text screenshot of the command line?
command-line text
On tty2, how do I take a text screenshot of the command line?
command-line text
command-line text
asked Nov 24 at 16:36
neverMind9
44913
44913
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
up vote
4
down vote
accepted
If you can use tmux
or screen
, they have the ability to save the scrollback buffer to a file.
- Write all tmux scrollback to a file
- Copying GNU screen scrollback buffer to file (extended hardcopy)?
Unlike screendump
, which is Linux-only, tmux
and screen
are available for BSD-based OSes too (e.g. macOS, FreeBSD) and won't require special permissions.
Because of that, I marked this one as accepted. But @RudiC Don't take it personally. Your solution is still the simplest.
– neverMind9
Nov 25 at 10:28
Those two add another layer; you need to login and then run screen, have another shell, and then can communicate with your CLI.
– RudiC
Nov 25 at 11:54
add a comment |
up vote
13
down vote
Did you consider the screendump
command?
3
"Just sayingcat /dev/vcsN
has a similar effect". Then why not just usecat /dev/vcsN
?
– Weijun Zhou
Nov 24 at 16:45
5
Try it and see.
– RudiC
Nov 24 at 16:46
1
Thank you. That's interesting.
– Weijun Zhou
Nov 24 at 16:50
screendump
works, thanks.
– neverMind9
Nov 24 at 17:04
Nice. Is there a way to get it to do colour as well? (screendump
reads from/dev/vcsa
devices which does have colour information, but it seems to be stripped from the output.) Btw. I like to combine it with thewatch
command to see live output likewatch -n0.1 screendump
.
– kasperd
Nov 25 at 13:25
|
show 1 more comment
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
4
down vote
accepted
If you can use tmux
or screen
, they have the ability to save the scrollback buffer to a file.
- Write all tmux scrollback to a file
- Copying GNU screen scrollback buffer to file (extended hardcopy)?
Unlike screendump
, which is Linux-only, tmux
and screen
are available for BSD-based OSes too (e.g. macOS, FreeBSD) and won't require special permissions.
Because of that, I marked this one as accepted. But @RudiC Don't take it personally. Your solution is still the simplest.
– neverMind9
Nov 25 at 10:28
Those two add another layer; you need to login and then run screen, have another shell, and then can communicate with your CLI.
– RudiC
Nov 25 at 11:54
add a comment |
up vote
4
down vote
accepted
If you can use tmux
or screen
, they have the ability to save the scrollback buffer to a file.
- Write all tmux scrollback to a file
- Copying GNU screen scrollback buffer to file (extended hardcopy)?
Unlike screendump
, which is Linux-only, tmux
and screen
are available for BSD-based OSes too (e.g. macOS, FreeBSD) and won't require special permissions.
Because of that, I marked this one as accepted. But @RudiC Don't take it personally. Your solution is still the simplest.
– neverMind9
Nov 25 at 10:28
Those two add another layer; you need to login and then run screen, have another shell, and then can communicate with your CLI.
– RudiC
Nov 25 at 11:54
add a comment |
up vote
4
down vote
accepted
up vote
4
down vote
accepted
If you can use tmux
or screen
, they have the ability to save the scrollback buffer to a file.
- Write all tmux scrollback to a file
- Copying GNU screen scrollback buffer to file (extended hardcopy)?
Unlike screendump
, which is Linux-only, tmux
and screen
are available for BSD-based OSes too (e.g. macOS, FreeBSD) and won't require special permissions.
If you can use tmux
or screen
, they have the ability to save the scrollback buffer to a file.
- Write all tmux scrollback to a file
- Copying GNU screen scrollback buffer to file (extended hardcopy)?
Unlike screendump
, which is Linux-only, tmux
and screen
are available for BSD-based OSes too (e.g. macOS, FreeBSD) and won't require special permissions.
edited Nov 25 at 18:56
answered Nov 25 at 6:29
jamesdlin
379312
379312
Because of that, I marked this one as accepted. But @RudiC Don't take it personally. Your solution is still the simplest.
– neverMind9
Nov 25 at 10:28
Those two add another layer; you need to login and then run screen, have another shell, and then can communicate with your CLI.
– RudiC
Nov 25 at 11:54
add a comment |
Because of that, I marked this one as accepted. But @RudiC Don't take it personally. Your solution is still the simplest.
– neverMind9
Nov 25 at 10:28
Those two add another layer; you need to login and then run screen, have another shell, and then can communicate with your CLI.
– RudiC
Nov 25 at 11:54
Because of that, I marked this one as accepted. But @RudiC Don't take it personally. Your solution is still the simplest.
– neverMind9
Nov 25 at 10:28
Because of that, I marked this one as accepted. But @RudiC Don't take it personally. Your solution is still the simplest.
– neverMind9
Nov 25 at 10:28
Those two add another layer; you need to login and then run screen, have another shell, and then can communicate with your CLI.
– RudiC
Nov 25 at 11:54
Those two add another layer; you need to login and then run screen, have another shell, and then can communicate with your CLI.
– RudiC
Nov 25 at 11:54
add a comment |
up vote
13
down vote
Did you consider the screendump
command?
3
"Just sayingcat /dev/vcsN
has a similar effect". Then why not just usecat /dev/vcsN
?
– Weijun Zhou
Nov 24 at 16:45
5
Try it and see.
– RudiC
Nov 24 at 16:46
1
Thank you. That's interesting.
– Weijun Zhou
Nov 24 at 16:50
screendump
works, thanks.
– neverMind9
Nov 24 at 17:04
Nice. Is there a way to get it to do colour as well? (screendump
reads from/dev/vcsa
devices which does have colour information, but it seems to be stripped from the output.) Btw. I like to combine it with thewatch
command to see live output likewatch -n0.1 screendump
.
– kasperd
Nov 25 at 13:25
|
show 1 more comment
up vote
13
down vote
Did you consider the screendump
command?
3
"Just sayingcat /dev/vcsN
has a similar effect". Then why not just usecat /dev/vcsN
?
– Weijun Zhou
Nov 24 at 16:45
5
Try it and see.
– RudiC
Nov 24 at 16:46
1
Thank you. That's interesting.
– Weijun Zhou
Nov 24 at 16:50
screendump
works, thanks.
– neverMind9
Nov 24 at 17:04
Nice. Is there a way to get it to do colour as well? (screendump
reads from/dev/vcsa
devices which does have colour information, but it seems to be stripped from the output.) Btw. I like to combine it with thewatch
command to see live output likewatch -n0.1 screendump
.
– kasperd
Nov 25 at 13:25
|
show 1 more comment
up vote
13
down vote
up vote
13
down vote
Did you consider the screendump
command?
Did you consider the screendump
command?
answered Nov 24 at 16:39
RudiC
3,4121312
3,4121312
3
"Just sayingcat /dev/vcsN
has a similar effect". Then why not just usecat /dev/vcsN
?
– Weijun Zhou
Nov 24 at 16:45
5
Try it and see.
– RudiC
Nov 24 at 16:46
1
Thank you. That's interesting.
– Weijun Zhou
Nov 24 at 16:50
screendump
works, thanks.
– neverMind9
Nov 24 at 17:04
Nice. Is there a way to get it to do colour as well? (screendump
reads from/dev/vcsa
devices which does have colour information, but it seems to be stripped from the output.) Btw. I like to combine it with thewatch
command to see live output likewatch -n0.1 screendump
.
– kasperd
Nov 25 at 13:25
|
show 1 more comment
3
"Just sayingcat /dev/vcsN
has a similar effect". Then why not just usecat /dev/vcsN
?
– Weijun Zhou
Nov 24 at 16:45
5
Try it and see.
– RudiC
Nov 24 at 16:46
1
Thank you. That's interesting.
– Weijun Zhou
Nov 24 at 16:50
screendump
works, thanks.
– neverMind9
Nov 24 at 17:04
Nice. Is there a way to get it to do colour as well? (screendump
reads from/dev/vcsa
devices which does have colour information, but it seems to be stripped from the output.) Btw. I like to combine it with thewatch
command to see live output likewatch -n0.1 screendump
.
– kasperd
Nov 25 at 13:25
3
3
"Just saying
cat /dev/vcsN
has a similar effect". Then why not just use cat /dev/vcsN
?– Weijun Zhou
Nov 24 at 16:45
"Just saying
cat /dev/vcsN
has a similar effect". Then why not just use cat /dev/vcsN
?– Weijun Zhou
Nov 24 at 16:45
5
5
Try it and see.
– RudiC
Nov 24 at 16:46
Try it and see.
– RudiC
Nov 24 at 16:46
1
1
Thank you. That's interesting.
– Weijun Zhou
Nov 24 at 16:50
Thank you. That's interesting.
– Weijun Zhou
Nov 24 at 16:50
screendump
works, thanks.– neverMind9
Nov 24 at 17:04
screendump
works, thanks.– neverMind9
Nov 24 at 17:04
Nice. Is there a way to get it to do colour as well? (
screendump
reads from /dev/vcsa
devices which does have colour information, but it seems to be stripped from the output.) Btw. I like to combine it with the watch
command to see live output like watch -n0.1 screendump
.– kasperd
Nov 25 at 13:25
Nice. Is there a way to get it to do colour as well? (
screendump
reads from /dev/vcsa
devices which does have colour information, but it seems to be stripped from the output.) Btw. I like to combine it with the watch
command to see live output like watch -n0.1 screendump
.– kasperd
Nov 25 at 13:25
|
show 1 more comment
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%2f483894%2fexisting-command-line-text-on-screen-to-file-non-graphical-linux%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