How To Screenshot Linux – Quick Screenshot Shortcuts Linux Desktop

Capturing your screen in Linux requires knowing which desktop environment you are using. This guide covers exactly how to screenshot Linux on any major distribution, from GNOME to KDE to the command line.

Screen grabs are essential for tutorials, bug reports, or just sharing a moment. Unlike Windows or macOS, Linux offers many built-in and third-party tools. Let’s break down the simplest methods first.

How To Screenshot Linux Using Built-In Tools

Most Linux desktops come with a pre-installed screenshot utility. You don’t need to install anything extra. The exact key combination depends on your environment.

GNOME Desktop Environment

GNOME is the default for Ubuntu, Fedora, and Debian. It uses a simple screenshot interface.

  1. Press PrtSc (Print Screen) to capture the entire screen.
  2. Press Alt + PrtSc to capture only the active window.
  3. Press Shift + PrtSc to select a specific area.
  4. A small toolbar appears at the bottom. You can copy the image to clipboard or save it.

GNOME also includes a built-in screenshot app. Search for “Screenshot” in the activities overview. It gives you a timer option and lets you choose the save location.

KDE Plasma Desktop

KDE uses a tool called Spectacle. It’s more feature-rich than GNOME’s default.

  1. Press PrtSc to open Spectacle directly.
  2. Choose between full screen, current screen, active window, or rectangular region.
  3. You can set a delay of up to 99 seconds.
  4. Click “Take a New Screenshot” to capture.
  5. Spectacle lets you annotate, draw arrows, or blur parts of the image.

KDE also allows you to bind custom shortcuts. Go to System Settings > Shortcuts > Spectacle to modify them.

XFCE Desktop

XFCE is lightweight and common on older hardware. It uses a simple tool called “Screenshot”.

  • Press PrtSc to capture the whole screen.
  • Press Alt + PrtSc for the active window.
  • Press Shift + PrtSc for a selected region.
  • The image opens in a dialog where you can save, copy, or open with another app.

XFCE’s tool lacks annotation features. You’ll need a separate editor for that.

Other Desktop Environments

Cinnamon (Linux Mint) uses a tool similar to GNOME. MATE uses “mate-screenshot”. Budgie uses “Screenshot” as well. All follow the same PrtSc logic.

If your desktop doesn’t have a screenshot tool, you can install one. Most package managers offer “gnome-screenshot” or “xfce4-screenshooter”.

Command Line Screenshots

Knowing how to screenshot Linux from the terminal is useful for servers or headless systems. You can automate captures or integrate them into scripts.

Using Import (ImageMagick)

ImageMagick is a powerful image manipulation suite. It includes the “import” command.

  1. Install ImageMagick: sudo apt install imagemagick (Debian/Ubuntu) or sudo dnf install ImageMagick (Fedora).
  2. Run import screenshot.png. Your cursor turns into a crosshair.
  3. Click on a window to capture it, or drag to select a region.
  4. To capture the full screen with a delay: import -window root -delay 5 screenshot.png.

The “-window root” flag captures the entire desktop. The “-delay” sets seconds before capture.

Using Scrot

Scrot is a lightweight command-line screenshot tool. It’s minimal and fast.

  1. Install scrot: sudo apt install scrot or sudo dnf install scrot.
  2. Capture the full screen: scrot myimage.png.
  3. Capture a selected area: scrot -s myimage.png.
  4. Add a delay: scrot -d 5 myimage.png.
  5. Capture the active window: scrot -u myimage.png.

Scrot saves images in the current directory by default. You can specify a full path.

Using Flameshot (CLI Mode)

Flameshot is primarily a GUI tool, but it has a CLI mode. It’s great for annotations.

  1. Install Flameshot: sudo apt install flameshot.
  2. Run flameshot gui to open the graphical interface.
  3. For CLI capture: flameshot full -p ~/Pictures captures the full screen and saves to a folder.
  4. Use flameshot screen -p ~/Pictures for the current screen.

Flameshot’s CLI is less flexible than scrot, but the GUI is excellent for editing.

Third-Party Screenshot Tools

Sometimes built-in tools aren’t enough. Here are popular alternatives for how to screenshot Linux with extra features.

Flameshot

Flameshot is the most popular third-party screenshot tool for Linux. It offers annotation, blur, and upload features.

  • Install via package manager or Flatpak.
  • Launch it from the menu or bind it to a hotkey.
  • Select a region, then use the toolbar to draw, highlight, or add text.
  • You can copy to clipboard, save locally, or upload to Imgur.

Flameshot works on almost all desktop environments. It’s actively maintained and regularly updated.

