Ubuntu Commands

Table of Contents

Misc. Ubuntu commands.

Remove Pre-installed

If you don’t know what they are …

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

If not using LVM, LXC/LXD

1
apt purge lvm2 lxd lxcfs

If completely rely on journald.

1
apt purge rsyslog libestr0 libfastjson4

Get Version

1
lsb_release -r

Change Timezone

1
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.

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