Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

There is no single screenshot command that works on every computer. Use screencapture on macOS, choose a tool that matches your Linux display session (such as scrot on X11 or KDE Spectacle), or use wdcapture if you have Microsoft’s Windows Game Development Kit. The command, installed software, display environment, and save path all matter—especially for unattended scripts.

Choose a command for your operating system

System and environment Starting point What to check
macOS Native screencapture command Run screencapture -h or read man screencapture for flags supported by your installed macOS.
Linux using X11 scrot output.png Install scrot if needed; confirm flags with scrot --help or its manual.
KDE desktop spectacle Use spectacle --help to find the installed version’s noninteractive options.
Windows with the Game Development Kit wdcapture screenshot This is a GDK tool, not a command established as available on every Windows installation.

These commands are not interchangeable. In particular, the documented scrot display option is for X, so do not assume it works as a general Wayland capture command. Pick the utility supported by the display system and test it in the same logged-in desktop session where it will run.

Take a screenshot from macOS Terminal

macOS includes the screencapture command. Because command-line flags can vary, first inspect the help on the Mac where the script will run:

screencapture -h
man screencapture

Use the syntax and options shown by that local help to specify the capture and destination. A screenshot is a file only if the command saves it to a file; do not assume that a Terminal command uses the same clipboard behavior as a keyboard shortcut.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Guermok Video Capture Card, 4K USB3.0 HDMI to USB C, 1080P 60FPS & 2K 30FPS
  • 【1080P 60FPS Video Capture Card】 This HDMI game capture card is based on USB3.0 high speed transmission port, input resolution up to 4K@30HZ, output resolution up to 2K@30Hz or 1920×1080@60Hz. Type c and USB interface can meet most of the devices in daily life. Easily meet the online capture, real-time recording, online meetings, live gaming and other functions, so you have a better visual enjoyment. Note: For capture use only; requires capture software to function and is not intended for direct screen casting to a monitor or TV
  • 【Ultra Low Latency Screen Sharing】 HDMI capture card is made of good quality aluminum alloy with strong heat dissipation, allowing you to enjoy ultra low latency while live gaming or video recording or live streaming, avoiding blue screens and lag. This HDMI to USBC capture card supports easy recording of good quality audio or HD video and transferring it to your computer or streaming platform, allowing you to record 60 fps HD video directly on your hard drive and real-time preview
  • 【Plug and Play, Easy to Carry】 This HDMI 1080P video capture card does not require any additional drivers or external power supply, just plug and play for fast capture. The capture card is small and lightweight, so you can put it in your bag for emergencies, making it very portable for outdoor live streaming. It's also a great way to share content in game recording, video conference, video recorder and online teaching
  • 【Wide Compatibility USB Capture Card】 Easily streams to Facebook, Youtube or Twitch. With the connection, this HDMI to USB C/3.0 video capture devices can be working on several Operating Systems and various software: Windows 7/ 8/ 10, Mac OS or above, Linux, Android, Laptop, Xbox One, PS3/PS4/PS5, Camera, DVDs, Set Top Box, Webcame, DSLR, Switch/Switch 2, TV BOX, HDTV, Potplayer/VLC, ZOOM, OBS Studio etc.
  • 【Package Content & Note】 1x HD Audio Capture Card , 1x USB 3.0 to USB C Adapter (A-side 3.0, B-side 2.0), 1x user manual. Please note that you need to restart the OBS Studio software after the audio setup is complete, otherwise it will result in no sound output. When using an adapter, if the device is recognized as USB 2.0, try using the other side with the USB-C port. Simply flip the capture card and reconnect it to be recognized as USB 3.0

Apple’s support guide describes the Screenshot app and screenshot shortcuts, rather than documenting command-line flags. It says screenshots default to the desktop unless the save location is changed, and some apps—including Apple TV—may not allow screenshots of their windows. The Screenshot app is available in macOS Mojave 10.14 or later; its documented controls include a timer and save-location selection. On supported Mac models running macOS Tahoe 26 or later, it also offers SDR PNG or HDR HEIF capture options. Those are Screenshot app details, not guarantees about screencapture flags. Apple’s screenshot guide explains the documented user-interface methods.

