how to change name in terminal ubuntu code example
Example 1: linux change hostname
sudo nano /etc/hostname
sudo nano /etc/hosts
sudo reboot
Example 2: rename command ubuntu
cd /home/user/docs/files
mv file1.txt file2.txt
sudo nano /etc/hostname
sudo nano /etc/hosts
sudo reboot
cd /home/user/docs/files
mv file1.txt file2.txt