tar

The tar command is used to combine multiple files into a single archive and provides
the functionality of a decomposed merged archive. It is independent of compression tools so it is possible to choose whether or not to compress before merging
. The basic usage of the tar command is
tar [options] filename
Common options include
-c to create a new archive file
-t to view the contents of the
archive file -x to decompose the contents of the archive file
-f to specify the name of the archive file
-v to display the process information
-z to use the compression method as
an example

1 tar -czf oracle.tar.gz /u01/app/oracle /etc/oratab /home
/
oracle All files are merged into oracle.tar file and compressed
2 tar -tzf oracle.tar.gz
This command lists all files in the archive file oracle.tar
3 tar -xzvf oracle.tar.gz
This command will archive the file Decompose and extract to the path of the original file

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327039664&siteId=291194637
tar