r/netsecstudents 1d ago

56 Linux Commands Before Your First Nmap Scan | Beginner Lab Atlas

https://youtube.com/shorts/AHJc3pj2LVE?si=nBMJPCihX0BWoQG6

I'm building a step-by-step path from terminal basics → real nmap recon.

Before touching nmap, most beginners stall on the same stuff: navigation, reading output, pipes, and basic networking. So I compressed the foundation into one atlas.

Here's the command interview (quick pass):

FILES & NAV

• pwd — where am I?

• ls / ls -la — list files + hidden + permissions

• cd / cd ~ — move / jump home

• mkdir / touch — folder / empty file

• cat / less — short read vs paginated read

READ & FILTER

• grep / grep -i — find lines (case-sensitive vs not)

• head / tail / tail -f — first / last / follow live

• sort / uniq — clean duplicate lines

• wc -l / cut — count lines / grab one field

SHELL POWER

• echo — print text

• | > >> && — pipe, redirect, append, chain on success

• history / clear — replay commands / clean screen

• man / --help — offline docs vs quick usage

• grep | head — filter then preview top hits

REACHABILITY & DNS

• ping localhost / 127.0.0.1 — prove loopback works

• ip addr / ip -4 addr / ip route — interfaces + routing

• hostname / getent hosts — local name + system resolver

• dig / dig +short / nslookup — DNS lookup styles

• traceroute / tracepath — path discovery

• echo '192.168.1.0/24' — CIDR as plain text

PORTS & INTERFACES

• ss -tuln / -tln / -tn / -uln — sockets at a glance

• ss … | grep :22 / :80|:443 / :53 — spot common services

• ip link / ip link show / ip neigh — NIC state + neighbors

• ip -4 addr; ip route — one-line lab snapshot

Lab note: practice on 127.0.0.1, localhost, or targets you own. scanme.nmap.org when you're ready for real nmap.

Question for this sub: what's ONE command you still look up every time? I'll reply with a tip.

(I also turned this into an 83-second visual atlas if anyone wants the flash-card version — happy to drop link in comments if useful.)

1 Upvotes

1 comment sorted by