From c02d86b05efcb96e68971f823fb2cb7e3ae3f542 Mon Sep 17 00:00:00 2001 From: John-Paul Bader Date: Sat, 17 May 2014 13:26:11 +0200 Subject: [PATCH] Update commands.md --- commands.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/commands.md b/commands.md index cf8320e..a7b8a2f 100644 --- a/commands.md +++ b/commands.md @@ -90,10 +90,14 @@ ifconfig inet alias # configure IP address alias on interfac ifconfig del # remove IP address from interface route add -net default # add default route route add -net # add a custom route for given network -netstat -rn # display routing table -netstat -an # display all connections /etc/rc.d/netif restart && \ # restart networking and routing after changing the configuration /etc/rc.d/routing restart without rebooting. Execute in tmux or screen session +netstat -rn # display routing table +netstat -an # display all connections +netstat -m # display buffer usage +netstat -Lan # display status of listen queues +sysctl kern.ipc.numopensockets # display number of open sockets + ``` # Firewall