Viewing operating system and application versions
Run the uname command to view system information:
root@DCPLB02:/sys/class/net# uname -a
Add the -a option at the end of the command to print all system information. For example:
Linux DCPLB02 4.4.0-98-generic #121-Ubuntu SMP Tue Oct 10 14:24:03 UTC 2017 x86_64
x86_64 x86_64 GNU/Linux
NOTE:
Check if a newer version of the software is available. For more information on checking for updates, see
operating system and
Additional Ubuntu commands
Basic commands
NOTE:
For more information about Ubuntu commands, see https://snapcraft.io/.
Table 8. Basic commands
Action
Viewing system attributes
Updating the image to the latest release
Viewing a list of all the snaps that are currently installed
Viewing a set and attribute to a snap
Querying attributes from a snap
Rebooting the system
Shutting down the system
Add a new user if libnss-extrausers is pre-installed
Change a user's password
Re-mount the Ubuntu Snappy 16 root-file system as read only
Accessing the built-in help
Listing the installed snaps
Updating the system name
Changing the time zone
applications.
Ubuntu Core 16
#sudo snap version
#sudo snap update
#sudo snap find
#sudo snap set <snap> <attribute>=<value>
#sudo snap get <snap>
Run the command:
admin@localhost:$ sudo reboot
returns:
System reboot successfully
Run the command:
admin@localhost:$ sudo poweroff
The system shuts down successfully.
$sudo adduser --extrausers testuser
$sudo passwd <user-name>
Snappy 16 rootfs is Read-Only
admin@localhost:~$ sudo snap --help
admin@localhost:~$ sudo snap list
admin@localhost:$ network-manager.nmcli
general hostname <NAME>
When the system arrives from the factory, the operating
system is usually set to the UTC time zone.
Setting up the operating system
Updating
51