tar directory and subdirectories

Ads

 
 

Share on Google+Share on Google+

Deepak Kumar
tar directory and subdirectories
1 Answer(s)      6 years and 9 months ago
Posted in : Java Beginners

Hi,

I am developing program on Linux machine. I have to create the .tar file of a directory and subdirectories.

How I can tar directory and subdirectories?

Thanks

Ads
View Answers

February 4, 2011 at 7:48 PM


Hi,

It's very easy in Linux or Unix. You can easily create tar archive of directory and subdirectories.

Use the following command:

tar -cvf myArchieve.tar myfolder/

Thanks


Ads









Related Tutorials/Questions & Answers:
tar directory and subdirectories
tar directory and subdirectories  Hi, I am developing program on Linux machine. I have to create the .tar file of a directory and subdirectories. How I can tar directory and subdirectories? Thanks   Hi, It's very
JAVA Code for Getting List of Directories and its SubDirectories from FTP server
JAVA Code for Getting List of Directories and its SubDirectories from FTP server  **Hi. I am trying to get list of all directories and sub directories and its files from "FTP" and want to show in Jtree but i am unable to do
Advertisements
Traversing a file and directory under a directory
and subdirectories are traversed lying under a directory. We can find that, how many files and directories are available within a directory. This is very frequently... describes how you can traverse a directory if it contains directory and files
Java delete non empty directory
then this method will not delete subdirectories and files of that directory. So...Java delete non empty directory This section demonstrates you how to delete a non empty directory. It is easy to delete a directory if it is empty by simply
Java SDK Directory Structure
stored in 'c' directory that has multiple subdirectories like bin, demo... information bellow. SDK Directory Structure: Subdirectories of the SDK... Java SDK Directory Structure   
telephone directory
telephone directory  how to make a telephone directory using arrays?   Hi Friend, Please visit the following link: Java Telephone Directory Thanks
Artifacts of directory
List of Artifacts of directory maven depenency
Java Create Directory - Java Tutorial
a directory or subdirectories are created. This program also explains the process... a directory "test" and subdirectories "dir1\dir2\dir3"... Java Create Directory - Java Tutorial   
Version of directory>maven-directory-plugin dependency
List of Version of directory>maven-directory-plugin dependency
How to move a file from a directory to other directory
How to move a file from a directory to other directory  I tried the above example it will move the folder to other directory but it does not move the image file or other file to a specified directory. Can anyone help me? Thanks
Directory structure of a web application
Directory structure of a web application   Explain the directory structure of a web application.    The directory structure of a web application consists of two parts. A private directory called WEB-INF. A public
File Directory Merging
File Directory Merging  Two directories are given. Both contain a large amount of files. Each of the directory can be more than a GB. We need to form a new directory in which all the files from both the directories
Create Directory in PHP
Create Directory in PHP  Hi, I want to create a small php program like how to create directory in PHP. I need the help of PHP programmer, who could.... Thanks,   Hi, For creating Directory in PHP is not so tough task. I
Version of geronimo>directory dependency
List of Version of geronimo>directory dependency
Copy Directory or File in Java
the specified source directory (subdirectories and files) to specified destination... Copy Directory in Java      ... the features of the copying the directory and it's contents. This example shows
Artifacts of directory-clients
List of Artifacts of directory-clients maven depenency
Artifacts of directory-network
List of Artifacts of directory-network maven depenency
Artifacts of directory-shared
List of Artifacts of directory-shared maven depenency
Artifacts of directory-naming
List of Artifacts of directory-naming maven depenency
Artifacts of directory-protocols
List of Artifacts of directory-protocols maven depenency
Moving file or directory from one directory to another
Moving file or directory from one directory to another... directory is moved from one directory to another directory. This program illustrates you the method or procedure for moving a file or directory contents
creating a file in a directory
creating a file in a directory  hi i have tried all the file methods to create a file inside a directory but none of them r working some of them are new File ( ".", "C:/fileInRoot.txt" ) new File ( "myDir", "/otherDir" ) File
Open Source Directory
Open Source Directory Open Source Java Directory The Open Source Java Directory is maintained by Steve Mallett, creator of OSDir.com. We welcome and encourage readers to add new product titles to the directory. All
How to make directory in java
Description: This example demonstrate how to create a directory at specified path. Code: import java.io.File; public ... is that it will make a dir at root directory of C drive
Check if the directory is empty or not
Check if the directory is empty or not In this section, you will learn how to check if the directory is empty or not. Java IO package works with both files and directories. Here we are going to check whether directory is empty
Version of directory-network>mina dependency
List of Version of directory-network>mina dependency

Ads

 
Advertisement null

Ads