Linux Tutorial, Linux, AWS, Tcpdump.
in S3 using this .sh #!/bin/bash # Set the duration for the tcpdump duration=180 # Define the file name for the tcpdump cd /apps/tcpdump dump_file="dump_$(date +"%Y%m%d_%H%M%S").pcap" # Start tcpdump /usr/sbin/tcpdump -i eth1 -w $dump_file & # Capture the PID of the tcpdump process tcpdump_pid=$! #