6 views
by
tar -czvf /tmp/html.tgz /var/www/html
#              ^ destination   ^source
# z enables gzip compression
# v is for verbose, avoid v if this is not required
Welcome to Ask DevOps!
You can find quick one line answers to popular DevOps, Amazon AWS, Microsoft Azure, Google cloud services, tools & basic to advanced Linux questions!
DevOps Tools list
.. 
...