tcpdump -neli eth0 icmp
tcpdump -neli eth0 icmp -w icmp.pcap
ls- al
root@ip-172-31-10-227:~# cp icmp.pcap /home/ubuntu/
root@ip-172-31-10-227:~# echo $?
0
ubuntu@ip-172-31-10-227:~$ ls
icmp.pcap
euijoolee@EUIJOOui-MacBookAir ~/Desktop/dump scp -i "../aws-keypair/rapa.pem" ubuntu@ec2-3-35-171-59.ap-northeast-2.compute.amazonaws.com:/home/ubuntu/i
cmp.pcap ./
icmp.pcap 100% 4584 452.6KB/s 00:00
euijoolee@EUIJOOui-MacBookAir ~/Desktop/dump ls ✔ 1593 14:55:32
icmp.pcap
euijoolee@EUIJOOui-MacBookAir ~/Desktop/dump ls -al ✔ 1594 14:55:33
total 16
drwxr-xr-x@ 3 euijoolee staff 96 2 22 14:55 .
drwx------@ 31 euijoolee staff 992 2 22 14:52 ..
-rw-r--r--@ 1 euijoolee staff 4584 2 22 14:55 icmp.pcap