LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-01-2017, 01:35 AM   #1
luofeiyu
Member
 
Registered: Aug 2015
Posts: 237

Rep: Reputation: Disabled
What is the difference between -n and -nn in tcpdump?


Man tcpdump:
-n Don't convert addresses (i.e., host addresses, port numbers,
etc.) to names.

sudo tcpdump -i eth0 -nn 'host 192.168.1.176'
sudo tcpdump -i eth0 -n 'host 192.168.1.176'
 
Old 02-01-2017, 03:28 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
As you give no useful information whatsoever, such as distro, version of tcpdump, etc. here's what I just read off my screen:

Code:
man tcpdump
       -n     Don’t convert host addresses to names.  This can be used to avoid DNS lookups.

       -nn    Don’t convert protocol and port numbers etc. to names either.
CentOS release 6.8 (Final)

# tcpdump -V
tcpdump version 4.1-PRE-CVS_2016_05_10
libpcap version 1.4.0

Last edited by TenTenths; 02-01-2017 at 03:29 AM.
 
2 members found this post helpful.
Old 02-01-2017, 07:46 AM   #3
luofeiyu
Member
 
Registered: Aug 2015
Posts: 237

Original Poster
Rep: Reputation: Disabled
My os is debian8.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I've found tcpdump tagged as 'Installed' in PPM, why I can't find a tcpdump command ? illidan.modeler Puppy 1 09-07-2013 07:50 AM
any difference between dumpcap and tcpdump? dbrazeau Linux - Software 2 08-30-2011 06:20 PM
LXer: Making a Difference; Selling a Difference LXer Syndicated Linux News 0 09-23-2010 05:00 AM
tcpdump help, please! SFGAirborne Linux - Networking 1 09-14-2010 09:07 PM
shell script to find the difference betwwn two file and place the difference to other kittunot4u Linux - General 3 07-19-2010 04:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration