nc
nc is a Linux command in the Network category, rated intermediate difficulty. Netcat — versatile networking tool for reading/writing to network connections. The syntax is nc [options] host port. Key options and parameters: host, port — target and port. It returns network connection data. A practical example: nc -zv host 80 # Check if port is open nc -l 8080 # Listen on port 8080 nc host 22 < file.txt # Send file to port nc -v host 1-1000 # Scan ports 1-1000 A close relative is ping, which tests network connectivity to a host by sending ICMP echo requests. A close relative is curl, which transfers data to/from a server using various protocols (HTTP, FTP, etc.). A close relative is wget, which downloads files from the internet. Supports recursive downloads. More about this category: Linux networking commands — ping, curl, wget, netstat, ss, ifconfig, and more. Configure and troubleshoot network connections.