Você está na página 1de 4

Pequeno guia de bolso de referncia de comandos Unix / Linux teis no contexto da disciplina

Arp Ver o manual: man arp Exemplo: arp a Arping Ver o manual: man arping Dig Ver o manual: man dig Exemplo: dig ns.di.fct.unl.pt Wireshark Ver o manual: man wireshark Exemplos: wireshark r traballho1.3.txt & testar: -d delete s inserts

Ifconfig Ver o manual: man ifconfig Exemplos: ifconfig eth1 192.168.0.11 [netmask 255.255.255.0] ifconfig eth1 netmask 255.255.255.240 ifconfig -a ifconfig eth1 down Iperf Exemplo TCP: iperf iperf Exemplo UDP: iperf iperf s c s c [ -w 130k ] [ -i 5 ] 192.168.0.11 [ -w 130k ] [ -t 120 ] u [-l 60k ] [-i 5 ] 192.168.0.11 u [-l 60k] [-t 120][-b 10m ]

Minicom Ver o manual: man minicom Comear por correr minicom s Depois basta correr minicom Netstat

(dev ttyS0 8N1)

Ver o manual: man netstat Exemplos: netstat an nota: -n no traduz endereos netstat i eth0 netstat r netstat g .... netstat s ....

Ping Ver o manual: man ping Exemplo: ping n [ -f ] [ -s packet-size ] ip-address

O verdadeiro pacote usado pelo ping tem packet-size + 8 + 20 + 20 bytes aproximadamente. O pacote por defeito tem 56 + 8 + 20 + 20 = 104 bytes

Route Ver o manual: man route Exemplo: route n route add default gw 10.200.0.1 route delete default gw 10.200.0.1 route add net 192.168.0.0/16 gw 192.168.100.1 route add net 224.0.0.0/8 dev eth1

Script Ver o manual: man script Exemplo: script a trabalho1.txt Este comando pode ser usado para guardar num ficheiro tudo o que se passa numa sesso e que pode ser til para a elaborao dos relatrios.

Ssh Ver o manual: man ssh Exemplo: ssh host-name [ ou ip-address ]

Traceroute Ver o manual: man traceroute Exemplo: traceroute n ip-address Tcpdump Ver o manual: man tcpdump Exemplos: tcpdump enx w traballho1.3.txt tcpdump host ipaddr tcpdump i eth1 igmp tcpdump i eth1 ip multicast tcpdump i eth1 tcp tcpdump i eth1 udp tcpdump host ipaddr tcpdump host ipaddr-1 and ipaddr-2 tcpdump udp port 53 tcpdump n nn ip-addr-1 and ipaddr-2 tcpdump x s 120 ip proto 89 tcpdump x s 70 host ip-addr-1 and ( ipaddr-2 or ipaddr-3) tcpdump x s 70 host ip-addr-1 and not ipaddr-2

Ttcp Ver o manual: man ttcp Exemplo: ttcp s [t|r] v [u] f m l 1500 n 5000 [ 8000 ] [ receiver-ip-addr ] Tcpdump Ver o manual: man tcpdump Exemplos: tcpdump enx w traballho1.3.txt tcpdump host ipaddr tcpdump host ipaddr-1 and ipaddr-2 tcpdump udp port 53 tcpdump n nn ip-addr-1 and ipaddr-2 tcpdump x s 120 ip proto 89 tcpdump x s 70 host ip-addr-1 and ( ipaddr-2 or ipaddr-3) tcpdump x s 70 host ip-addr-1 and not ipaddr-2

Você também pode gostar