12/9/2023 0 Comments Quickest way to untar file linux![]() What if we want to put them in a specific folder? We see our files again are extracted so we can access them. We have two tarballs here, one compressed and one uncompressed. Let’s delete the text files in the folder now. Once again, we see the files that were added listed here. To do this, we just add an argument to the tar command (z), and we change the file extension to. Great! This is a bundle of your files, uncompressed. You should then see the files that were added to your tarball.Īlso, if you type in ls -la again, you’ll see your new file: Type in this command: tar -cvf ourfiles.tar *.txt We have the tar command and add our arguments (-cvf), the name of the archive to create, and *.txt for all text files. ![]() Now, let’s create a tarball named ourfiles.tar. Type in ls -la to confirm they are in your directory: We’ll create four empty files: touch file1.txt file2.txt file3.txt file4.txt If they’re bundled and compressed, they’re named .Īnother extension you may see is filename.tgz, which is just shorthand for. When the files are uncompressed, they’re usually named something like filename.tar. You take a set of files and bundle them together, and compress them into a. What are tarballs? They’re a group of files bundled together in a single file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |