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 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









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
command to create tar.gz file on Linux system. (adsbygoogle... command to create the tar.gz file for compressing "first_file.txt": tar...How to create tar.gz file in Linux? In this tutorial I will show you how
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 >
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... in MySQL using command prompt. To create a database we need to use
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
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
Command Midlet Example
; This example illustrates how to create command button in your form. Command class build to bind only the semantic information of the command it means  command is not the actual action its contains only information about command
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
Compute command
Compute command  hello, What is compute command?   hii, samarADS_TO_REPLACE_1 Compute command control computations on subsets created by the BREAK command
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
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
Ant Script to Create Mysql Table
Ant Script to Create Mysql Table       This example illustrates how to create table through the build.xml file by simply running the ant command. In this build.xml file, we
Linux as a Command Line Interface (CLI) Vs. Graphics User Interface (GUI).
Linux as a Command Line Interface (CLI) Vs. Graphics User Interface (GUI...;   Operating system shells generally fall into one of two categories: command line and graphical. Command line shells provide
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
JPA One-to-One Relationship
JPA One-to-One Relationship   ... will learn  about the one-to-one relationship. In the one-to-one relation mapping a single value association to another entity.  One-to-One: In one-to-one
ZF Create Form
in command prompt: zf create form loginADS_TO_REPLACE_2 where login is the name of the form , and this command will create one file one is ../application/forms... need to send data from one page to another through forms, in ZF we can create
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
MySQL Create Database
to create the database on MySQL Server. MySQL Database server is one of the very... the following command ADS_TO_REPLACE_5 create database mytestdb; and ending... MySQL Create Database        
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
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
ALL command - SQL
ALL Command in Java & SQL  Nee all commands in Java.  Dear Manoj, I didn't get u what do u mean by all command. could u please... 3.javap c:\ javap This command provides the accessibility of the class
iperf command in java
iperf command in java  How to write a code for iperf command in java
c++ system command
c++ system command   c++ system command variables and an example in real time of using the system command
Command line arguments
Command line arguments  Please explain me what is the use of "command line arguments" and why we need to use
ModuleNotFoundError: No module named 'Command'
ModuleNotFoundError: No module named 'Command'  Hi, My Python... 'Command' How to remove the ModuleNotFoundError: No module named 'Command... to install padas library. You can install Command python with following command
What is command prompt in Java?
What is command prompt in Java?  Hi, What is command prompt in Java? Thanks   Hi, On the Windows Command Prompt is a program to run... system them you can use the command prompt to compile the Java program. Command
ping command in servlet
ping command in servlet  hi can we execute ping command in servlet like as we do in normal java. if we can please give an example how. thanks & regards
unrar command not found in linux
unrar command not found in linux  Hi, I am trying to unrar a file in Linux with following command: unrar myfile.rar Here is complete log of the error: deepak@deepak-VirtualBox:~/examples$ unrar myfile.rar Command 'unrar
Compiling package in command line
Compiling package in command line  Hi friends, i am totally new... package using command line. For Eg: When i compile following command, c:>set... as an internal or external command, operable program or batch file. please help me
Command Prompt in UI
Command Prompt in UI  Hi, Is there any API or JAR file for running all the windows command prompt commands like dir,echo,ping commands? If any please tell me what is it? Thanks & Regards---Vanchinathan.R
command prompt is compilation is not working
command prompt is compilation is not working   Dear java users can anyone help me to run the program in command line prompt i tried by selecting... is compiling and generation the class file using javac c:\helloworld.java command
Java Command Line Input
Java Command Line Input  How to get input from command line in java ?   Hi please Find the code for inputting data from the command line System.out.println("Please Input A Number"); BufferedReader br
Hadoop command not found
Hadoop command not found  Hi, I am trying to put file with the command: hadoop fs -put test.txt /test/ But its saying hadoop command not found. How to resolve this? Thanks   Hi, This error means that you have
character as command line arguments
character as command line arguments  public class testing { public static void main(String args[]) { char a; a=args[0]; System.out.println("character is:"+a); } } what will be the above program output
COMMAND LINE ARGUMENTS
COMMAND LINE ARGUMENTS  JAVA PROGRAM TO ACCEPT 5 COMMAND LINE ARGUMENTS AND FIND THE SUM OF THAT FIVE.ALSO FIND OUT LARGEST AMONG THAT 5   Hi Friend, Try the following code: import java.util.*; class
sql command question
sql command question  I have three tables as below: Table 1: options fields: optionsID, optionsCatID, name Table 2: optionCat fields: optionsCatID... this design is. Anyways I need to find out the sql command which can first see
Hibernate One-to-one Relationships
to create and run the one-to-many mapping in Hibernate. Download the code... Hibernate One-to-one Relationships       Hibernate One-to-one Relationships
command to install pip in ubuntu
command to install pip in ubuntu  Hi, I recently installed Ubuntu.... What is the command to install pip in ubuntu? Thanks   Hi, Here... packages list sudo apt update Step 2: command to install pip on ubuntu After
command to install pip in ubuntu
command to install pip in ubuntu  Hi, I recently installed Ubuntu.... What is the command to install pip in ubuntu? Thanks   Hi, Here... packages list sudo apt update Step 2: command to install pip on ubuntu After
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
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 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
How to create one to one relationship in Hibernate 4 with Annotation?
How to create one to one relationship in Hibernate 4 with Annotation? In this tutorial we are developing an application in Hibernate 4 to create one-to-one mapping. In this example we have two entities worker and workerdetails

Ads