In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Today, I will talk to you about how to use the scrot screenshot tool in Linux. Many people may not know much about it. In order to make you understand better, the editor has summarized the following for you. I hope you can get something according to this article.
Install Scrot in Linux
Install Scrot on Debian,Ubuntu or Linux Mint:
$sudo apt-get install scrot
Install Scrot on Fedora:
$sudo yum install scrot
To install Scrot on CentOS, you can compile from the source code by following 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
$. / configure
$make
$sudo make install
Take screenshots with Scrot
In the following part of this tutorial, I will describe how to take screenshots with Scrot in several different ways.
1. Cut off the entire desktop.
It is easy to intercept the entire desktop. Just run the Scrot command without any parameters, and it will save a screenshot of the entire desktop in the current file directory as a (date-marked) .png file.
$scrot
You can also specify the save destination folder and screenshot file name.
$scrot ~ / Pictures/my_desktop.png
two。 Intercept a specific window or rectangular area
Scrot allows you to select a specific window or define a rectangular area on the desktop to take screenshots. Use the following command to achieve this:
$scrot-s
After running this command, continue to click any window or draw a rectangle with your mouse, which can trigger a screen capture of the selected window / area. (LCTT translation notes, but also use the mouse, Fa 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 taking a screenshot. That's what delayed screenshots can help you, as described below.
3. Delayed screenshot
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 notification), and so on. Using the "- d N" parameter, we can delay the screenshot process by N seconds.
$scrot-s-d 5
4. Adjust the quality of screenshot
You can adjust the quality of the captured image in the range from 1 to 100 (the larger the number, the higher the quality). The default quality setting is 75.
$scrot-Q 50
5. Adjust the screenshot size
You can adjust the size of the captured image in the range from 1 to 100 (the larger the number, the bigger the size). Reduce the size of the screenshot to 10% of the original image:
$scrot-t 10
6. Pass the screenshot to other commands
Scrot allows you to send saved screenshots to any command as input. This option is useful when you want to do any post-processing of the screenshot image. The filename / path of the screenshot follows the "$f" string.
$scrot-e'mv $f ~ / screenshots'
After reading the above, do you have any further understanding of how to use the scrot screenshot tool in Linux? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un