What command(s) can I use in the terminal that's equivalent to the PrtSc (Print Screen) button?
I am running Ubuntu gnome.
You can use import tool available in the ImageMagick package (you need to install this if its already not available on your system).
Another way to take a screenshot from the terminal is with scrot
To install scrot type:
To take a screenshot in Linux from the terminal with scrot type:
Some more options with
In this example,
Found this option here and other options are also listed.
Open terminal by pressing Ctrl + Alt + T and type
use gnome-screenshot -d xx to delay the action.
To delay the screenshot action by 10s
A simple way to save the active window is to press Alt+PrtScr at the same time. This will take a shot of this window and ask you if you want to save it. If you answer 'Yes', it will save it for you in your Pictures folder and you can use it like any other file.
You can use shutter program to take screenshot from terminal.Run the below commands in terminal to install shutter,
To take a screenshot of active window,
To take a screenshot of whole display,
The screenshots taken are stored in the home directory.
For more options run
I'm using ubuntu 13.10 and I have a script that I just wrote which may be helpful. I see this questions been answered but my solution requires no additional installs.
This code will save the screenshot without popping up the dialogue window. It uses the current time for a file name to avoid any duplicate filename issues.