Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ How screenshots from the Linux command line     - How to clear the v $ archived_log view expiration information (Database)

- Linux centos rm directory does not prompt (Linux)

- Qt shared memory interprocess communication (Programming)

- Creating and extracting archives 11 tar command examples in Linux (Linux)

- Ubuntu under Spark development environment to build (Server)

- Postgres-X2 deployment steps (Database)

- Using the Android interface in Parcelable (Programming)

- CentOS 6.6 x64 Oracle Database 11gR2 RAC automated installation scripts (Database)

- CentOS system Amoeba + MySQL Master-slave configuration (Database)

- Two alert log ORA Errors (Database)

- I like Linux Security (Linux)

- Deb package installation method under ubuntu (Linux)

- Java interview questions in nine radio (Programming)

- Nmcli based network management command-line tool (Linux)

- Smooth upgrade to OpenSSH 6.7 Procedure (Linux)

- To configure and use multiple Tomcat under Linux environment (Server)

- Java regular expressions examples (Programming)

- Android official recommendation: DialogFragment create dialog (Programming)

- ORA-00020: No more process state objects available (Database)

- To generate a certificate using OpenSSL under Linux (Server)

  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'
- On the PC goes heavy security watch your startup items (Linux)
- The Hill sorting algorithm (Programming)
- Arrow keys, backspace key garbled in Python-2.7.5 Interactive Mode under CentOS 5.8 (Linux)
- Linux more efficient than select a model epoll (Linux)
- Ubuntu 14.04 LTS NTFS partition can not access solution (Linux)
- Large site architecture study notes (Server)
- Linux Log File Browser --logrotate (Linux)
- How to troubleshoot error java.lang.NoSuchMethodError (Programming)
- Ubuntu 15.04 installation Powercommands 2.0 (Linux)
- C language header file defines a global variable (Programming)
- Linux ban single-user mode to enhance system security (Linux)
- Build Python3.4 + PyQt5.3.2 + Eric 6.0 development platform Ubuntu 14.04 (Server)
- Spring Data JPA @EnableJpaRepositories configuration in detail (Programming)
- cursor_sharing induced error ORA-00600 (Database)
- How to ensure that the Internet will not be attacked (Linux)
- Keepalived + Nginx Installation and Configuration (Server)
- Oracle Database Performance Optimization of memory disk (Database)
- An example of troubleshooting of embedded Linux OpenWRT (Linux)
- Docker build private warehouse (Server)
- How to understand the difference between synchronous and asynchronous non-blocking blocking (Programming)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.