1

Different count for compressed file listing vs directory listing

view story
linux-howto

http://unix.stackexchange.com – 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 -> 186364 ls -R /var/www | wc -l -> 196440 How come the count is different, what am I missing ? (HowTos)