Capture a Linux screen with scrot on X11

On an X11 session with scrot installed, the simplest capture is:

scrot output.png

The command writes the image to the named file in the current working directory. If a filename has no extension, the documented fallback is PNG; the extension can also be used to select the output format. The Debian testing manual documents the following useful options:

Need Example Effect
Select a fixed rectangle scrot -a X,Y,W,H region.png Captures the rectangle at the specified position and dimensions.
Choose an area interactively scrot -s region.png Waits for the user to select a region; it is not unattended.
Wait before capture scrot -d SEC delayed.png Delays capture by the specified number of seconds.
Capture the focused window scrot -u window.png Targets the currently focused window.
Capture a specified window ID scrot -w NUM window.png Targets the window with that ID.
Select a display or monitor scrot -D DISPLAY -M NUM monitor.png Chooses an X display or monitor using the relevant option.
Capture multiple displays scrot -m all.png Requests a multi-display capture.
Set an explicit output name scrot -F FILE Sets the output filename; -F - writes to standard output.

Use the options supported by the release actually installed: flags differ between scrot versions. Check scrot --help or the installed manual before putting them in a script. These instructions are for the X-oriented tool; they do not establish Wayland compatibility. The Debian testing scrot manual documents the command and options.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Capture Card, 4K HDMI Video Capture Card, Game Capture Card, 1080P 60FPS Video Capture Device, HDMI to USB 3.0 Capture Card for Streaming, Work with Camera/Xbox/PS4/PS5/PC/OBS
  • 【1080P HD High Quality】Capture resolution up to 1080p for video source and it is ideal for all HDMI devices such as PS4, PS3, Xbox One, Xbox 360, Wii U, DVDs, DSLR, Camera, Security Camera and set top box. Note: Video input supports 4K30/60Hz and 1080p120/144Hz. Does not support 4K120Hz/144Hz. Output supports up to 2K30Hz.
  • 【Plug and Play】No driver or external power supply required, true PnP. Once plugged in, the device is identified automatically as a webcam. Detect input and adjust output automatically. Won't occupy CPU, optional audio capture. No freeze with correct setting.
  • 【Compatible with Multiple Systems】suitable for Windows and Mac OS. High speed USB 3.0 technology and superior low latency technology makes it easier for you to transmit live streaming to Twitch, Youtube, Facebook, Twitter, OBS, Potplayer and VLC.
  • 【HDMI LOOP-OUT】Based on the high-speed USB 3.0 technology, it can capture one single channel HD HDMI video signal. There is no delay when you are playing game live.
  • 【Support Mic-in for Commentary】Rybozen capture card has microphone input and you can use it to add external commentary when playing a game. Please note: it only accepts 3.5mm TRS standard microphone headset.

Use KDE Spectacle for desktop captures

KDE’s Spectacle can be started from a terminal with:

spectacle

For scripts, Spectacle offers a background mode intended to run without showing the GUI or requiring user interaction. Its command-line arguments depend on the installed version, so inspect them rather than inferring CLI flags from the desktop keyboard shortcuts:

spectacle --help

The Spectacle handbook covers its command-line options and background operation. KDE also documents shortcuts for all monitors, the active window, and a rectangular region, but use the local CLI help to construct an automated command.

What works from Windows PowerShell?

The Windows command-line option established here is wdcapture.exe, documented in Microsoft’s Windows Game Development Kit (GDK). Microsoft’s documented form is:

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Capture Card, USB Video Capture Card Device, Audio Video Converter Grabber for RCA to USB-Convert VHS Mini DV VCR Hi8 DVD to Digital, for PC TV Tape Player Camcorder, MAC Windows Vista Compatible
  • AV TO USB Converter: Capture videos and audios from VHS, VCR, Hi8, DV tapes to a PC, with the help of our USB Video Converter. Save room while digitizing your favorite old memories
  • Quality Capture Card: Our USB Video Capture Card converting anolog RCA composite input into HD 720P USB output and capturing audio without any sound card. Advanced signal processing technology provides you with great precision, colors, resolutions, and details.
  • Plug and Play: Automatically install the driver once you hook up this RCA to USB Converter to a PC. No external power is needed. User-friendly and easy to operate
  • Wide Compatibility: The Video Capture Card can work with video devices with RCA connector or S-Video connector, such as VHS, VCR, Hi8, camcorder, compatible with Windows and Mac OS. Support video formats like NTSC, PAL, and support brightness, contrast, hue, and saturation control
  • Note: The Video Converter is used with acquisition software. We recommend OBS Studio or PotPlayer for Windows, and QuickTime Player for Mac. They can be downloaded for free online. Please operate according to the steps in User Manual or contact us if you have any questions
