0

I’m using nc -l to create a listener socket, but then it just.....listens.....and I can’t issue any further commands.

How do I put it in the background so I can maintain the listener and keep issuing commands in the CLI? I'm using Ubuntu Server 18.04.

1

Put and ampersand (&) at the end of the command.

$ nc -l 8080 &

It might be better to open another terminal window though, and keep your listener in the foreground.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.