1. 압축을 할때 tar cvzfp 압축할디렉토리명.tar.gz 압축할디렉토리명 2. 압축을 풀때 tar xvzfp 압축한디렉토리명.tar.gz -c, --create create a new archive -v, --verbose verbosely list files processed -z, --gzip, --ungzip filter the archive through gzip -f, --file=ARCHIVE use archive file or device ARCHIVE -p, --same-permissions extract permissions information --no-same-permissions do not extract permissions information --preserve-permissions same as -p --------------------------------------------------------------- GNU `tar' saves many files together into a single tape or disk archive, and can restore individual files from the archive. Usage: tar [OPTION]... [FILE]... Examples: tar -cf archive.tar foo bar # Create archive.tar from files foo and bar. tar -tvf archive.tar # List all files in archive.tar verbosely. tar -xf archive.tar # Extract all files from archive.tar. If a long option shows an argument as mandatory, then it is mandatory for the equivalent short option also. Similarly for op