2012-04-08 5 views
24

これは簡単な質問ですが、私はどのようにubuntuのnetcat-traditionalに切り替えるのですか?私がnetcat -hと書いたときは、代わりにnetcat-openbsdを実行しているように見えますか?私はUbuntuに新しいので、正確なコマンドが役に立ちます。おかげでUbuntuでnetcat-traditionalに切り替えるには?

答えて

38
  1. シナプスを使用して他のnetcatをインストールします。 (これを行うには、宇宙のリポジトリを有効にする必要があります。)

  2. タイプsudo update-alternatives --config nc

  3. はオプション/bin/nc.traditional

  4. タイプnc -h

出力選択:

[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

注:ste p 1 'sudo apt-get install netcat' – user153882

関連する問題