How to Take a Screenshot In the Linux TTY Without an X Server @khoraski
How to Take a Screenshot In the Linux TTY Without an X Server  @khoraski
Uploaded October 2015 | Updated December 2026, 3 hours ago
Take a screenshot of the TTY without needing an X server.
The command is:
sudo cat "/dev/vcs`tty | sed 's:/dev/tty::'`" | sed "s:.\{`tput cols`\}:&\n:g" | convert -negate -font Courier label:@- screenshot.png

I'd recommend putting this in a shell script called "screenshot", marking it as executable, then moving it to /usr/local/bin/ so that you can simply type the word "screenshot" to take a screenshot. You can also change "screenshot.png" to "$1" if you want to be able to pass in an argument to specify the screenshot's name. You can also change "Courier" to "Courier-Bold" to get a slightly clearer font.
How to Take a Screenshot In the Linux TTY Without an X Serverx86_64 Linux Assembly #11 - Writing FilesAssembly Tutorial 6 - Getting User InputAssembly Tutorial 25 - Creating A Keyboard Controlled Cursor (OS)32bit Assembly Tutorial 3 - Getting User Input /w ScanfLets Make a Platformer In JavaScript 2 - Drawing SpritesIntuitive Quantum Computing: Probabilistic Computing (Part 2)Lets Make a Platformer In JavaScript 7 - Arrays of Objectsx86_64 Linux Assembly #9 - Command Line ArgumentsAssembly Tutorial 18 - Using CALLAssembly Tutorial 7 - Adding And Subtracting RegistriesAssembly Tutorial 17 - Displaying Console-Space Pixels
khoraski |

How to Take a Screenshot In the Linux TTY Without an X Server

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER