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
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 tried using ImageMagick
I also tried using X11
But combining X11
Or, if you have a Dual-FullHD Xinerama setup, like me, and want the first screen only:
For the second screen only:
If you want to take a screenshot from a login-terminal (the one you open with Ctrl+Alt+F1) you can use the program
You can install it by typing
Then take a screenshot of your login-terminal, type in your login-terminal:
my_screenshot is saved under the current directory.
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.