Ubuntu Commands

Table of Contents

Misc. Ubuntu commands.

Remove Pre-installed

If you don't know what they are …

apt purge cloud-* snapd whoopsie* unattended-upgrades ubuntu-advantage-tools

If not using LVM, LXC/LXD

apt purge lvm2 lxd lxcfs

If completely rely on journald.

apt purge rsyslog libestr0 libfastjson4

Get Version

lsb_release -r

Change Timezone

dpkg-reconfigure tzdata

Check Upstream DNS

Ubuntu/Systemd use systemd-resolver for dns lookup and /etc/resolve.conf no longer show the actual upstream dns. Use following to check.

systemd-resolve --status
John Siu
Minimize the Effort, Maximize the Effect!
comments powered by Disqus