In the Linux world, there are a lot of files stored in. When we open this file up, all of these files will be moved onto our computer. In our example above, we can see that all the files in our tarball are in a directory called “linux”. The “-tvf” flags tell our command to print out a list of all the files in our tarball. We haven’t opened it up we’ve only peeked inside. In this case, our list of files reflects the contents of our tar file. The ls command lists the files in a directory. This command returns an output that is similar to what you would see if you run the Linux ls command. rw-r-r- 0 James staff 2 Jun 12 10:26 linux/config/app.sh rwxr-r- 0 James staff 0 Jun 12 08:06 linux/README.md rw-r-r- 0 James staff 2 Jun 12 09:57 linux/app.txt rw-r-r- 0 James staff 89 Jun 12 09:04 linux/names.txt If you have a tar archive file that you want to open, all you need to do is use this command:ĭrwxr-r- 0 James staff 0 Jun 12 11:03 linux/ Using the tar command in Linux, you can open, view, and create a tar file. zip file in that it can hold multiple files, but it is its own file type. The resultant archive files are commonly known as tarballs, gzip, bzip, or tar files.Ī tar file is a special format that groups files into one. The tar command lets you create compressed archives which contain a particular file or set of files. We’ll discuss how you can create a compressed file and how you can open one using the tar command in Linux. In this guide, we’re going to help you overcome that frustration. tar file can be frustrating, especially because the command you can use to open it has a lot of options. You may be having trouble because “.tar” files aren’t zipped they are their own file type.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |