I know this is a simple question, but how do I switch to netcat-traditional in ubuntu? Whenever I write netcat -h it appears that I am running netcat-openbsd instead? I'm new to Ubuntu so exact commands would be helpful. Thanks

share|improve this question
up vote 38 down vote accepted
  1. Install the other netcat using synaptic. (To do this, the universe repository must be enabled.)

  2. type sudo update-alternatives --config nc

  3. Select the option /bin/nc.traditional

  4. type nc -h

output:

[v1.10-38]
connect to somewhere:   nc [-options] hostname port[s] [ports] ...
listen for inbound: nc -l -p port [-options] [hostname] [port]
options:
    -c shell commands   as `-e'; use /bin/sh to exec [dangerous!!]
    -e filename     program to exec after connect [dangerous!!]
...
share|improve this answer
    
Note: step 1 sudo apt-get install netcat – user153882 Jun 20 '17 at 15:43

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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