On Linux there are many different flavors child screenshots tools, including desktop environment dedicated screen capture programs (eg: KDE inside KSnapshot, GNOME inside the gnome-screenshot, Xfce's Screenshooter), or common screen capture programs (such as Shutter). The Scort ( "SCReen shOT" acronym) is one of the most unique screenshot tool, it is a command-line screenshot tool. Although its interface is very simple, but Scrot in functions and other special as powerful GUI-based screen capture tool. For example, Scrot support delayed screenshots, screenshots adjust the quality / size of the command-line transfer and other functions. If you are one of those enthusiastic fans of the command line, Scrot should be added to your arsenal is another utility. In this tutorial, I will describe how Scrot screenshots using the command line.
Scrot installed in Linux
Scrot installed on Debian, Ubuntu or Linux Mint:
$ Sudo apt-get install scrot
Installed on Fedora Scrot:
$ Sudo yum install scrot
To install Scrot on CentOS, you can compile from source, follow these steps:
First enable Repoforge on CentOS, and then use the following command:
$ Sudo yum install giblib-devel
$ Wget http://linuxbrit.co.uk/downloads/scrot-0.8.tar.gz
$ Tar xvfvz scrot-0.8.tar.gz
$ Cd scrot-0.8
$ Sudo make install
With Scrot screenshots
In the following section of this tutorial, I will describe how to use several different methods Scrot screenshots.
1. cut down the entire desktop
Interception of the entire desktop is very simple. Simply run Scrot command, without any parameters, then it will save a screen shot of the entire desktop, file the form (date stamp) .png file is saved in the current directory.
You can also specify the destination folder and save the screenshot file name.
$ Scrot ~ / Pictures / my_desktop.png
2. intercept a specific window or rectangular area
Scrot allows you to select a specific window or define a rectangular area in the screenshot to the desktop. Use the following command to achieve:
$ Scrot -s
After running this command, continue to use your mouse to click on any window or draw a rectangle on the screen, it can trigger the selected window / zone interception. (LCTT Annotation, also use the mouse, happy cutting)
Sometimes you selected area or window may be obscured by other windows section of your desktop. In this case, you take a little time before the screen shots to clear that section. That is what delayed screenshots able to help you, just as described below.
3. The delay screenshots
Delay interception in each case are very practical. Just before the shot, what you might want to move the window, click the menu to activate or trigger a specific time (eg notification), and so on. Use "-d N" parameter, we can delay the process of screenshots N seconds.
$ Scrot -s -d 5
4. Adjust the quality screenshots
You can adjust the image quality, taken in the range of 1 to 100 (the higher the number the higher the quality). The default quality setting is 75.
$ Scrot -q 50
5. Adjust the size screenshots
You can adjust the image size, taken within the range of 1 to 100 (the larger the number the larger size). 10% of the reduced size of screenshots to the original image:
$ Scrot -t 10
6. The captured screen shot passed to other commands
Scrot allows you to send screenshots to save them to any order as they are entered. This option you want to make screenshots of any post-processing time is very useful. Screenshot file name / path to follow after "$ f" string.
$ Scrot -e 'mv $ f ~ / screenshots'