$ multipass -h Usage: multipass [options] <command> Create, control and connect to Ubuntu instances.
This is a command line utility for multipass, a service that manages Ubuntu instances.
Options: -h, --help Displays help on commandline options. --help-all Displays help including Qt specific options. -v, --verbose Increase logging verbosity. Repeat the 'v'in the short option for more detail. Maximum verbosity is obtained with 4 (or more) v's, i.e. -vvvv. Available commands: alias Create an alias aliases List available aliases delete Delete instances exec Run a command on an instance find Display available images to create instances from get Get a configuration setting help Display help about a command info Display information about instances launch Create and start an Ubuntu instance list List all available instances mount Mount a local directory in the instance networks List available network interfaces purge Purge all deleted instances permanently recover Recover deleted instances restart Restart instances set Set a configuration setting shell Open a shell on a running instance start Start instances stop Stop running instances suspend Suspend running instances transfer Transfer files between the host and instances umount Unmount a directory from an instance unalias Remove an alias version Show version details
System information as of Sun Jan 16 15:04:58 CST 2022
System load: 0.0 Usage of /: 26.6% of 4.68GB Memory usage: 5% Swap usage: 0% Processes: 119 Users logged in: 0 IPv4 address for enp0s1: 192.168.64.4 IPv6 address for enp0s1: fddf:1872:81b9:5408:5054:ff:fea7:7dc4
0 updates can be applied immediately.
Last login: Sun Jan 16 15:03:53 2022 from 192.168.64.1 To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root"for details.
# run commands # default: none # runcmd contains a list of either lists or a string # each item will be executed in order at rc.local like level with # output to the console # - runcmd only runs during the first boot # - if the item is a list, the items will be properly executed as if # passed to execve(3) (with the first arg as the command). # - if the item is a string, it will be simply written to the file and # will be interpreted by 'sh' # # Note, that the list has to be proper yaml, so you have to quote # any characters yaml would eat (':' can be problematic) runcmd: - [ ls, -l, / ] - [ sh, -xc, "echo $(date) ': hello world!'" ] - [ sh, -c, echo"=========hello world'=========" ] - ls -l /root # Note: Don't write files to /tmp from cloud-init use /run/somedir instead. # Early boot environments can race systemd-tmpfiles-clean LP: #1707222. - mkdir /run/mydir - [ wget, "http://slashdot.org", -O, /run/mydir/index.html ]