[Linux]Tar Command

tar - z cvf /tmp/etc.tar. gz /etc
tar - j cvf /tmp/etc.tar. bz2 /etc

Only decompression etc/passwd file
tar -zxvf /tmp/etc.tar.gz etc/passwd

你可能感兴趣的:(linux,command)