To install nc aka netcat on Ubuntu, type:
apt-get install netcat
Simple enough. I added this entry because I noticed many resources reference only netcat and not nc. I thought this might be of help to someone needing “the nc command” without knowing to search for netcat.
Enjoy your day.