HP Enterprise FlexFabric 12900E Series Command Reference Manual page 154

Hide thumbs Also See for Enterprise FlexFabric 12900E Series:
Table of Contents

Advertisement

Parameters
archive-file file
: Displays the names of the successfully extracted files and directories.
verbose
: Displays the content of the extracted files and directories on the screen. The extracted files
screen
are not saved.
to directory
argument specifies the directory.
Usage guidelines
IMPORTANT:
Before specifying the
the types of the archived files. As a best practice, specify the keyword only if all archived files are text
files. Displaying the content of an archived non-text file that contains terminal control characters
might result in garbled characters and even cause the terminal unable to operate correctly. To use
the terminal again, you must close the current connection and log in to the device again.
If you do not specify the
extracted files and directories to the working directory.
The command saves the extracted files and directories by using their original names. If a file or
directory that has the same name as an extracted file or directory already exists in the destination
directory, the file or directory is overwritten.
Examples
# Extract files and directories from archive file a.tar.
<Sysname> tar extract archive-file a.tar
Extracting archive flash:/a.tar Done.
# Extract files and directories from archive file a.tar, and display the names of the successfully
extracted files and directories.
<Sysname> tar extract archive-file b.tar.gz verbose
1.cfg
2.cfg
test/
test/a.log
test/subtest/
test/subtest/aa.log
# Extract files and directories from archive file a.tar, and display the content of the files on the
screen.
<Sysname> tar extract archive-file c.tar.gz screen
#
version 7.1.070, Release 1201
#
sysname Sysname
#
...
Related commands
tar create
tar list
: Specifies the archive file name. The extension can be .tar or .tar.gz.
: Saves the extracted files and directories to a different directory. The
keyword for this command, use the
screen
keyword or the
screen
to directory
148
directory
command to identify
tar list
option, the command saves the

Advertisement

Table of Contents
loading

Table of Contents