Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use the Linux system nc command

Shulou Source: shulou.com Published: 2022-06-01 22:06:05 10月02日 Update

Linux system nc command how to use, I believe that many inexperienced people do not know what to do, so this paper summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.

Netcat (nc) is a very powerful tool in Linux system, which is known as the Swiss Army knife in the field of network security.

You can install [root@linuxlz.com~] # yum-y install nc.x86_64 directly using the yum tool in the Linux terminal window.

After installation, run nc-help in terminal mode to see if [root@linuxlz.com~] # nc-help is installed properly.

OK, installation is normal. Next, we can use nc-l 9999 to listen on the port and send data [root@linuxlz.com~] # nc-lk 8888 / / to open a server connection.

Open another host and test netstat-anop | grep 8888 / / check whether there is a nc localhost 8888 / / connection port for chat before connecting.

Executing nc-l9999 snooping commands in my CentOS 6.4( 64-bit) environment encountered protocol not available [root@linuxlz.com~] # nc-l9999nc: Protocol not available

The solution is as follows: download wget http://vault.centos.org/6.6/os/x86_64/Packages/nc-1.84-22.el6.x86_64.rpm with nc command

Nc command to install rpm-iUv nc-1.84-22.el6.x86_64.rpm

After reading the above, have you mastered how to use the nc command in the Linux system? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

Tags: Commands systems methods ports content tools more terminals problems monitoring power security helplessness for this mainframe saber cause this skills data Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Shulou Technology MariaDB Docker MySQL