Hello gen2, welcome to LQ,
is this homework?
If it's homework, please tell us what you've tried by your own.
If it is not homework, please tell us why you want to scan other people's ports.
You may also use the man command
which will give you all the required information.