create .tar.gz in one command

Ads
 

create .tar.gz in one command

Hi,

I have a big file on Linux server and I want to crate the tar.gz file so that size can be reduced and taken for backup.

I want the command to that i can create .tar.gz in one command.

Give me the command.

Thanks

View Answers

April 22, 2020 at 3:42 PM

Hi,

You can use following command:

tar cvzf mydata.tar.gz mydata

This is one line command in Linux which creates the tar.gz file by including all the contents from the mydata folder. Tar is very powerful utility which can compress the all the content of a directory by including all directories/sub-directories and files under them.

Check the following tutorial for more examples:

Thanks

Ads









Related Tutorials/Questions & Answers:
create .tar.gz in one command
create .tar.gz in one command  Hi, I have a big file on Linux server and I want to crate the tar.gz file so that size can be reduced and taken for backup. I want the command to that i can create .tar.gz in one command. Give me
Create tar.gz file in Linux command line
file in Linux There are many ways you can use the tar command to create tar.gz...How to create tar.gz file in Linux? In this tutorial I will show you how to create tar.gz file in Linux? We are going to use the Linux console and then run
Advertisements
create a one web page
create a one web page  create a one web page with stored values in a database
in unix which command is used to create files
in unix which command is used to create files  in unix which command is used to create files   The cat command in UNIX can be used to create and display information from a file. Command to create a file % cat >
how to dynamically create one file with any example in php
how to dynamically create one file with any example in php  how to dynamically create one file with any example in php
Video Tutorial: How to create a database in MySQL using Command prompt?
How to create a database in MySQL using Command prompt MySQL is an Operation... is the video tutorial of "How to create database in MySQL using command prompt... command prompt. To create a database we need to use 'create database name
How to create one xml file from existing xml file's body?
How to create one xml file from existing xml file's body?  Hi, i'm working with content optimization system.I want to know how we can take all data from an xml doc's body to develope another xml with that content.I'm using JDOm
We just have one file on the hard disk. But we can create directories, sub-directories and files in that file only
We just have one file on the hard disk. But we can create directories, sub-directories and files in that file only  We just have one file on the hard disk. But we can create directories, sub-directories and files in that file
We just have one file on the hard disk. But we can create directories, sub-directories and files in that file only
We just have one file on the hard disk. But we can create directories, sub-directories and files in that file only  We just have one file on the hard disk. But we can create directories, sub-directories and files in that file
create
create  how to create an excel file using java
how to create tar file in ubuntu
this. What is easy command for this which i can run in terminal. how to create tar file in ubuntu? Thanks   Hi, Here is command to create tar file... of the tar.gz file: tar -zxvf dir_archieve.tar.gz Above command will extract
how to create tar file in ubuntu
this. What is easy command for this which i can run in terminal. how to create tar file in ubuntu? Thanks   Hi, Here is command to create tar file... of the tar.gz file: tar -zxvf dir_archieve.tar.gz Above command will extract
jsp one to one mapping
jsp one to one mapping  how to perform one to one mapping in jsp....code of one to one mapping with .xml file
Hibernate one to one mapping using xml
Hibernate one to one mapping using xml  Hi, How to create hibernate one to one mapping using xml? I have to create the mapping using the *.hbm.xml..., In case of one-to-one mapping for each reach in a table there is corresponding only
MySQL Create Database
to create the database on MySQL Server. MySQL Database server is one of the very... the database type the following command create database mytestdb; and ending... MySQL Create Database        
Hibernate one-to-one relationships
Hibernate one-to-one relationships  How does one to one relationship work in Hibernate?   Hibernate Mapping One-to-One Hibernate provides.... here is an example showing one to one relationship using hbm.xml. We have two
tar command
tar command  Hi, What is tar command in Linux and how it is used? Thanks
Print command
Print command  Can I use System.out.println command in Struts form bean or Struts action class. I am using Struts 1.3.8 but when I write this command...;You can use System.out.println command in Strut Action Class. The message written
ModuleNotFoundError: No module named 'django-auto-one-to-one'
install django-auto-one-to-one python with following command: pip install...ModuleNotFoundError: No module named 'django-auto-one-to-one'  Hi...: No module named 'django-auto-one-to-one' How to remove the ModuleNotFoundError
Give a one to one example in Hibernate.
Give a one to one example in Hibernate.  Hello, Can you give me one to one example in Hibernate..Thanks....   Hello, TO read about One to one relationships in hibernate, you can go through the following links
Create Array ??
Create Array ??   Question in e-clips program: Part 1. Array Implementation -Create a class called ‚??PhoneEntry‚?? which can be used to store the name and number of ONE client. -Create a class called ‚??MyArrayList‚?? which
Command Prompt in UI
Command Prompt in UI  Hi One Help... Please go through. I want to develop like that using jsp/javascript but nothing is striking in mind... Please give some suggestions to design first Thanks in advance---- Vanchinathan.R
ModuleNotFoundError: No module named 'one'
library. You can install one python with following command: pip install...ModuleNotFoundError: No module named 'one'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'one
create folder
create folder  what code we should write as a web application that it create an empty folder on client's desktop
Hibernate One-to-one Relationships
to create and run the one-to-many mapping in Hibernate. Download the code example... Hibernate One-to-one Relationships       Hibernate One-to-one Relationships
create a class
create a class  plz provide any example related to class
create webservice
create webservice  Hi Can anyone help me to create a webservice which access another webservice results and display it. thanks
What is command line argument in Java
What is command line argument in Java  What is command line argument in Java and how one can use it to create a program in Java? Can you post any example of command line argument program in Java?? It will be really helpful
What is Hibernate one to one relation?Any example..
What is Hibernate one to one relation?Any example..  Hello, What is Hibernate one to one relation? Is there any example of it.. Thanks..   Dear Friend, Here are detailed tutorials and examples of Hibernate One-to-one
create a button
create a button  i have created button inhtml but my jsp is not working,so can u guide me
ModuleNotFoundError: No module named 'create'
to install padas library. You can install create python with following command...ModuleNotFoundError: No module named 'create'  Hi, My Python... 'create' How to remove the ModuleNotFoundError: No module named 'create'

Ads