Network
The nmap command
Scans hosts and ports to discover which services are exposed. A basic auditing tool.
Syntax
nmap [opciones] hostMost useful options
-pScans only the given ports-sVDetects service versions-AAggressive detection (OS, scripts)Copy-ready examples
$ nmap localhostOpen ports on your machineYou can try them in the browser terminal: it does not touch your computer.
Typical mistakes
- Scanning networks that are not yours can be illegal without authorisation.
FAQ
What is it for in real work?
To inventory services, check firewalls and authorised security audits.
Learn to actually use it
The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.
Start the free course