How to switch to netcat-traditional in Ubuntu?

前端 未结 1 1110
天命终不由人
天命终不由人 2020-12-23 17:19

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

相关标签:
1条回答
  • 2020-12-23 17:43
    1. enable universe repository (if not enabled)

      sudo add-apt-repository universe
      
    2. Install the other netcat using synaptic. (To do this, the universe repository must be enabled.)

      sudo apt-get install netcat-traditional
      
    3. type sudo update-alternatives --config nc

    4. Select the option /bin/nc.traditional

    5. 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!!]
    ...
    
    0 讨论(0)
提交回复
热议问题