tar directory and subdirectories

Ads
 

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

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
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 '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
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
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
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
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
ModuleNotFoundError: No module named 'directory'
ModuleNotFoundError: No module named 'directory'  Hi, My Python... 'directory' How to remove the ModuleNotFoundError: No module named 'directory' error? Thanks   Hi, In your python environment you
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
Version of directory>apacheds dependency
Version of geronimo>directory dependency
List of Version of geronimo>directory dependency
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
r set working directory
r set working directory  Hi, How to set working directory in r.... There are command to set the working directory in R. Working directory is the base directory for your current work which contains data and other files related to your
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-naming
List of Artifacts of directory-naming maven depenency

Ads