Skip to content

Commit 2dbbc0e

Browse files
committed
Formatted commands
Formatted system, network, and user commands
1 parent 3f4b26d commit 2dbbc0e

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

2besorted/gdoc_linux.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,16 @@ The content below is the raw data from the Google Doc that was first used to col
5050
| `ifconfig -a` | Show information on network interface configuration |
5151
| `route -n` | Show routing table for all host IPs |
5252
| `cat /etc/network/interfaces` | Show network interfaces |
53-
| `iptables -L -n -v` | text goes here |
54-
| `iptables -t nat -L -n -v` | text goes here |
55-
| `ip6tables -L -n -v` | text goes here |
56-
| `iptables-save` | text goes here |
57-
| `netstat -anop` | text goes here |
58-
| `netstat -r` | text goes here |
59-
| `netstat -nltupw ` | Requires root with raw sockets, text goes here |
60-
| `arp -a` | text goes here |
61-
| `lsof -nPi` | text goes here |
62-
| `to resume it ? "cat /proc/net/*" (more discreet)` | text goes here |
63-
| `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 |
53+
| `iptables -L -n -v` | Display all iptables rules |
54+
| `iptables -t nat -L -n -v` | Display iptable rules for table nat |
55+
| `ip6tables -L -n -v` | Display IPv6 tables |
56+
| `iptables-save` | Display iptables content |
57+
| `netstat -anop` | Display all open network connections and processes associated |
58+
| `netstat -r` | Display the kernel routing tables |
59+
| `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 <number of seconds> |
60+
| `arp -a` | Shows arp table |
61+
| `lsof -nPi` | list of what processes are listening on what ports |
62+
| `cat /proc/net/*` | Find all information about the hosts networking using only the cat command--less likely to trigger alarms |
6463

6564
## User accounts
6665
| Command | Description / Importance |

0 commit comments

Comments
 (0)