In a related post, you may learn about creating a gzip folder with tar in Linux. If you liked the tutorial, subscribe to the weekly newsletter to get Linux tips and tutorials in your inbox.Let us now look at some examples below. Example 1: Extracting tar Files to a Specific Directory In the first example, I will extract the files in articles.tar to a directory /tmp/my_article. Let me start by creating the /tmp/my_article directory using the command below: # mkdir /tmp/my_article Always make sure that the directory into which you want to extract tar file exists. Img 01: Extract Tar Files to Different Directory To extract the files in articles.tar to /tmp/my_article, I will run the command bellow: # tar -xvf articles.tar -C /tmp/my_article/ You can include the -p option to the above command so that the command does not complain. In the above example I used the -v option to monitor the progress of the tar extraction. Let me also use the -directory option instead of -c for the example above. # tar -xvf articles.tar -directory /tmp/my_articles/ Please mail webmaster (at) linux-india (dot) org if you can help with more languages.Img 02: Extract Tar Files to Specific Directory Example 2: Extract. Soliciting greetings for this page in Indian languages. The only tools you need are this browser, your mouse and your keyboard. Please create an account and edit your personal page to get a feel of what can be done with this site.
0 Comments
Leave a Reply. |