1/21/2024 0 Comments Linux tar compress command![]() To extract the contents of a Linux tar archive, now just replace the t flag with the x ("extract") flag. I think this is always good practice, especially when you’re logged in as the root user. I almost always list the contents of an unknown archive before I extract the contents. That same command can also work on a file that was tar’d and gzip’d in two separate steps (as indicated by the. To list all the files in a compressed archive, add the z flag like before: This lists all the files in the archive, but does not extract them. To list the contents of an uncompressed tar archive, just replace the c flag with the t flag, like this: The general syntax of the tar command when creating an archive looks like this: The v flag is completely optional, but I usually use it so I can see the progress of the command.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |