lsb_release -r
lsb_release -c
lsb_release -c -d -di
Changing Server name
sudo hostnamectl set-hostname your-server-name
Install Essential Packages
Install common tools and utilities:
shsudo apt install build-essential curl wget vim git
To check the hostname of an Ubuntu server using the command line, you can use either of the following commands:
Using the hostname
command:
shhostname
Using the hostnamectl
command:
shhostnamectl
Using the uname
command with the -n
option:
shuname -n
Any of these commands will display the current hostname of your Ubuntu server.
12. Time Synchronization
Ensure your server's time is accurate:
shsudo apt install ntp
sudo systemctl enable ntp
sudo systemctl start ntp
Uname
Comments
Post a Comment