Quote:
Originally Posted by mia_tech
I have sub-directories class/ and pictures/ that contain data and I can't get the content listed
|
That archive doesn't have any class/ or pictures/ directories in it.
How was it made and can it be re-made?
Create archive:
Code:
tar czvf file.tar.gz /etc/fail2ban/ /etc/apache2/ /path/to/one/file.ext
NOTE: Won't work for you. Just a teachable moment.
# file.tar.gz is the name (and optionally path) of the archive being created.
# /etc/fail2ban/ /etc/apache2/ /path/to/one/file.ext are paths to include in file.tar.gz
# a trailing slash indicates a directory/
Test archive:
Code:
tar ztf file.tar.gz
Search archive:
Code:
tar ztf file.tar.gz | grep <thing>
Extract archive:
Code:
tar zxf file.tar.gz
Extract thing:
Code:
tar zxf file.tar.gz| grep <thing>