snap command

觀看 help

執行

$ snap

顯示

error: Please specify one command of: abort, ack, changes, connect, disconnect, find, install, interfaces, known, list, login, logout, refresh or remove

執行

$ snap --help

或是執行

$ snap -h

顯示

Usage:
  snap [OPTIONS] <command>

Help Options:
  -h, --help  Show this help message

Available commands:
  abort       Abort a pending change
  ack         Adds an assertion to the system
  changes     List system changes
  connect     Connects a plug to a slot
  disconnect  Disconnects a plug from a slot
  find        Finds packages to install
  install     Install a snap to the system
  interfaces  Lists interfaces in the system
  known       Shows known assertions of the provided type
  list        List installed snaps
  login       Log into the store
  logout      Log out of the store
  refresh     Refresh a snap in the system
  remove      Remove a snap from the system

執行指令

$ snap find

觀看 manpage

執行

$ man 1 snap

查詢 snap 放在那個位置

執行

$ whereis snap

顯示

snap: /usr/bin/snap /usr/share/man/man1/snap.1.gz

查詢 snap 屬於那個套件

執行

$ dpkg -S /usr/bin/snap

顯示

snapd: /usr/bin/snap

表示「/usr/bin/snap」是屬於「snapd」這個套件。