- It is really easy to use
- It has a multitude of useful options
En Linux There are different tools to take screenshots, from the traditional KSnapshot or GNOME-Screenshot to some more specialized ones, such as Screencloud. In this post we will talk about scrot, a small tool that allows us to perform screenshots from the comfort.
Installation
Scrot is available in the official Ubuntu repositories, so to install the tool just open our terminal and run:
sudo apt-get install scrot
Use
The most basic use of Scrot allows us to choose the name of the image, as well as the directory in which it will be saved. This is done with the following command:
scrot $HOME/capturas/ubunlog.png
Where "captures" is the name of the Directory Y "ubunlog.png» the name and the format of the resulting image; We can change both parameters according to our needs. If the directory and file name are not set, Scrot will save the image in the current directory and set as the file name one whose content includes the date, time, and screen resolution.
To take screenshots with a lag time you have to use the option
-d
as shown below:
scrot -d 5 $HOME/capturas/ubunlog.png
This will allow us to take a screenshot with a delay of five seconds. The number of seconds is configurable.
Scrot also allows you to take screenshots by selecting a specific region of the desktop. This is especially useful when we want, for example, to take a screenshot of a specific window or something like that. To capture a specific section from the screen we have to use the option
-s
as it's shown in the following:
scrot -s $HOME/capturas/ubunlog.png
This will allow us to select with the mouse pointer the portion of the screen that we want to immortalize; You just have to press and drag, when you release the mouse button the snapshot will be taken and saved. As simple as that. For more options we can run
scrot --help
; a couple of quite interesting options are
-m
, which allows you to capture multiple monitors connected to the computer, and
-t
, which allows you to create a miniature (thumbnail) from the screenshot.
More information - ScreenCloud, send your screenshots to the cloud with one click, How to optimize PNG images from the console