From 2dbbc0e8c7a679261e62b903d68fca187a1dd080 Mon Sep 17 00:00:00 2001 From: Will Pennell Date: Sat, 26 Apr 2014 13:29:28 -0400 Subject: [PATCH] Formatted commands Formatted system, network, and user commands --- 2besorted/gdoc_linux.md | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/2besorted/gdoc_linux.md b/2besorted/gdoc_linux.md index b149af3..562348b 100644 --- a/2besorted/gdoc_linux.md +++ b/2besorted/gdoc_linux.md @@ -50,17 +50,16 @@ The content below is the raw data from the Google Doc that was first used to col | `ifconfig -a` | Show information on network interface configuration | | `route -n` | Show routing table for all host IPs | | `cat /etc/network/interfaces` | Show network interfaces | -| `iptables -L -n -v` | text goes here | -| `iptables -t nat -L -n -v` | text goes here | -| `ip6tables -L -n -v` | text goes here | -| `iptables-save` | text goes here | -| `netstat -anop` | text goes here | -| `netstat -r` | text goes here | -| `netstat -nltupw ` | Requires root with raw sockets, text goes here | -| `arp -a` | text goes here | -| `lsof -nPi` | text goes here | -| `to resume it ? "cat /proc/net/*" (more discreet)` | text goes here | -| `what does the above mean? -> It means that all the information given by the above commands can be found by looking into the files under /proc/net , and that this approach is less likely to trigger monitoring or other stuff.` | text goes here | +| `iptables -L -n -v` | Display all iptables rules | +| `iptables -t nat -L -n -v` | Display iptable rules for table nat | +| `ip6tables -L -n -v` | Display IPv6 tables | +| `iptables-save` | Display iptables content | +| `netstat -anop` | Display all open network connections and processes associated | +| `netstat -r` | Display the kernel routing tables | +| `netstat -nltupw` | Requires root with raw sockets: numeric, listening, Value of watch dog timer (requires `-i`), Limit statistics to AF_UNIX family, Display program, wait | +| `arp -a` | Shows arp table | +| `lsof -nPi` | list of what processes are listening on what ports | +| `cat /proc/net/*` | Find all information about the hosts networking using only the cat command--less likely to trigger alarms | ## User accounts | Command | Description / Importance |