Uly.me

cloud engineer

  • Home
  • About
  • Archives
Home/Archives for untar

October 30, 2019

Tar Commands

Here are two important tar commands on how to create and extract a tar.gz file.

Create a tar gzip file called “project.tar.gz” of a directory called “foo.”

tar -cvzf project.tar.gz foo

tar -cvzf project.tar.gz foo

Untar the “project.tar.gz” file to a directory called bar.

tar -zxvf project.tar.gz bar

tar -zxvf project.tar.gz bar

  • Cloud
  • Linux
  • Git

Copyright © 2012–2021