options to view the current hostname:
hostname
hostname -s
hostname -f
setup file in this location:
cat /etc/hostname
setup in the command line:
hostnamectl set-hostname your-new-hostname
refresh network settingsafter changes:
https://digitalcreative.tech/update-network-settings/