You need to be a root user to run tcpdump. The tcpdump application may not be installed in your system by default. So install it with your package manager:
$ sudo apt-get install tcpdump $ sudo yum install libpcap tcpdump
Linux Shell Scripting Cookbook - Third Edition
by Shantanu Tushar
Published by
Packt Publishing, 2017
You need to be a root user to run tcpdump. The tcpdump application may not be installed in your system by default. So install it with your package manager:
$ sudo apt-get install tcpdump $ sudo yum install libpcap tcpdump