Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I moved your post to its own thread because it is another topic. Please provide more explanation on what you want to do.
You are providing a file list, but say you want to sort the pcap file contents by a date field.
I want to have pcap file with each size 1 MB and it has their own timestamp. I don't want the filename is like:
- something.pcap
- something.pcap1
- something.pcap2
....
because it would be difficult to sort by date.
I want the filename has its own timestamp when the file is created. So my requirement is like:
- something-20111228-17.38.01.pcap
- something-20111228-17.45.50.pcap
Whether the creation time is stored at all in the directory entry depends on the filesystem used. In ext4 (IIRC also ZFS) it’s foreseen to have a crtime and it shows up in stat as “Birth: ...” line. But for me it’s never displaying any useful data but appears always empty. It also looks, like ls has no option for now to sort by crtime.
Whether the creation time is stored at all in the directory entry depends on the filesystem used. In ext4 (IIRC also ZFS) it’s foreseen to have a crtime and it shows up in stat as “Birth: ...” line. But for me it’s never displaying any useful data but appears always empty. It also looks, like ls has no option for now to sort by crtime.
Does it mean, tcpdump create all the pcap file at the time when the command executed and the -C option only cut and then re-create the file?
This I don’t know for sure, as I never dealt with tcpdump. It looks like the name is created when the command started. Later on it only increases the appended number. In some way it makes sense, as you know this way which files are from one run, in case you have several ones from different runs in one and the same directory. I was looking therefore for a date of birth on the OS level, as the ctime won’t help, we need the crtime.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.