Advanced·Troubleshoot the network
nc: Test connection or listening port
Syntax
nc [-zv] Host PortExamples
nc -zv example.com 443Usage and sandbox support
For review only: practice in a real Linux environment, this sandbox does not execute this command.
This command is for reference and review, and the simulation terminal does not provide corresponding exercises yet.
Related commands
ipQuery address and routingssView sockets and listening portspingCheck host connectivitydigQuery DNS recordsnslookupQuery host addresscurlRequest URL or download contentwgetDownload filesshLog in to the remote machinescpCopy files via SSHhostQuery DNStracerouteProbing network routestracepathDetection path and MTUmtrContinuously observe routing and packet losssocatConnect data streams to socketstcpdumpCapture network packetsnmapDetect authorized host portethtoolQuery network interface informationnmcliManage NetworkManager connectionssftpTransfer files interactively through SSHssh-keygenGenerate SSH keyssh-copy-idInstall the SSH public keyopensslCheck TLS with certificate