i want to tar the contents inside /some/directory/ and this directory has lots of files and other sub directories in it.
what is the actual difference between the below tar commands, i noticed the latter command contains more files in the tar archive compared to the first one.
i compared by using tar -tvf | wc -l
on each archive
cd /some/directory/
tar -cvf /tmp/directory.tar *
compared to
tar -cvf /tmp/directory.tar -C /some/directory/ .
*
is not including files starting with a dot like.bashrc
while.
is including all files in the directory.