Ubuntu Unleashed 2019 Edition: Covering 18.04, 18.10, 19.04

(singke) #1
To  use the command line,   open    search  and type    terminal.

When you open the terminal, you are greeted with a prompt similar to the one
here:


matthew@seymour:~$

A blinking cursor also displays. Ubuntu is awaiting your first command. Issue
the following command:


Click here to view code image
matthew@seymour:~$ sudo apt update


This command tells the package management utility apt to check the Ubuntu
repositories and look for any updates to your installed software. In a matter of
seconds, Ubuntu completes all of this, and your screen should look something
like this:


Click here to view code image
matthew@seymour:~$ sudo apt-get update
[sudo] password for matthew:
Hit:1 http://security.ubuntu.com bionic-security InRelease
Hit:2 http://us.archive.ubuntu.com bionic InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:4 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
67 packages can be upgraded. Run 'apt list --upgradable' to see them.
matthew@seymour:~$


Upgrade your software by entering the following:


Click here to view code image
matthew@seymour:~$ sudo apt full-upgrade


Because you have already checked for updates, Ubuntu automatically knows
to download and install only the packages it needs. The full-upgrade
option works intelligently to ensure that any dependencies that are needed can
be satisfied and will be installed, even if major changes are needed. You can
also use the option upgrade, which isn’t as smart as full-upgrade, but
it might be a better choice on a production server because upgrade does not
make major changes to software installations. It only makes changes that are
necessary for security and simple package updates. This allows the systems
administrator more flexibility to keep up-to-date with security while keeping
running setups otherwise unchanged.

Free download pdf