-h | Display help/usage information. | help + man |
-V | Display version information. | help + man |
-q | is be quiet (don't print packet reception hash marks) | help + man |
-e | is show empty packets | help + man |
-i | Ignore case for the regex expression. | help + man |
-v | Invert the match; | help + man |
-R | Do not try to drop privileges to the DROPPRIVS_USER. | help + man |
-x | Dump packet contents as hexadecimal as well as ASCII. | help + man |
-X | Treat the match expression as a hexadecimal string. | help + man |
-w | is word-regex (expression must match as a word) | help + man |
-p | Don't put the interface into promiscuous mode. | help + man |
-l | is make stdout line buffered | help + man |
-D | When reading pcap_dump files, replay them at their recorded time intervals (mimic realtime). | help + man |
-t | Print a timestamp in the form of YYYY/MM/DD HH:MM:SS.UUUUUU everytime a packet is matched. | help + man |
-T | is print delta timestamp every time a packet is matched specify twice for delta from first match | help + man |
-M | is don't do multi-line match (do single-line match instead) | help |
-I pcap_dump | is read packet stream from pcap format file pcap_dump | help + man |
-O pcap_dump | Output matched packets to a pcap-compatible dump file. | help + man |
-n num | Match only num packets total, then exit. | help + man |
-A num | Dump num packets of trailing context after matching a packet. | help + man |
-s snaplen | Set the bpf caplen to snaplen (default 65536). | help + man |
-S limitlen | Set the upper limit on the size of packets that ngrep will look at. | help + man |
-W normal|byline|single|none | Specify an alternate manner for displaying packets, when not in hexadecimal mode. | help + man |
-c cols | is force the column width to the specified size | help + man |
-P char | Specify an alternate character to signify non-printable characters when displayed. | help + man |
-F file | Read in the bpf filter from the specified filename. | help + man |
-N | Show sub-protocol number along with single-character identifier (useful when observing raw or unknown protocols). | help + man |
-d dev | By default ngrep will select a default interface to listen on. | help + man |
-K num | Kill matching TCP connections (like tcpkill). (in the manual page but not in --help) | man |