LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-02-2014, 08:28 PM   #1
eddie9681
LQ Newbie
 
Registered: Apr 2014
Posts: 2

Rep: Reputation: Disabled
file -vv -s 0 -w /location/name of file


Hi, completely new, sorry if im not doing it right but can any one please explain to me whats going on in the subject header?

I am running a command line emulator on my android device and have allowed tcpdump read/writable permission(chmod 77)

I am capturing packets on my android device and am keen to know what -vv -s 0 -w actually does

here is the exact commands i have:

root@m0: /system/xbin # chmod 777 tcpdump

root@m0: /system/xbin # tcpdump -vv -s 0 -w /storage/extSdCard/tcp.cap

thanks.
 
Old 04-03-2014, 02:44 PM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Code:
-vv
    Even more verbose output. For example, additional fields are printed from NFS reply packets, and SMB packets are fully decoded.
-S
    Print absolute, rather than relative, TCP sequence numbers.
from man tcpdump or http://www.tcpdump.org/manpages/tcpdump.1.html

I don't know what 'other' options there are for -s as I've always used 0 from the examples I have found.

-vv is pretty common for additional verbosity (vs -v, I suppose).

Last edited by Habitual; 04-03-2014 at 02:50 PM. Reason: S/s so there :)
 
Old 04-03-2014, 02:45 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
chmod 777 tcpdump? Really? that's a really really bad idea, why did you do that? That means that anyone on the system can edit or delete that program. Don't do that. If you're running this as someone wrote in in your internal documentation or such like, go find who wrote it and poke them in the eye.

If you run "man tcpdump" you'll get the manpage and you'll see what the options do. But -v means "verbose", -vv means "more verbose" -s0 means capture all the packet, not just the first chunk of tcp/ip headers and -w <filename> writes it to a file. Given that you're writing tpo a file, -vv doesn't actually do anything useful, but it's harmless.

---------- Post added 03-04-14 at 07:46 PM ----------

Quote:
I don't know what 'other' options there are for -S as I've always used 0 from the examples I have found.
Wrong case. s, not S.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to copy contents of a text file into another file at a specific location andrew777 Linux - General 3 08-04-2013 03:48 PM
File Rename Based on Text Within File in a Particular Location Nargousias Linux - Newbie 3 06-11-2013 03:50 PM
[SOLVED] gcc recompiles c file (obj file in different location) freeindy Programming 2 07-11-2011 04:45 AM
Xen Problem while creating guest " Invalid file location given: No such file " mgurnani Linux - Software 0 05-09-2009 04:02 PM
Location & name of file that contains list of File Systems & ID manoj.mantra Linux - Newbie 1 09-10-2008 03:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:00 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