![]() Listing content and extracting a single file or directory are some of the widely used utilities of the command untar. It first helps the user to extract or, in other words, unpack files in the compressed mode, and once the unpacking or extraction is done, the command helps the user to uncompress the same. This command is used for 2 specific utilities in file operations. ConclusionĪnd that’s it! That’s how you untar tar.gz files.Untar is a command that enables users to extract compressed files with tar, tar.gz, and tar.bz2 compression formats. This ensures that the target directory is created. The -p (parents) option lets mkdir create and parent directories you need. But if you need to create a directory and extract the files into it using just one command, here’s the command you need to enter: mkdir -p ~/Desktop/Videos/Downloaded & tar xvjf -C ~/Desktop/Videos/Downloaded/ Tar won’t create it out of thin air if it’s not already there. IMPORTANT: For this to work, the target directory must already exist on your device. ![]() If you look in your Desktop/Videos directory, you’ll now see your videos of graceful clowns. If you want to extract the files to a location other than the current directory, you’ll need to specify a target directory using the -c option (specified directory). How to choose where to untar tar.gz files to: You can also add files whenever you wish. If you’re using a Linux OS, you can open the tar archive just as you open any other directory. You don’t need to untar tar.gz files every time you want to add a new file to the archive. In a shell, the process is basically the same.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |