tar -tvf abc.tar.gz gives me the file name abc.Is it possible to rename the file to abc.dat while decompressing using tar ? Thanks.
Why not rename after decompress?! Do you have any specific requirement?
If you are asking "Will tar rename the file from abc to abc.dat name?", the answer is definitely no.