tar -czvf /etc/shadow.tar.gz /etc/shadow
# Compress the / etc / shadow file to /etc/shadow.tar.gz
Note that -f
behind the need to keep the new compressed file name, followed by the talk of the need to package a file name, and order other commands are different.