This is the command to scan a range of ports 1-100. The versatility of this command allows you to focus on specific ranges of ports:
nmap -p 1-100 192.168.0.9
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.