I was taking a backup of a folder, where I used the following command :
sudo tar -zcvf www.tar.gz /var/www/
It successfully compressed, just for verifying the number of files in the compressed archive, and the directory I ran the following commands :
sudo tar -ztvf www.tar.gz | wc -l ->
ls -R /var/www | wc -l ->
How come the count is different, what am I missing ?