wdcapture screenshot --filepath "C:Screenshotsscreen.png"

The documented options include --filepath <filepath>, --hdr, and --display <display-id>; capture uses Windows Graphics Capture APIs. Run it from PowerShell or another command shell only after confirming that the GDK and the tool are installed and appropriate for your system. The GDK documentation does not establish that wdcapture is present on an ordinary Windows PC or that PowerShell itself has a universally available built-in screenshot command. See Microsoft’s wdcapture documentation for the tool’s supported syntax.

Make command-line screenshots reliable

  • Use an explicit destination. Save to a full path when the command may run from a different working directory than expected. Confirm that the destination directory exists and is writable.
  • Match the display session. Run an initial test while logged into the desktop session that the capture should show. Remote shells, scheduled jobs, and services may not see the same display as an interactive user.
  • Decide whether interaction is acceptable. Region selection and window selection can require a person or a focused window. Use a documented background or noninteractive mode when a job must run unattended.
  • Test multi-monitor behavior. Specify a display or monitor only with flags supported by the installed tool, then inspect the resulting image. Monitor numbering and desktop arrangement can matter.
  • Check protected or restricted windows. Some applications may block capture. Apple specifically notes that certain apps, including Apple TV, may not permit screenshots of their windows.
  • Verify the artifact. After the command exits, check that the file exists, is nonempty, and opens as the intended image format. For scripts, treat a missing or invalid file as a failed capture rather than silently continuing.

Troubleshooting common failures

“Command not found”

The selected utility is not installed or is not on the shell’s executable path. On Linux, install the appropriate package for your distribution if you want scrot; for KDE, check that Spectacle is installed. On Windows, verify that the GDK-provided wdcapture is installed. macOS has the native screencapture command, but confirm its availability in the shell environment.

The output file is missing or in the wrong folder

A relative filename is saved relative to the command’s current directory, which may differ in a scheduled job or script. Use an absolute path, create the parent directory first, and verify write access.

The command waits for input

An interactive area or window selection is unsuitable for an unattended task. Replace it with a fixed region or another noninteractive mode supported by the installed utility; for Spectacle, check its background options with spectacle --help.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Video Capture Card, 4K USB3.0 HDMI to USB C, 1080P60FPS HDMI Capture Card for Streaming, Gaming, Video Recording Compatible with Switch, Xbox, PS4/5, OBS,iPad Mac OS Windows,Camera, Zoom(Silver)
  • 【4K HDMI Input, 2K@30Hz Recording】Powered by a true USB 3.0 high-speed interface, the capture card supports up to 4K@30Hz HDMI input and records at 2K@30Hz or 1080P@60Hz. Perfect for gamers, streamers, and professionals who need crisp, smooth video for live streaming, gameplay recording, or online meetings.
  • 【Ultra Low Latency Screen Sharing】Built with a premium aluminum alloy shell and advanced chipset for stable heat dissipation, ensuring ultra-low latency transmission. Capture high-quality video and dual-channel audio in real time—no lag, no frame drop—ideal for Twitch, YouTube, or OBS streaming.
  • 【Easy Plug and Play, Compact & Portable】No driver or external power required—just plug and play via USB 3.0 or Type-C connection to your Windows or macOS computer. Lightweight and compact design makes it easy to carry for outdoor streaming, live shows, or mobile recording setups.
  • 【Wide Compatibility & Multi-Device Support】Compatible with Windows 7 8 10 11, macOS, Linux,Android and supports most popular software such as OBS, Zoom, VLC, Twitch Studio, and more. Works seamlessly with PS4, PS5, Xbox, Switch, DSLR cameras, TV boxes, and other HDMI-output devices for streaming to YouTube, Twitch, etc.
  • 【What You Get】Includes: HDMI Capture Card, USB 3.0 to USB-C Adapter, User Manual. Tips: Make sure your tablet’s OTG function is enabled before connecting. Test your HDMI device with a monitor first to confirm video and audio output, then connect to the Video Capture Card for recording.

