Ubuntu Commands
☰ Table of Content
Misc. Ubuntu commands.
Remove Pre-installed
If you don’t know what they are …
|
|
If not using LVM, LXC/LXD
|
|
If completely rely on journald.
|
|
Get Version
|
|
Change Timezone
|
|
systemd-resolver
Ubuntu/Systemd use systemd-resolver for dns lookup and /etc/resolve.conf no longer show the actual upstream dns. Use following to check and change.
Show DNS Settings
|
|
Change DNS
|
|
Change Search Domain
|
|
Disable CPU mitigations
Do this at your own risk.
/etc/default/grub
|
|
Update GRUB
|
|
Update Initramfs
This is needed if module used during boot is changed.
|
|
Ubuntu Release Upgrade
|
|
Netplan
Apply netplan changes. Will not apply if there is syntax error in configuration files:
|
|
Try, will apply and auto revert:
|
|
Purge Uninstalled Packages
|
|
APT Cache
On apt cache server:
|
|
On other server:
|
|
John Siu
Update: 2020-08-12
Tag
[ubuntu]