If you are new to Linux, you might be wondering how to take a screenshot linux without relying on familiar Windows or macOS tools. Pressing the Print Screen key alone won’t capture your screen on most Linux distributions. Instead, you need to know the right shortcuts, commands, or applications for your specific desktop environment.
This guide covers every method you need, from built-in keyboard shortcuts to powerful command-line tools. Whether you use GNOME, KDE, XFCE, or a lightweight window manager, you will find a solution that works. Let’s start with the simplest approach first.
Built-In Keyboard Shortcuts For Common Desktops
Most modern Linux desktops include screenshot utilities out of the box. The exact keys depend on your environment, but the Print Screen key is usually involved. Here is how they work across popular desktops.
GNOME Desktop Environment
GNOME is the default on Ubuntu, Fedora, and many other distros. It uses a simple screenshot tool called GNOME Screenshot. You can access it via these shortcuts:
- Print Screen – Takes a screenshot of the entire screen and saves it to your Pictures folder.
- Alt + Print Screen – Captures only the currently active window.
- Shift + Print Screen – Lets you select a rectangular area to capture.
If you press Ctrl + Print Screen, the screenshot goes to your clipboard instead of a file. This is useful for pasting into documents or image editors. You can also launch the tool manually by searching for “Screenshot” in the activities overview.
KDE Plasma Desktop
KDE Plasma includes a more advanced tool called Spectacle. It offers similar shortcuts but with extra options. By default, the Print Screen key opens Spectacle’s interface. From there, you can choose to capture the full screen, a window, or a region. You can also set a timer delay.
To change shortcuts in KDE, go to System Settings > Shortcuts > Spectacle. You can assign custom keys if the defaults do not suit you. Spectacle also allows you to annotate screenshots before saving them.
XFCE Desktop
XFCE uses a lightweight tool called xfce4-screenshooter. The default shortcut is the Print Screen key. Pressing it opens a small dialog where you can select the capture mode. Options include the entire screen, the active window, or a selected region. You can also set a delay of a few seconds.
If the shortcut does not work, check your keyboard settings. Go to Settings > Keyboard > Application Shortcuts and ensure xfce4-screenshooter is bound to the Print Screen key.
Other Desktop Environments
For Cinnamon, MATE, or Budgie, the Print Screen key usually works similarly. Each environment has its own screenshot tool. If the default shortcut does nothing, look for a screenshot app in your application menu. You can also install a universal tool like Flameshot or Shutter.
How To Take A Screenshot Linux Using The Command Line
Sometimes you need more control or want to automate screenshots. The command line offers several powerful tools. These work regardless of your desktop environment, making them ideal for servers or minimal setups.
Using Scrot
Scrot is a lightweight command-line screenshot tool. It is simple and fast. To install it, open a terminal and run:
sudo apt install scrot # Debian/Ubuntu
sudo dnf install scrot # Fedora
sudo pacman -S scrot # Arch
Basic usage is straightforward. Type scrot and press Enter. It captures the entire screen and saves the image with a timestamped filename in your current directory. You can specify a custom filename:
scrot my_screenshot.png
To capture a window, use the -s flag. This lets you click on a window to capture it. For a selected region, use -s and then drag a rectangle with your mouse. Scrot also supports delays with the -d option. For example, scrot -d 5 waits five seconds before capturing.
Using Import From ImageMagick
ImageMagick’s import command is another popular choice. It is part of the ImageMagick suite, which is often pre-installed. If not, install it with your package manager. To capture the entire screen, run:
import -window root screenshot.png
For a window, use import screenshot.png and then click the window you want. To select a region, add the -frame option. You can also set a delay with -pause. For example, import -pause 3 screenshot.png waits three seconds.
Using Gnome-Screenshot In Terminal
Even if you use GNOME, you can call its screenshot tool from the terminal. This gives you more options than the GUI. Run:
gnome-screenshot -w # Capture active window
gnome-screenshot -a # Capture a selected area
gnome-screenshot -d 5 # Delay of 5 seconds
You can combine flags. For example, gnome-screenshot -a -d 2 lets you select an area after a two-second delay. The image is saved to your Pictures folder by default.
Third-Party Screenshot Tools For Linux
If the built-in tools are not enough, third-party applications offer advanced features like annotations, cloud uploads, and editing. Here are the best ones.
Flameshot
Flameshot is a feature-rich screenshot tool with a user-friendly interface. It supports region selection, window capture, and full screen. After capturing, you can draw arrows, add text, blur parts, or highlight areas. It also allows direct upload to Imgur or other services.
To install Flameshot, use your package manager:
sudo apt install flameshot
sudo dnf install flameshot
sudo pacman -S flameshot
After installation, launch it from the application menu. You can set it to start automatically and bind it to the Print Screen key. Flameshot runs as a background process and appears in your system tray.
Shutter
Shutter is an older but still capable tool. It offers a wide range of capture options, including menus and tooltips. It also has a built-in editor for cropping, resizing, and adding effects. However, Shutter is no longer actively maintained on some distros. You might need to add a third-party repository to install it.
On Ubuntu, you can add the Shutter PPA:
sudo add-apt-repository ppa:linuxuprising/shutter
sudo apt update
sudo apt install shutter
Shutter’s interface is more complex than Flameshot, but it gives you granular control over every aspect of the capture process.
Ksnip
Ksnip is a cross-platform screenshot tool that works well on Linux. It supports multiple capture modes, including full screen, window, and region. After capturing, you can annotate with shapes, text, and highlights. Ksnip also supports uploading to Imgur and other services.
Install Ksnip via your package manager or download the AppImage from its website. It is lightweight and does not require many dependencies.
Screenshots On Wayland Vs X11
Linux display servers affect how screenshots work. Most modern distributions use Wayland by default, but X11 is still common. The methods above work on both, but there are differences.
On X11, tools like scrot and import work without issues. They can capture any window or region. On Wayland, these tools might fail because of security restrictions. Wayland isolates windows for better security, so screenshot tools need special permissions.
For Wayland, use tools that support the wlr-screencopy protocol. GNOME’s built-in screenshot tool works natively on Wayland. Flameshot also supports Wayland if you install the flameshot package from your distro’s repository. Some users report that Flameshot on Wayland requires launching it with QT_QPA_PLATFORM=wayland flameshot.
If you encounter issues, try switching to X11 temporarily. At the login screen, select your session type (e.g., “Ubuntu on Xorg” instead of “Ubuntu”). This gives you full compatibility with older tools.
Automating Screenshots With Cron
You can schedule screenshots using cron jobs. This is useful for monitoring, time-lapses, or documentation. Here is a simple example that takes a screenshot every hour.
- Open your crontab file:
crontab -e - Add a line like this:
0 * * * * DISPLAY=:0 scrot /home/username/screenshots/hourly_%Y%m%d_%H%M%S.png - Replace
/home/username/screenshots/with your desired directory. - Save and exit. The cron job will run every hour on the hour.
Make sure the directory exists. You can adjust the timing using standard cron syntax. For example, */30 * * * * runs every 30 minutes. The DISPLAY=:0 variable tells the tool which display to capture.
Editing And Annotating Screenshots
After capturing, you might need to edit the image. Linux offers several tools for this. GIMP is the most powerful, but it is heavy for simple tasks. For quick edits, use these alternatives:
- Pinta – A lightweight image editor similar to Paint.NET. It supports layers, basic drawing tools, and text.
- KolourPaint – A simple painting program for KDE. Good for adding arrows and shapes.
- GIMP – Full-featured but overkill for most screenshot edits.
- ImageMagick – Command-line tool for batch processing. You can crop, resize, or convert images without opening a GUI.
For quick annotations, Flameshot and Ksnip include built-in editors. You can add arrows, blur sensitive information, or highlight areas before saving. This saves you from opening a separate application.
Common Issues And Fixes
Even with the right tools, you might run into problems. Here are frequent issues and how to solve them.
Print Screen key does nothing. Check if your desktop environment has a screenshot tool installed. On minimal installations, you might need to install one manually. Also, verify that the key is not remapped by your keyboard settings.
Screenshot is black or empty. This often happens on Wayland with tools that do not support it. Switch to X11 or use a Wayland-compatible tool like GNOME Screenshot or Flameshot.
Command-line tool not found. Install the package using your package manager. For scrot, run sudo apt install scrot. For import, install ImageMagick with sudo apt install imagemagick.
Delay not working. Some tools require the delay flag before other options. For example, scrot -d 5 -s works, but scrot -s -d 5 might not. Check the tool’s documentation for correct syntax.
Frequently Asked Questions
Q: How do I take a screenshot on Linux without the Print Screen key?
A: You can use command-line tools like scrot or import. Alternatively, install a third-party app like Flameshot and assign a custom shortcut.
Q: Can I take a screenshot of a specific window only?
A: Yes. On most desktops, use Alt + Print Screen. In the terminal, use scrot -s and click the window, or import and click the window.
Q: Where are screenshots saved by default?
A: On GNOME, they go to the Pictures folder. On KDE, Spectacle asks where to save. Command-line tools save to the current directory unless you specify a path.
Q: How do I take a screenshot on Linux Mint?
A: Linux Mint uses the Cinnamon desktop. Press Print Screen to open the screenshot tool. You can also use the same shortcuts as GNOME since Cinnamon is based on it.
Q: Is there a way to take a screenshot and copy it to clipboard?
A: Yes. On GNOME, use Ctrl + Print Screen. On KDE, Spectacle has an option to copy to clipboard. For command-line, you can pipe the output to a clipboard tool like xclip.
Final Tips For Better Screenshots
Choose the right tool for your workflow. If you need quick captures, stick with keyboard shortcuts. For annotated images, use Flameshot or Ksnip. For automation, learn scrot and cron.
Test your setup after changing desktop environments or display servers. What works on X11 might fail on Wayland. Keep a backup tool like Flameshot installed for emergencies.
Remember that most Linux tools are highly configurable. Spend a few minutes customizing shortcuts and default save locations. This will save you time in the long run. With these methods, you can capture anything on your Linux system quickly and efficiently.