I always forget this one. Sometimes you want to tar or untar something while maintaining file permissions. Actually not sometimes, all the fucking time.
Create tarball:
tar -pcvzf xxx.tar.gz ABC (-c for create)
Extract tarball:
tar -pxvzf xxx.tar.gz ABC (-x for extract)