• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

scrot Command Examples in Linux

by Deepika

scrot is a command-line screen capture utility for Linux operating systems. It allows users to take screenshots of their desktops, windows, or specific regions on their screens with a simple command. The captured image can then be saved in various formats such as JPEG, PNG, or BMP.

scrot is a simple yet powerful tool for taking screenshots, and it has a number of options to customize the output of the captured image. Additionally, scrot can be used in scripts to automate the process of taking screenshots, making it a useful tool for creating documentation or tutorials.

scrot is an open-source project and is hosted on GitHub. The source code is freely available for anyone to view, modify, and distribute under the terms of the GNU General Public License. The project is actively maintained, and users can submit bug reports or feature requests through the project’s GitHub page.

Overall, scrot is a powerful and flexible tool for taking screenshots on Linux systems, and it is a great addition to any user’s toolkit.

scrot Command Examples

1. Capture a screenshot and save it to the current directory with the current date as the filename:

# scrot

2. Capture a screenshot and save it as `capture.png`:

# scrot capture.png

3. Capture a screenshot interactively:

# scrot --select

4. Capture a screenshot from the currently focused window:

# scrot --focused

5. Display a countdown of 10 seconds before taking a screenshot:

# scrot --count --delay 10

Filed Under: Linux

Some more articles you might also be interested in …

  1. csvstat: Print descriptive statistics for all columns in a CSV file
  2. How to setup passwordless SSH login in Linux
  3. exercism: Download and solve problems from the command-line
  4. license Command Examples
  5. srun Command Examples in Linux
  6. faillock: command not found
  7. How to Start, Stop, Restart, Check Status IIS Service by Command Line
  8. pkginfo: command not found
  9. “lambo new” Command Examples
  10. haxelib Command Examples

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright