Scrot is a screenshot tool used in the Linux command line, can perform full screen, select and other operations, the following small series will give you a detailed introduction to the usage of the Scrot screenshot tool, through the operation example Learn the use of Scrot.
Installation Scrot
In Linux installed Scrot on Debian, Ubuntu or Linux Mint:
$ sudo apt-get install scrot
Installing Scrot on Fedora:
$ sudo yum install scrot
To install Scrot on CentOS, you can compile it from source by following these steps:
First enable on CentOS Repoforge, 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
$ . /configure
$ make
$ sudo make install
Screen capture with Scrot
In the next section of this tutorial, I will describe how to pass several Different methods use Scrot to take screenshots.
1. Cut off the entire desktop
It's easy to capture the entire desktop. Just run the Scrot command, no parameters are needed, then it will save a screenshot of the entire desktop, saved as a (date stamp) .png file in the current file directory.
$ scrot
You can also specify the save destination folder and screenshot file name.
$ scrot ~/Pictures/my_desktop.png
2. Intercepting a specific window or rectangular area
Scrot allows you to select a specific window or define a rectangular area on the desktop. Take a screenshot. Use the following command to achieve:
$ scrot -s
After running this command, continue to click on any window with your mouse or draw a rectangle that can trigger on the selected window /Screen capture of the area. (LCTT translation, but also use the mouse, cut happy)
Sometimes the area or window you select may be partially obscured by other windows on the desktop. In this case, you need a little time to clean up that part before the screen capture. That's exactly what delay screenshots can do for you, as described below.
3. Delay Screen Capture
Delayed interception is useful in a variety of situations. Just before the screenshot, you may want to move the window, activate the menu, or trigger a specific time (such as a notification). Using the “-d N” parameter, we can delay the screen capture process by N seconds.
$ scrot -s -d 5
4. Adjust the quality of the screenshots
You can adjust the quality of the captured image from 1 to 100 (the higher the number, the better the quality) high). The default quality setting is 75.
$ scrot -q 50
5. Adjust the screen size
You can adjust the size of the captured image from 1 to 100 (the larger the number, the larger the size) . Reduce the size of the screenshot to 10% of the original image:
$ scrot -t 10
6. Pass the intercepted screenshot to other commands
Scrot allows you to send saves The screenshot image gives any command as their input. This option is useful when you want to do any post processing on the screen capture image. The screen file name/path follows the string after the “$f”.
$ scrot -e ‘mv $f ~/screenshots’
The above is an example of Linux using Scrot. Scrot not only captures the entire screen, but also delays screenshots and adjusts screen size. , intercepting specific windows, etc., this article also gave a detailed introduction to the installation of Scrot.
The Fedora 22 version was released in May of this year. A lot of new features have
SELinux is an expansion preemptive access control security module for Linux that ca
The MAC address is the physical address of the network card, which users can modify. Today Xiaobian
Linux system operation, Logrotate is a log management tool, can handle Linux logs, you need to confi
Backtrack how to open SSH service
Ubuntu system to enable Soft AP method
Method for monitoring Linux temperature using psensor
What can I do if arm-linux-insight cannot set target under Linux?
How to create a video DVD in a Linux desktop environment
Linux command line daily use technology
Ubuntu how to install and configure JRE
How to change the NIC name in CentOS 6.X
Linux system 11 terminal commands that cannot be known
How to add custom fonts on Linux
Win10 system constantly updates the HP printer driver automatically and reports error 0x80240017?
Win7 error code 0X80004005 how to solve?
Activate Win10 Notification Center but it is not working properly at the moment
Sogou Wubi input method to enter the URL when the mailbox is automatically completed
How to delete the windows voucher
How does Windows 7 display garbled characters?
The magic of Windows7 virtual Wifi
How to update the Win10 graphics driver? Win10 graphics driver update method