Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ How screenshots from the Linux command line     - Linux file content inspection - cat, tac, no, more, less, head, tail, od (Linux)

- Install minimize RHEL / CentOS 7 some things need to do (Linux)

- CentOS install pip (Linux)

- Text editing and viewing text Linux command (Linux)

- Samba public folder permissions (Server)

- Variables Python variables (Programming)

- CentOS 6.4 compiler installed MySQL 5.6.14 (Database)

- Python control multi-process and multi-threaded concurrency (Programming)

- About AWR More Description (Database)

- Forgot Linux root password (Linux)

- JavaScript subarray Deduplication (Programming)

- Under CentOS 7 installation and deployment environment Ceph (Server)

- How to configure a development environment elegant Lua (Linux)

- Ubuntu 14.04 installation configuration GNOME Classic interface (Linux)

- Linux vi command list (Linux)

- Kafka cluster deployment (Server)

- MySQL query performance comparison of a single truth (Database)

- How to modify the Linux NIC eth1 to eth0 (Linux)

- How to set up FTP server on Linux (Server)

- MySQL root password reset under CentOS (Database)

 
         
  How screenshots from the Linux command line
     
  Add Date : 2018-11-21      
         
         
         
  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
$ ./configure
$ Make
$ 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.

$ Scrot
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'
     
         
         
         
  More:      
 
- Nginx request processing (Server)
- How to find the available network adapter on Ubuntu (Linux)
- Linux Getting Started tutorial: Experience Xen Virtual Machine chapter (Linux)
- LaTeX Getting Started Tutorial (Linux)
- MySQL 5.5 on master-slave copy filter (Database)
- Android Service service applications and the phone SMS Listener Listener (Programming)
- Understanding Linux firewall Iptables (Linux)
- Wine 1.7 is installed on a system based on RedHat or Debian (Linux)
- Java rewrite equals method (Programming)
- Oracle 11g user rights management study notes (Database)
- MongoDB upgrade to 2.6 (Database)
- Nginx load balancing configuration (http proxy) (Server)
- Gitolite how to import other Git repositories (Server)
- JavaScript subarray Deduplication (Programming)
- Detailed iptables (Linux)
- The specified user to execute commands under Linux (Linux)
- CentOS replaces update source and Linux kernel compilation summary (Linux)
- Transfer MySQL database to MariaDB (Database)
- How wifi-linux AP signal strength detection (Linux)
- Oracle Linux 5.9 configuration Xmanager (Linux)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.