The captured screen is blank or does not match the desktop

Test the command from the logged-in graphical session, then confirm that it targets the correct display server and monitor. A command designed for X11 should not be treated as a general Wayland solution. Remote login and service contexts may not have access to the same visible desktop.

The command rejects an option

Flags can vary by release. Consult the installed command’s help or manual instead of copying an option from a different version’s example. This is especially important for scrot and the command-line options of Spectacle.

A particular window cannot be captured

The application may restrict screenshots, or the requested window may not be visible to the capture session. Try a permitted target and check the application and operating-system guidance; do not assume every window can be captured.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Or skip the browser setup

If your task is to capture a website rather than the computer’s desktop, a screenshot API can return an image or PDF without launching a local browser. ScreenshotNeo is a website screenshot API and MCP server: it removes cookie banners, newsletter popups, and chat widgets before capture; bot checks, blank pages, and failed loads are never billed; and its MCP server lets AI agents take screenshots. The Free plan includes 1,000 screenshots per month with no card, and paid plans start at $5 for 3,000.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

One GET request returns the screenshot. This cURL example saves a WebP capture of a page:

Best Value
VIXLW 4K HDMI Video Capture Card, Cam Link Card, HDMI to USB 2.0 Game Audio Adapter, Record Capture Device for Streaming, Teaching, Gaming, Live Broadcasting, Video Conference [Windows]
  • 【4K VIDEO CAPTURE CARD】Made with upgraded chip, captures 4K@60Hz video input at full speed, no lag, no delay, capture card also supports 1920×1080@30Hz highest image quality output, capture video to USB through HDMI, you can Directly save to computer and mobile phone; suitable for high-definition video live broadcast, video capture, online conference, video streaming, video course; equipped with high-definition USB cable.
  • 【HDMI real-time screen sharing】The HDMI interface is made of nano-metal material, so that the video can reach ultra-low latency. The audio and video capture card can capture video and audio at the same time, and store the video signal into the computer and smartphone, and support OBS post-video. Editor, this is an excellent solution for online meetings and live broadcasts, economical and fast, 4K HDMI Capture Card is widely used in live broadcast, conference, photography, medicine, daily office.
  • 【Plug and Play】4K video capture card has built-in drivers, no need to install complicated programs, no external power supply, plug and play, very convenient, just plug into your computer, you can use it, the shell is made of aluminum alloy seamlessly , small size, very convenient to carry, suitable for capturing interesting details in life, can be used for indoor and outdoor live broadcast, and the color of the picture is more delicate.
  • 【Wide Compatibility】The video capture card adopts advanced chips, intelligent identification equipment, and is widely compatible with electronic equipment, which can easily capture wonderful moments and comes with a USB cable. It supports third-party video capture software such as OBS, Win, MacOs, Android, etc. It can also perform video capture and online live broadcast at the same time, store and share videos at the same time, and easily realize video splicing, which is very convenient.
  • 【24 hours local technical support】We have a professional technical team for more than ten years, serving you 24 hours a day. You are welcome to contact us if you have any questions.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

Replace YOUR_API_KEY with your access key and the target URL with the page you want. See the ScreenshotNeo API documentation for parameters and response details. For a free account, sign up for 1,000 screenshots a month with no card.

Frequently Asked Questions

Can I use the same screenshot command on macOS, Linux, and Windows?

No. Choose a command supported by the operating system and display environment; there is no single portable screenshot command.

Does a screenshot command copy the image to my clipboard?

Do not assume so. Check the installed command’s documentation for its output behavior; a saved image file and clipboard capture are different workflows.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.