0% found this document useful (0 votes)
4 views1 page

Running Snap Applications from Command Line

The document discusses how to run applications installed from snaps both through graphical user interfaces and from the command line. It explains that snap applications can be found in the /snap/bin directory and run directly from there or by prefixing the command with the path. It also notes that some distributions use /var/lib/snapd/snap/bin instead. The document recommends adding /snap/bin to the PATH environment variable to more easily run snap commands from any location.

Uploaded by

sandeep
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

Running Snap Applications from Command Line

The document discusses how to run applications installed from snaps both through graphical user interfaces and from the command line. It explains that snap applications can be found in the /snap/bin directory and run directly from there or by prefixing the command with the path. It also notes that some distributions use /var/lib/snapd/snap/bin instead. The document recommends adding /snap/bin to the PATH environment variable to more easily run snap commands from any location.

Uploaded by

sandeep
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Commands and aliases

When installing a snap, you’re often installing an application. If an application uses a GUI, it will be integrated into
your desktop environment and it can be launched just like any other GUI application.
But applications installed from a snap can also be run from the command line, regardless of whether they’re GUI-
based or terminal-based.
The following sections describe how to work with such snap applications.

Running applications
As covered in Getting started, a snap’s installed application(s) can be found under /snap/bin, and subsequently,
often added to $PATH. This makes commands directly accessible from the command line.
If executing a command directly doesn’t work, try prefixing it with the /snap/bin path:
$ /snap/bin/vlc
Adding /snap/bin to your default $PATH makes running snaps that don’t automatically add themselves more
convenient.
A few Linux distributions use a path of /var/lib/snapd/snap/bin instead of the standard /snap/bin. You may
need to experiment and update your path accordingly.

Application commands
The output to snap info lists the applications a snap makes available beneath the commands: section:
$ snap info vlc
name: vlc
summary: The ultimate media player
(...)
commands:
- vlc
(...)

You might also like