Friday, November 14, 2008

nc - network cat

nc is one of the most useful and unappreciated command. On many systems there is no man page available for it. nc allows you redirect stdin, stdout or stderr to a socket. Many programmers write programs to achieve the same, while a single command can do that work for them.

1 comment:

Unknown said...

How exactly do I use the functionality that you describe?

I'd like to send a linux shell command to another computer(with arguments) on the same network through a socket, have that computer execute the command, and pipe the input back through the socket to the first computer.

How would I go about doing this?

Thanks
-David