Is there a file in linux where the IP can be mapped to the host name. Please tell me the way
As in Windows: by changing the host file we can map the static ip to the host name.
Do you mean the file / etc / hosts ?
/etc/hosts
Typical entries might look like this:
127.0.0.1 localhost 127.0.0.1 sagan 192.168.1.87 bohr