Which of the following commands restores only those files containing lpi in their name from the archive lpifiles.tar.gz?
Which of the following commands restores only those files containing lpi in their name from the archive lpifiles.tar.gz?
The correct command to extract only those files containing 'lpi' in their names from the archive lpifiles.tar.gz is 'tar xvzf lpifiles.tar.gz --wildcards "*lpi*"'. By using the '--wildcards' option, tar will interpret the pattern '*lpi*' and extract the matching files from the archive.
A - 100%
tar xvzf lpifiles.tar.gz --wildcards '*lpi*'
Confirm, the answare is "A". tar xvzf lpifiles.tar.gz --wildcards "*lpi*"
Agree with A!