Printing and Media Commands in Linux (original) (raw)

Last Updated : 7 Jan, 2026

Printing and media commands in Linux are used to manage audio playback, sound settings, printing services, removable media, and screen capturing. These commands are especially useful for handling multimedia tasks and printer-related services directly from the terminal.

Printing and media commands are mainly used to:

Below are the commonly used Printing and Media Commands in Linux

printing_and_media_commands

1. amixer

The amixer command is used to control sound settings for ALSA (Advanced Linux Sound Architecture).

**Syntax:

amixer

**Example:

amixer set Master 10%

2. aplay

The aplay command is used to play audio files from the terminal using ALSA.

**Syntax:

aplay file_name.wav

**Example:

aplay sound.wav

3. aplaymidi

aplaymidi command in Linux is used to play standard MIDI(Musical Instrument Digital Interface) files, by sending the content of a MIDI file to an ALSA(Advanced Linux Sound Architecture) MIDI port, sound renderer like timidity or a hardware MIDI device is required to play MIDI files.

Syntax:

aplaymidi [options] [MIDIfile]

Example:

aplaymidi -h

4. cupsd

The cupsd command is the scheduler service for CUPS (Common UNIX Printing System).

**Syntax:

cupsd

**Example:

systemctl status cups

file

5. eject

The eject command is used to safely remove removable media such as CDs, DVDs, or USB drives.

**Syntax:

eject device_name

**Example:

eject /dev/cdrom

6. import

The import command is used to capture screenshots in Linux (part of ImageMagick).

Syntax:

import file_name.png

Example:

import -adjoin sample.png

-adjoin

This allows you to join multiple images into a single multi-image file. It’s particularly useful when you want to combine screenshots into one output.