How to hide machine name from displaying in terminal session screen

Yes. Open ~/.bashrc file from terminal with:

gedit ~/.bashrc

Find this line (in my case is somewhere at line 60):

PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '

and replace it with:

PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '

As you can see, the most important thing is to delete \h (which stands for hostname) from PS1 if you want to hide machine name from displaying in terminal.

Save the file and close it. Restart the terminal, or just type:

. ~/.bashrc