Creative Saplings

GeeksforGeeks (Italiano)

Settembre 14, 2020
No Comments

Il comando Netstat mostra varie informazioni relative alla rete come connessioni di rete, tabelle di instradamento, statistiche di interfaccia, connessioni mascherate, appartenenze multicast ecc.

Esempi di qualche pratico comando netstat:

  1. -a -all: mostra i socket in ascolto e non in ascolto. Con l’opzione –interfaces, mostra le interfacce che non sono attive
    # netstat -a | more : To show both listening and non-listening sockets.

  2. Elenca tutte le porte tcp.
    # netstat -at : To list all tcp ports.
  3. Elenca tutte le porte udp.
    # netstat -au : To list all udp ports.
  4. Elenca solo le porte in ascolto.
    # netstat -l : To list only the listening ports.
  5. Elenca solo le porte TCP in ascolto.
    # netstat -lt : To list only the listening tcp ports.
  6. Elenca solo le porte UDP in ascolto.
    # netstat -lu : To list only the listening udp ports.
  7. Elenca solo le porte UNIX in ascolto
    # netstat -lx : To list only the listening UNIX ports.
  8. Elenca le statistiche per tutte le porte.
    # netstat -s : To list the statistics for all ports.
  9. Elenca le statistiche per le porte TCP (o) UDP.
    # netstat -st(TCP) : To list the statistics for TCP ports.
    # netstat -su(UDP) : List the statistics for UDP ports.
  10. Visualizza il PID e i nomi dei programmi nell’output.
    # netstat -pt : To display the PID and program names.
  11. Stampa le informazioni netstat continuamente.

    netstat stamperà le informazioni continuamente ogni pochi secondi.

    # netstat -c : To print the netstat information continuously.
  12. Le famiglie di indirizzi non di supporto nel sistema.
    # netstat --verbose : To get the non-supportiveaddress families in the system.

    At the end, we have something like this : 
  13. Le informazioni di instradamento del kernel.
    # netstat -r : To get the kernel routing information.
  14. La porta su cui un programma è in esecuzione.
    # netstat -ap | grep ssh : To get the porton which a program is running.
  15. Quale processo sta utilizzando una particolare porta:
    # netstat -an | grep ":80" : To get the processwhich is using the given port.
  16. Elenco delle interfacce di rete.
    # netstat -i : To get the list of network interfaces.
    Display extended information on the interfaces (similar to ifconfig) using netstat -ie:# netstat -ie : To display extended information on the interfaces
  17. Riferimento:
    Pagina del manuale di Linux per netstat

    Questo articolo è fornito da Kishlay Verma. Se ti piace GeeksforGeeks e vorresti contribuire, puoi anche scrivere un articolo usando contrib.geeksforgeeks.org o spedire il tuo articolo a contrib@geeksforgeeks.org. Vedi il tuo articolo che appare sulla pagina principale di GeeksforGeeks e aiuta gli altri Geek.

    Per favore scrivi commenti se trovi qualcosa di sbagliato, o vuoi condividere maggiori informazioni sull’argomento discusso sopra.

    Attenzione lettore! Non smettere di imparare adesso. Ottieni tutti i concetti importanti di CS Theory per le interviste SDE con il corso CS Theory a un prezzo adatto agli studenti e preparati al settore.

Practice Tags :

Articles
Previous Post

Ricetta Moonshine fatta in casa senza distillatore

Next Post

Il tuo negozio di abiti da sposa One-Stop a Cincinnati, OH!

Lascia un commento Annulla risposta

Articoli recenti

  • Best Photography Schools In The World, 2020
  • I cittadini sovrani portano la loro filosofia antigovernativa sulle strade
  • Guida ai costi di riparazione dello stucco
  • Muckrakers (Italiano)
  • Oncologia di precisione

Archivi

  • Febbraio 2021
  • Gennaio 2021
  • Dicembre 2020
  • Novembre 2020
  • Ottobre 2020
  • Settembre 2020
  • Deutsch
  • Nederlands
  • Svenska
  • Norsk
  • Dansk
  • Español
  • Français
  • Português
  • Italiano
  • Română
  • Polski
  • Čeština
  • Magyar
  • Suomi
  • 日本語
  • 한국어
Proudly powered by WordPress | Theme: Fmi by Forrss.