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

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









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
How do I tar a directory without retaining the directory structure?
How do I tar a directory without retaining the directory structure?  Hi, I want to create tar file without retaining the directory permission. How to do this? Thanks   Use tar czf ~/backup.tgz Thanks
Advertisements
How do I tar a directory without retaining the directory structure?
How do I tar a directory without retaining the directory structure?  Hi, I want to create tar file without retaining the directory permission. How to do this? Thanks   Use tar czf ~/backup.tgz Thanks
tar command
tar command  Hi, What is tar command in Linux and how it is used? Thanks
linux tar folder and subfolders
linux tar folder and subfolders  Hi, I am new to Linux operating system. I have a directory which contains many files in several directories and sub-directories. There are many files in each directory and sub-directories. So
how to create tar file in ubuntu
how to create tar file in ubuntu  Hi, I have a directory with many sub directories and files in it. I want to create tar file of the directory so... which includes the content of directory and sub directory: tar -zcvf dir
how to create tar file in ubuntu
how to create tar file in ubuntu  Hi, I have a directory with many sub directories and files in it. I want to create tar file of the directory so... which includes the content of directory and sub directory: tar -zcvf dir
How do I compress a tar file in Linux
for creating tar of directory and all the contents inside it. the created tar file should... names are well preserved. Directory structure - Inside the tar file, Directory...How do I compress a tar file in Linux  Hi, I want to create
How do I compress a tar file in Linux
for creating tar of directory and all the contents inside it. the created tar file should... names are well preserved. Directory structure - Inside the tar file, Directory...How do I compress a tar file in Linux  Hi, I want to create
How do I compress a tar file in Linux
for creating tar of directory and all the contents inside it. the created tar file should... names are well preserved. Directory structure - Inside the tar file, Directory...How do I compress a tar file in Linux  Hi, I want to create
ModuleNotFoundError: No module named 'tar-diff'
ModuleNotFoundError: No module named 'tar-diff'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'tar-diff' How to remove the ModuleNotFoundError: No module named 'tar-diff
ModuleNotFoundError: No module named 'tar-diff'
ModuleNotFoundError: No module named 'tar-diff'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'tar-diff' How to remove the ModuleNotFoundError: No module named 'tar-diff
ModuleNotFoundError: No module named 'tar-progress'
ModuleNotFoundError: No module named 'tar-progress'  Hi, My Python... 'tar-progress' How to remove the ModuleNotFoundError: No module named 'tar-progress' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'batch-tar'
ModuleNotFoundError: No module named 'batch-tar'  Hi, My Python... 'batch-tar' How to remove the ModuleNotFoundError: No module named 'batch-tar' error? Thanks   Hi, In your python environment you
how to check the size of a tar file in linux
how to check the size of a tar file in linux  Hi, I want to check the size of tar file in Linux. How to check the size of a tar file in linux? What Linux command I should use to check the size of a tar file? Thanks
ModuleNotFoundError: No module named 'devstack-plugin-tar-installer'
ModuleNotFoundError: No module named 'devstack-plugin-tar-installer'  ...: No module named 'devstack-plugin-tar-installer' How to remove the ModuleNotFoundError: No module named 'devstack-plugin-tar-installer' error
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
org.apache.jackrabbit - oak-segment-tar version 1.8.10 Maven dependency. How to use oak-segment-tar version 1.8.10 in pom.xml?
org.apache.jackrabbit  - Version 1.8.10 of oak-segment-tar Maven...-segment-tar in pom.xml? How to use oak-segment-tar version 1.8.10 in pom.xml? Learn... org.apache.jackrabbit  - Version 1.8.10 of oak-segment-tar in project by the help
org.apache.jackrabbit - oak-segment-tar version 1.6.11 Maven dependency. How to use oak-segment-tar version 1.6.11 in pom.xml?
org.apache.jackrabbit  - Version 1.6.11 of oak-segment-tar Maven...-segment-tar in pom.xml? How to use oak-segment-tar version 1.6.11 in pom.xml? Learn... org.apache.jackrabbit  - Version 1.6.11 of oak-segment-tar in project by the help
org.apache.jackrabbit - oak-segment-tar version 1.9.11 Maven dependency. How to use oak-segment-tar version 1.9.11 in pom.xml?
org.apache.jackrabbit  - Version 1.9.11 of oak-segment-tar Maven...-segment-tar in pom.xml? How to use oak-segment-tar version 1.9.11 in pom.xml? Learn... org.apache.jackrabbit  - Version 1.9.11 of oak-segment-tar in project by the help
org.apache.jackrabbit - oak-segment-tar version 1.8.9 Maven dependency. How to use oak-segment-tar version 1.8.9 in pom.xml?
org.apache.jackrabbit  - Version 1.8.9 of oak-segment-tar Maven...-tar in pom.xml? How to use oak-segment-tar version 1.8.9 in pom.xml? Learn... org.apache.jackrabbit  - Version 1.8.9 of oak-segment-tar in project by the help of adding
org.apache.jackrabbit - oak-segment-tar version 1.9.7 Maven dependency. How to use oak-segment-tar version 1.9.7 in pom.xml?
org.apache.jackrabbit  - Version 1.9.7 of oak-segment-tar Maven...-tar in pom.xml? How to use oak-segment-tar version 1.9.7 in pom.xml? Learn... org.apache.jackrabbit  - Version 1.9.7 of oak-segment-tar in project by the help of adding
Maven Repository/Dependency: org.apache.jackrabbit | oak-segment-tar
Maven Repository/Dependency of Group ID org.apache.jackrabbit and Artifact ID oak-segment-tar. Latest version of org.apache.jackrabbit:oak-segment-tar dependencies. # Version Release Date
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
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 SDK Directory Structure
stored in 'c' directory that has multiple subdirectories like bin, demo... Subdirectories of the SDK: The jdk1.5.0 has following directory:ADS_TO_REPLACE_2 Bin... Java SDK Directory Structure   
Maven dependency for org.apache.jackrabbit - oak-segment-tar version 1.46.0 is released. Learn to use oak-segment-tar version 1.46.0 in Maven based Java projects
-segment-tar released The developers of   org.apache.jackrabbit - oak-segment-tar project have released the latest version of this library on 16 Dec 2022, the released version of  org.apache.jackrabbit - oak-segment-tar
Maven dependency for org.apache.jackrabbit - oak-segment-tar version 1.22.13 is released. Learn to use oak-segment-tar version 1.22.13 in Maven based Java projects
of oak-segment-tar released The developers of   org.apache.jackrabbit - oak-segment-tar project have released the latest version of this library on 13 Oct 2022, the released version of  org.apache.jackrabbit - oak-segment-tar
Maven dependency for org.apache.jackrabbit - oak-segment-tar version 1.22.12 is released. Learn to use oak-segment-tar version 1.22.12 in Maven based Java projects
of oak-segment-tar released The developers of   org.apache.jackrabbit - oak-segment-tar project have released the latest version of this library on 15 Jul 2022, the released version of  org.apache.jackrabbit - oak-segment-tar
Maven dependency for org.apache.jackrabbit - oak-segment-tar version 1.22.11 is released. Learn to use oak-segment-tar version 1.22.11 in Maven based Java projects
of oak-segment-tar released The developers of   org.apache.jackrabbit - oak-segment-tar project have released the latest version of this library on 22 Feb 2022, the released version of  org.apache.jackrabbit - oak-segment-tar
Maven dependency for org.apache.jackrabbit - oak-segment-tar version 1.22.10 is released. Learn to use oak-segment-tar version 1.22.10 in Maven based Java projects
of oak-segment-tar released The developers of   org.apache.jackrabbit - oak-segment-tar project have released the latest version of this library on 20 Jan 2022, the released version of  org.apache.jackrabbit - oak-segment-tar
Maven dependency for org.apache.jackrabbit - oak-segment-tar version 1.6.23 is released. Learn to use oak-segment-tar version 1.6.23 in Maven based Java projects
-segment-tar released The developers of   org.apache.jackrabbit - oak-segment-tar project have released the latest version of this library on 11 Mar 2022, the released version of  org.apache.jackrabbit - oak-segment-tar
Maven dependency for org.apache.jackrabbit - oak-segment-tar version 1.40.0 is released. Learn to use oak-segment-tar version 1.40.0 in Maven based Java projects
-segment-tar released The developers of   org.apache.jackrabbit - oak-segment-tar project have released the latest version of this library on 28 May 2021, the released version of  org.apache.jackrabbit - oak-segment-tar
Maven dependency for org.apache.jackrabbit - oak-segment-tar version 1.38.0 is released. Learn to use oak-segment-tar version 1.38.0 in Maven based Java projects
-segment-tar released The developers of   org.apache.jackrabbit - oak-segment-tar project have released the latest version of this library on 22 Jan 2021, the released version of  org.apache.jackrabbit - oak-segment-tar
Maven dependency for org.apache.jackrabbit - oak-segment-tar version 1.22.8 is released. Learn to use oak-segment-tar version 1.22.8 in Maven based Java projects
-segment-tar released The developers of   org.apache.jackrabbit - oak-segment-tar project have released the latest version of this library on 14 Jul 2021, the released version of  org.apache.jackrabbit - oak-segment-tar
Maven dependency for org.apache.jackrabbit - oak-segment-tar version 1.22.7 is released. Learn to use oak-segment-tar version 1.22.7 in Maven based Java projects
-segment-tar released The developers of   org.apache.jackrabbit - oak-segment-tar project have released the latest version of this library on 09 Apr 2021, the released version of  org.apache.jackrabbit - oak-segment-tar
Maven dependency for org.apache.jackrabbit - oak-segment-tar version 1.8.25 is released. Learn to use oak-segment-tar version 1.8.25 in Maven based Java projects
-segment-tar released The developers of   org.apache.jackrabbit - oak-segment-tar project have released the latest version of this library on 01 Nov 2021, the released version of  org.apache.jackrabbit - oak-segment-tar
Maven dependency for org.apache.jackrabbit - oak-segment-tar version 1.6.22 is released. Learn to use oak-segment-tar version 1.6.22 in Maven based Java projects
-segment-tar released The developers of   org.apache.jackrabbit - oak-segment-tar project have released the latest version of this library on 15 Nov 2021, the released version of  org.apache.jackrabbit - oak-segment-tar
Maven dependency for org.apache.jackrabbit - oak-segment-tar version 1.8.13 is released. Learn to use oak-segment-tar version 1.8.13 in Maven based Java projects
of oak-segment-tar released The developers of   org.apache.jackrabbit - oak-segment-tar project have released the latest version of this library on 09...-tar library is 1.8.13. Developer can use this version ( org.apache.jackrabbit
Maven dependency for org.apache.jackrabbit - oak-segment-tar version 1.8.20 is released. Learn to use oak-segment-tar version 1.8.20 in Maven based Java projects
of oak-segment-tar released The developers of   org.apache.jackrabbit - oak-segment-tar project have released the latest version of this library on 29...-tar library is 1.8.20. Developer can use this version ( org.apache.jackrabbit
Maven dependency for org.apache.jackrabbit - oak-segment-tar version 1.6.17 is released. Learn to use oak-segment-tar version 1.6.17 in Maven based Java projects
of oak-segment-tar released The developers of   org.apache.jackrabbit - oak-segment-tar project have released the latest version of this library on 08...-tar library is 1.6.17. Developer can use this version ( org.apache.jackrabbit
Maven dependency for org.apache.jackrabbit - oak-segment-tar version 1.44.0 is released. Learn to use oak-segment-tar version 1.44.0 in Maven based Java projects
-segment-tar released The developers of   org.apache.jackrabbit - oak-segment-tar project have released the latest version of this library on 12 Jul 2022, the released version of  org.apache.jackrabbit - oak-segment-tar
Maven dependency for org.apache.jackrabbit - oak-segment-tar version 1.42.0 is released. Learn to use oak-segment-tar version 1.42.0 in Maven based Java projects
-segment-tar released The developers of   org.apache.jackrabbit - oak-segment-tar project have released the latest version of this library on 07 Jan 2022, the released version of  org.apache.jackrabbit - oak-segment-tar
Maven dependency for org.apache.jackrabbit - oak-segment-tar version 1.8.26 is released. Learn to use oak-segment-tar version 1.8.26 in Maven based Java projects
-segment-tar released The developers of   org.apache.jackrabbit - oak-segment-tar project have released the latest version of this library on 01 Feb 2022, the released version of  org.apache.jackrabbit - oak-segment-tar
Maven dependency for org.apache.jackrabbit - oak-segment-tar version 1.22.9 is released. Learn to use oak-segment-tar version 1.22.9 in Maven based Java projects
-segment-tar released The developers of   org.apache.jackrabbit - oak-segment-tar project have released the latest version of this library on 06 Oct 2021, the released version of  org.apache.jackrabbit - oak-segment-tar
Maven dependency for org.apache.jackrabbit - oak-segment-tar version 1.22.6 is released. Learn to use oak-segment-tar version 1.22.6 in Maven based Java projects
-segment-tar released The developers of   org.apache.jackrabbit - oak-segment-tar project have released the latest version of this library on 15 Jan 2021, the released version of  org.apache.jackrabbit - oak-segment-tar
Maven dependency for org.apache.jackrabbit - oak-segment-tar version 1.6.21 is released. Learn to use oak-segment-tar version 1.6.21 in Maven based Java projects
-segment-tar released The developers of   org.apache.jackrabbit - oak-segment-tar project have released the latest version of this library on 28 May 2021, the released version of  org.apache.jackrabbit - oak-segment-tar
Maven dependency for org.apache.jackrabbit - oak-segment-tar version 1.6.20 is released. Learn to use oak-segment-tar version 1.6.20 in Maven based Java projects
of oak-segment-tar released The developers of   org.apache.jackrabbit - oak-segment-tar project have released the latest version of this library on 31...-tar library is 1.6.20. Developer can use this version ( org.apache.jackrabbit
Java Create Directory - Java Tutorial
a directory or subdirectories are created. This program also explains the process... inputs to create a directory "test" and subdirectories "dir1\dir2... Java Create Directory - Java Tutorial   
telephone directory
telephone directory  how to make a telephone directory using arrays?   Hi Friend, Please visit the following link:ADS_TO_REPLACE_1 Java Telephone Directory Thanks

Ads