Pages

Thursday, June 1, 2017

How to Extract Tar Files to Specific or Different Directory in Linux

The tar utility is one of the utilities that you can use to create a backup on a Linux system. It includes many options that one can use to specify the task to achieve.
Extract Linux Tar Files Different or New Directory
Extract Linux Tar Files Different or New Directory
One thing to understand is that you can extract tar files to a different or specific directory, not necessarily the current working directory. You can read more about tar backup utility with many different examples in the following article, before proceeding further with this article.
In this guide, we shall take a look at how to extract tar files to a specific or different directory, where you want the files to reside.
The general syntax of tar utility for extracting files:
# tar -xf file_name.tar -C /target/directory
# tar -xf file_name.tar.gz --directory /target/directory
      ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
                                                    ► Read more: http://adf.ly/1n5Wrq
      ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

No comments:

Post a Comment