Linux screenshot Tool

Source: Internet
Author: User

In Linux, a lot of software can be operated with commands, and the software is no exception. Just to use it, we found this small but very useful tool in Linux, that is, scrot. How to install and use it?

1. The installation is very simple. Just like installing other software, you can install scrot in Yum install scrot in fedora and apt-Get install scrot In ubuntu.

2. In general usage, scrot can capture the entire desktop, a specified window, and a selected rectangular area.

Capture desktop: scrot shorttop.png. This command captures the entire desktop and saves it as a file named shorttop.png. You can find this image file in the current directory.

Capture window: scrot-BS large rows PNG. Option B allows scrot to capture the outer border when capturing the window, and option s allows the user to select the window to capture.

Capture area: scrot-s rectangle.png. After executing this command, the rectangular area dragged by the mouse will be captured by scrot.

Advanced use of scrot is sufficient for common crawling. However, in some special cases, it is important to use scrot to capture images.

Latency Capture: scrot-CD 10 menu.png. The D option in this command is used to capture images in a delayed manner. The next 10 represents a delay of 10 seconds. The previous option C shows a countdown. This technique fully demonstrates its magic when capturing menus or command prompts.

Generate a thumbnail: scrot-T 50% thumb.png. This command generates a thumbnail of the image while capturing the image. Option T will enable this function, and the 50% after it is the zoom percentage of the source image.

Change Quality: scrot-Q 70 quality.jpg. The Q option in this command is used to change the quality of the captured image. The value range is between 1 and 100. The default value is 75. The larger the value, the higher the image quality. At the same time, the lower the image compression ratio and the larger the occupied space.

Operation screenshot: scrot action.png-e 'mv $ f ~ /Images/', this command moves the captured image ~ /Images/directory. Obviously, the image operation function is enabled by option E, where $ f Represents the path/file name of the source image.

The above example specifies the name of the captured image to be saved. In fact, if no name is specified, scrot automatically uses the combination of the current date, time, and width and height to generate the file name after capturing the image.

You can directly press the print screen key to intercept the entire screen, but the usage is too limited.

Scrot is a pretty good tool. In addition to capturing the entire screen, it also supports mouse selection.

You can select to install scrotSource codeOr RPM package. download and install the package. (PS: Generally, the system update source provides this tool. You can directly install it through the system update source, such as Yum or apt-Get)

After the installation is complete, enter scrot in the command line. The effect is the same as pressing the print screen key. The image is saved in the current directory. Enter scrot-S for mouse selection.

However, this is still inconvenient. You can create a new file, such as screenshot.

Touch screenshot

Vim screenshot

Enter scrot-s-e 'mv $ f ~ /Screenshots'

Save and exit vim, then chmod U + x screenshot

in this way, you can run the screenshot file to execute scrot. You can also select the image with the mouse and place all the images in the Screenshots folder in the main directory. You can drag the screenshot file to the toolbar (panel). You can click the screenshot icon in the toolbar to select the file with your mouse.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.