How to check if a port is listening on Linux? The following is applicable for all Linux/Unix distributions. Ubuntu, CentOS etc.
How to change your hostname in linux