Users Guide

Table Of Contents
Table 12. Basic commands (continued)
Action Ubuntu Core 16
returns:
System reboot successfully
Shutting down the system Run the command:
admin@localhost:$ sudo poweroff
The system shuts down successfully.
Add a new user if libnss-extrausers is pre-installed
$sudo adduser --extrausers testuser
Change a users password
$sudo passwd <user-name>
Re-mount the Ubuntu Snappy 16 root-file system as read only
Snappy 16 rootfs is Read-Only
Accessing the built-in help
admin@localhost:~$ sudo snap --help
Listing the installed snaps
admin@localhost:~$ sudo snap list
Updating the system name
admin@localhost:$ network-manager.nmcli
general hostname <NAME>
Changing the time zone When the system arrives from the factory, the operating
system is usually set to the UTC time zone.
To change the time zone to your location, run the command:
admin@localhost:~$ sudo timedatectl --help
Root-user credential Run the command:
admin@localhost:$ sudo su -
Returns:
$ admin@localhost:~# sudo su
$ root@localhost:~#
Identifying the System Service Tag Run the command:
admin@localhost:$ cat /sys/class/dmi/id/
product_serial
The system tag is printed.
Identifying the system vendor Run the command:
admin@localhost:$ cat /sys/class/dmi/id/
board_vendor
returns
Dell Inc.
The system tag is printed.
52 Setting up the operating system