от снощи ме мъчи една мъка, която разреших, но все пак искам да питам - Какво пропускам
Та:
Debian GNU/Linux testing (jessie)
nc -l localhost 7777
netstat -l
След тия команди порт 7777 не се вижда да е отворен и да "слуша"
Ако изпълним
nc -l localhost -p 7777
Всичко е точно освен.....разминаването в man страниците на Дебиан и на Red Hat Enterprise Linux Server release 5.3 (Tikanga)
Дебиан-а
-l listen mode, for inbound connects
-n numeric-only IP addresses, no DNS
-o file hex dump of traffic
-p port local port number (port numbers can be individual or ranges: lo-hi [inclusive])
РедХат-а
-l Used to specify that nc should listen for an incoming connection rather than initiate a connection to a remote host. It is an error to use this option in con-
junction with the -p, -s, or -z options. Additionally, any timeouts specified with the -w option are ignored.
-n Do not do any DNS or service lookups on any specified addresses, hostnames or ports.
-p source_port
Specifies the source port nc should use, subject to privilege restrictions and availability. It is an error to use this option in conjunction with the -l
option.
В същото време ман-а под дебиан казва че може
"
nc [-options] hostname port
nc -l -p port [-options] [hostname] [port]
"
Та:
Какво пропускам ?
Нормално ли е една и съща програма да е толкова различна под различните дистрибуции?
Или разликите идват от версиите на nc-то (които не можах да открия)