Ubuntu Linux commands i can never remember

1st September 2022

TimeZone:
timedatectl
timedatectl list-timezones
sudo timedatectl set-timezone your_time_zone
sudo timedatectl set-timezone America/Toronto

Assign all free space to the logical volume:
https://packetpushers.net/ubuntu-extend-your-default-lvm-space/

IPv6 Disable:
sudo nano /etc/sysctl.conf
add following lines:
net.ipv6.conf.all.disable_ipv6=1
net.ipv6.conf.default.disable_ipv6=1
net.ipv6.conf.lo.disable_ipv6=1
reboot OR sudo sysctl -p

Hostname change: no reboot required, may be Ubuntu only, update DHCP/DNS req reboot
sudo hostnamectl set-hostname new-hostname
verify new hostname:
hostnamectl