How to remove “Last login” message from iTerm

I wanted to preserve some information for future reference in my blog. This message comes up by default announcing the last login and the date. To remove it simply do the following.

go to your home directory
cd ~
and then type
touch .hushlogin

This should prevent the last login from printing when iTerm or terminal is launched.