Shutter

Shutter is an older but powerful tool. It supports delayed captures, selection, and basic editing.

  • Install via package manager (may need to add a PPA on Ubuntu).
  • Launch Shutter from the menu.
  • Use the “Selection” tool to draw a rectangle.
  • Shutter can capture web pages by scrolling, which is unique.
  • It includes a built-in editor for arrows, text, and highlights.

Shutter hasn’t been updated in a few years, but it still works well on most systems.

Ksnip

Ksnip is a Qt-based tool similar to Flameshot. It’s lightweight and supports multiple platforms.

  • Install via package manager or AppImage.
  • Capture full screen, active window, or custom region.
  • Annotate with shapes, text, and highlights.
  • Supports tabbed interface for multiple captures.

Ksnip is a good alternative if Flameshot doesn’t work well on your system.

Automating Screenshots

For developers or sysadmins, automating screenshots is part of how to screenshot Linux efficiently. You can use cron jobs or scripts.

Using Cron

Set up a cron job to take screenshots at intervals.

  1. Edit your crontab: crontab -e.
  2. Add a line: */30 * * * * DISPLAY=:0 scrot /home/user/screenshots/%Y-%m-%d_%H-%M-%S.png.
  3. This captures the screen every 30 minutes.
  4. Ensure the DISPLAY variable is set correctly for your session.

You can adjust the interval and save path as needed.

Using A Bash Script

Write a simple script for repeated captures.

#!/bin/bash
for i in {1..10}; do
  scrot -d 5 "screenshot_$i.png"
  sleep 60
done

This takes 10 screenshots, each 5 seconds after the command, with 60-second gaps.

Editing Screenshots

After capturing, you might need to edit. Most Linux tools offer basic editing. For advanced edits, use GIMP or Krita.

GIMP

GIMP is the Photoshop alternative for Linux. It’s powerful but has a learning curve.

  • Open your screenshot in GIMP.
  • Use the crop tool to remove unwanted areas.
  • Add text layers for annotations.
  • Export as PNG or JPEG.

Pinta

Pinta is simpler than GIMP. It’s like Paint.NET for Linux.

  • Open the screenshot.
  • Use the rectangle or line tools for basic annotations.
  • Add text boxes easily.
  • Save or export.

Common Issues And Fixes

When learning how to screenshot Linux, you might encounter problems. Here are solutions.

PrtSc Does Nothing

If pressing PrtSc does nothing, the shortcut might be unassigned. Check your keyboard settings.

  • In GNOME: Settings > Keyboard > View and Customize Shortcuts > Screenshots.
  • In KDE: System Settings > Shortcuts > Spectacle.
  • In XFCE: Settings > Keyboard > Application Shortcuts.

Assign the PrtSc key to your screenshot tool manually.

Screenshots Are Black

Black screenshots often occur with Wayland. Wayland restricts screen capture for security.

  • Use a Wayland-compatible tool like GNOME Screenshot or Flameshot.
  • Switch to X11 session at login for wider compatibility.
  • Install “wl-clipboard” for clipboard support on Wayland.

No Screenshot Tool Installed

Minimal installations might lack a screenshot tool. Install one via terminal.

  • For GNOME: sudo apt install gnome-screenshot.
  • For KDE: sudo apt install spectacle.
  • For any desktop: sudo apt install flameshot.

Frequently Asked Questions

Q: How do I take a screenshot in Linux without the Print Screen key?

A: You can use the command line with scrot or import. Alternatively, remap another key to PrtSc in your keyboard settings.

Q: Can I take a screenshot of a specific window in Linux?

A: Yes. Use Alt + PrtSc in most desktops, or use the “import” command with a window click.

Q: Where are screenshots saved by default in Linux?

A: It depends on the tool. GNOME saves to ~/Pictures. KDE’s Spectacle asks each time. Scrot saves to the current directory.

Q: How do I take a delayed screenshot in Linux?

A: Use the timer option in GNOME or KDE tools. On the command line, use scrot -d 5 or import -delay 5.

Q: What is the best screenshot tool for Linux?

A: Flameshot is widely recommended for its balance of features and ease of use. For simplicity, built-in tools work fine.

Conclusion

Mastering how to screenshot Linux is straightforward once you know your desktop. Whether you use GNOME, KDE, or the terminal, there’s a method for you. Start with the built-in shortcuts, then explore tools like Flameshot for annotations. For automation, scripts and cron jobs save time. Remember to check your Wayland settings if you encounter black screens. With these techniques, you’ll capture your screen efficiently every time.