I have a simple bash script like below :
#!/bin/bash
hname='hostname'
echo Hello, my server name is $hname
But the output is not as I expected. It is as below :
Hello, my server name is hostname
But my hostname is not 'hostname', it is actually 'User'. How should I make it seen as that?
Hello, my server name is User