Network¶
Nmap¶
Install¶
Scan¶
Scan all up host in a network
-sn: No post scan, it only checks if host is up-n: No DNS name resolution
Scan a specific range of port
Scan specific ports
Detect host OS
SS¶
ss stands for Socket Statistic. It is the up-to-date command to investigate on socket on a Linux machine. It replaces netstat. ss can be installed with sudo apt install iproute2.
Common usage¶
To list all TCP and UDP sockets listening on the machine and their associated process:
-t: TCP-u: UDP-n: No name resolution (80 instead of http)-l: Listening sockets only (no established connection)-p: Display with process is listening on that port (requiresudo)
nmcli¶
nmcli is the tool of NetworkManager to manage networking on a client Linux machine. On server, it's Netplan that is used to manage networking. While ip command is used to debug or to set temporary interface, nmcli allow creating persistent interfaces.
Wi-Fi¶
Check Wi-Fi access points available
General¶
Show interfaces (virtual and physical)
Show connections
Up or down a connection