If you want to deliver a batch of files from a Linux system, you usually use the Tar command. When you "tar" a directory, you can easily roll up a group of files. When you receive one of these files, you need to understand the process to decompress a .tar file, often called a "tarball." This guide will walk you through the necessary steps.
Step1 Open up a terminal session on your Linux PC. This can be done by clicking on the Home button or the Terminal icon on the bottom bar, then looking for "Xterm."
Step2 Once in the terminal, type “tar -xf”; do not press "Enter." The “x” indicates that you are extracting the contents of a tar file, and the “f” tells it to use the filename you specify.
Step3 Press the space bar once and type in the full name (with extension) that you want for the file. Make sure you are in the same directory as the file in question.
Step4 Press the space bar once again and enter the path of the directory. Remember that the path should be relative to the location you’re issuing the command from. For example, if the full path of the directory is "hdd0\home\user\pictures" and you issued the command from the User directory, then you’d simply have to put “pictures\” in this area.
Step5 Press "Enter." Once the process is completed, you should be able to see the tarball’s directory structure in the location you specified.
How to Decompress a Tar
tags: Linux | author: chaoPosts Relacionados:
Subscribe to:
Post Comments (Atom)
0 comment:
Post a Comment