CLI Screenshot; No X Server

2

1

How could I capture a screenshot of a Linux tty, CLI terminal session; without an X server (or similar)?

If an X server is connected, I will typically use scrot. But in some situations it's unavailable, or impractical.

Linux CLI

voices

Posted 2017-01-02T06:01:06.810

Reputation: 2 053

Answers

6

Use snapscreenshot

snapscreenshot -c4 -x2 > shot.tga

enter image description here

Ipor Sircer

Posted 2017-01-02T06:01:06.810

Reputation: 3 578

1Why have I never heard of this?! – djsmiley2k TMW – 2017-01-02T08:14:25.000

This, or something like it, ought to come installed by default on.. pretty much every operating system ever. At the very least, it should be added to all major, default software repositories, package managers, etc. – voices – 2017-01-25T13:00:48.717

Thanks for your answer. Do you happen to know of any similar alternatives? It did the job; I'm just curious. – voices – 2017-01-25T13:04:27.400