Capturing your Linux screen can be done with built-in tools or a few terminal commands. If you’re wondering how to take a screenshot in Linux, you are in the right place. Unlike Windows or macOS, Linux offers many ways to grab your screen, from simple keyboard shortcuts to powerful command-line utilities. This guide covers all the major methods, so you can choose what works best for your workflow.
Whether you use Ubuntu, Fedora, or another distribution, the steps are similar. Most desktop environments include screenshot tools by default. You don’t always need extra software. Let’s start with the quickest method: keyboard shortcuts.
How To Take A Screenshot In Linux Using Keyboard Shortcuts
The fastest way to capture your screen is using the Print Screen key. This key is often labeled “PrtSc” or “PrtScn” on your keyboard. Pressing it takes a screenshot of your entire desktop and saves it to your Pictures folder.
Here are the most common shortcuts for GNOME, KDE, and other environments:
- PrtSc – Capture the whole screen
- Alt + PrtSc – Capture only the active window
- Shift + PrtSc – Capture a selected area
- Ctrl + PrtSc – Copy screenshot to clipboard instead of saving
These shortcuts work on most modern Linux distributions. If they don’t, your desktop environment might have different defaults. You can check your system settings under “Keyboard” or “Shortcuts” to customize them.
For example, in GNOME, you can set custom shortcuts for screenshot actions. Go to Settings > Keyboard > View and Customize Shortcuts > Screenshots. There you can assign new keys or change existing ones.
Using The Print Screen Key On Different Desktop Environments
Each desktop environment handles screenshots slightly differently. Here is a quick breakdown:
- GNOME – Uses the built-in Screenshot tool. Pressing PrtSc opens a small dialog where you can choose to capture the whole screen, a window, or a selection.
- KDE Plasma – Uses Spectacle. Pressing PrtSc opens Spectacle, which offers more options like delay timers and annotation tools.
- XFCE – Uses the Xfce4-screenshooter plugin. It works similarly but may require installation first.
- Cinnamon – Uses gnome-screenshot. Shortcuts are similar to GNOME.
If your PrtSc key does nothing, you might need to install a screenshot tool. Most distributions come with one pre-installed, but it’s easy to add if missing.
Using The Built-In Screenshot Application
Most Linux distributions include a graphical screenshot application. In GNOME, it’s called “Screenshot” or “GNOME Screenshot”. In KDE, it’s “Spectacle”. These apps give you more control than keyboard shortcuts.
To open the app, search for “Screenshot” in your applications menu. You’ll see options to capture the whole screen, a window, or a selection. You can also set a delay timer, which is useful for capturing menus or tooltips.
How To Use GNOME Screenshot
- Open the Activities overview and type “Screenshot”.
- Click the Screenshot icon to launch the tool.
- Choose between “Selection”, “Screen”, or “Window”.
- Set a delay if needed (e.g., 5 seconds).
- Click “Take Screenshot” or press Enter.
- The screenshot is saved to your Pictures folder by default.
How To Use Spectacle In KDE
- Press PrtSc or open Spectacle from the application menu.
- Select the capture mode: Full Screen, Current Screen, Active Window, or Rectangular Region.
- Use the delay option if you need time to set up the screen.
- Click “Take New Screenshot”.
- Annotate or edit the screenshot if desired.
- Save it to a file or copy it to clipboard.
These built-in apps are simple and reliable. They cover most basic needs without extra software.
Taking Screenshots With Terminal Commands
If you prefer the command line, Linux has several tools for screenshots. The most common is import from ImageMagick. Another popular option is gnome-screenshot for GNOME users. These commands are great for scripting or remote sessions.
Using The Import Command
First, install ImageMagick if it’s not already installed. On Ubuntu or Debian, run:
sudo apt install imagemagick
On Fedora:
sudo dnf install imagemagick
Then use the import command to capture the screen. For a full screen screenshot:
import screenshot.png
Your cursor will turn into a crosshair. Click anywhere to take the screenshot. To capture a specific window, click on that window. To capture a region, click and drag to select the area.
You can also add options like a delay:
import -delay 5 screenshot.png
This waits 5 seconds before taking the screenshot.
Using Gnome-Screenshot In Terminal
GNOME users can use the gnome-screenshot command. It offers similar options:
gnome-screenshot– Captures the whole screengnome-screenshot -w– Captures the active windowgnome-screenshot -a– Captures a selected areagnome-screenshot -d 5– Adds a 5-second delay
For example, to capture a region with a 3-second delay:
gnome-screenshot -a -d 3
These commands save the screenshot to your home directory with a default filename like “Screenshot from 2025-03-21 14-30-00.png”.
Using Third-Party Screenshot Tools
Sometimes the built-in tools are not enough. You might need annotations, cloud uploads, or advanced editing. Several third-party tools fill this gap.
Flameshot
Flameshot is a powerful open-source screenshot tool. It includes annotation tools like arrows, text, and blur. You can also upload screenshots directly to Imgur.
To install Flameshot:
sudo apt install flameshot (Ubuntu/Debian)
sudo dnf install flameshot (Fedora)
After installation, launch it from the application menu. You can set it as your default screenshot tool in keyboard shortcuts.
Shutter
Shutter is another popular tool, though it’s less maintained now. It offers editing features and the ability to capture specific areas, windows, or menus. To install Shutter:
sudo apt install shutter
Shutter has a user-friendly interface with a built-in editor for adding arrows, text, and highlights.
Ksnip
Ksnip is a cross-platform tool that works well on Linux. It supports annotations, tabbed editing, and multiple capture modes. Install it via:
sudo apt install ksnip
Ksnip is lightweight and fast, making it a good alternative to Flameshot.
Capturing Screenshots In Wayland Vs X11
Linux display servers affect how screenshots work. Most distributions now use Wayland by default, but X11 is still common. The methods above work on both, but there are differences.
On Wayland, the import command from ImageMagick may not work because it relies on X11 protocols. Instead, use gnome-screenshot or spectacle, which support Wayland natively. Flameshot also works on Wayland with some configuration.
If you need a command-line tool for Wayland, try grim and slurp. Install them:
sudo apt install grim slurp
Then capture a region:
grim -g "$(slurp)" screenshot.png
This combination is fast and reliable for Wayland users.
Saving And Managing Screenshots
By default, screenshots are saved to your Pictures folder. You can change this in your screenshot tool’s settings. For example, in Spectacle, you can set a custom save location. In GNOME Screenshot, you can choose where to save each time.
If you take many screenshots, consider organizing them into subfolders by date or project. Some tools like Flameshot let you copy screenshots to clipboard instead of saving, which is useful for quick sharing.
For command-line tools, you can specify the full path:
gnome-screenshot -a ~/Pictures/my_screenshot.png
This gives you control over filenames and locations.
Automating Screenshots With Scripts
You can automate screenshots using shell scripts. This is useful for testing, documentation, or monitoring. Here’s a simple script that takes a screenshot every 10 seconds:
#!/bin/bash
for i in {1..5}; do
import "screenshot_$i.png"
sleep 10
done
Save this as auto_screenshot.sh, make it executable with chmod +x auto_screenshot.sh, and run it. Each screenshot gets a unique filename.
You can also combine with gnome-screenshot for Wayland compatibility:
#!/bin/bash
for i in {1..5}; do
gnome-screenshot -f "screenshot_$i.png"
sleep 10
done
These scripts are basic but can be expanded with timestamps or conditional logic.
Common Issues And Fixes
Sometimes screenshots don’t work as expected. Here are common problems and solutions:
- PrtSc key does nothing – Check if your desktop environment has a screenshot tool installed. Install one like
gnome-screenshotorspectacle. - Screenshot is black – This often happens on Wayland with tools that don’t support it. Use Wayland-compatible tools like
grimorgnome-screenshot. - Cannot capture a menu or tooltip – Use a delay timer. Set a 3-5 second delay to open the menu before the screenshot is taken.
- Screenshot saves to wrong location – Check your tool’s settings. Some tools save to ~/Pictures by default, but you can change it.
- Import command not found – Install ImageMagick:
sudo apt install imagemagick.
Most issues are easy to fix with a quick search or by switching to a different tool.
Frequently Asked Questions
How Do I Take A Screenshot In Linux Without The Print Screen Key?
You can use the built-in screenshot application from your applications menu. Search for “Screenshot” or “Spectacle”. You can also use terminal commands like gnome-screenshot or import.
What Is The Best Screenshot Tool For Linux?
It depends on your needs. For basic use, the built-in tool works fine. For annotations and editing, Flameshot or Ksnip are excellent. For command-line users, import or grim are good choices.
Can I Take A Screenshot Of A Specific Area In Linux?
Yes. Use Shift + PrtSc to select an area. Or use the screenshot application and choose “Selection” mode. In terminal, use gnome-screenshot -a or import with a drag selection.
How Do I Take A Screenshot In Linux Terminal?
Use the import command from ImageMagick, or gnome-screenshot for GNOME. For Wayland, use grim and slurp. These commands capture the screen and save it to a file.
Why Is My Screenshot Black On Linux?
This usually happens on Wayland when using X11-only tools. Switch to Wayland-compatible tools like gnome-screenshot, spectacle, or grim.
Conclusion
Knowing how to take a screenshot in Linux is a basic but essential skill. Whether you use keyboard shortcuts, built-in apps, or terminal commands, you have many options. Start with the PrtSc key for quick captures. Explore graphical tools like Flameshot for more features. Use terminal commands for automation or remote work.
Linux gives you flexibility. You can choose the method that fits your style. Experiment with different tools to find what works best. With practice, taking screenshots becomes second nature.
Remember to check your desktop environment’s settings for custom shortcuts. Keep your tools updated for best performance. And if something breaks, the Linux community has plenty of solutions online.
Now you are ready to capture your screen with confidence. Happy screenshotting!