![]() rw-rw-r- linuxgeek/linuxgeek 106 16:55 2g-docs/fosstechi.txt rw-rw-r- linuxgeek/linuxgeek 332 18:37 2g-docs/lun_disk_fs_map.txt rw-rw-r- linuxgeek/linuxgeek 491 21:58 2g-docs/vcs_hastatus.txt rw-rw-r- linuxgeek/linuxgeek 268 16:57 2g-docs/2Gtest.zip rw-rw-r- linuxgeek/linuxgeek 160 19:57 2g-docs/2Gtest.xz rw-rw-r- linuxgeek/linuxgeek 1777 18:28 2g-docs/kernel-info.txt rw-rw-r- linuxgeek/linuxgeek 1104 20:37 2g-docs/veritas_installation.txt rw-rw-r- linuxgeek/linuxgeek 511 18:50 2g-docs/asm_disk_mapping.txt tar -tvf 2Gtest.tarĭrwxrwxr-x linuxgeek/linuxgeek 0 20:13 2g-docs/ You can check the contents of the tar archive by using the tar command with option 't'. 16:55:20 208 124 2 files 2.3) Checking list of files from tar file You can view the list of files from a 7z file using the 7z command with the help of the 'l' option. unzip -l 2Gtest_1.zipĢ08 2 files 2.2) Checking list of files from 7z file To overcome the above issue use unzip command with '-c' option as shown below. Gzip: 2Gtest_1.zip has more than one entry-rest ignored Make a note: If the 'zip' file contains more than one file, these commands will not display the entire contents, but with ‘gz’ file there will be no problem. This is a test archive file and named linuxgeek.txt You can use any of the below commands to view the contents of a zip file. 1.1) Viewing contents of ZIP & GZIP file in Linux There are several commands in Linux that allows you to view the contents of the compressed file without extracting them using zcat, zless, and zmore commands. 1) Viewing contents of an archived/compressed files without extracting in Linux Also, we will show you, how to view the list of files/directories in it. In this tutorial, we’ll show you how to view the contents of compressed and/or archived files & folders without extracting it in Linux. ![]() Moreover these commands must be used based on the compressed file extension. Yes, this can be done using the zcat, zless, zmore, tar and bzcat commands. For some reason, if you want to see which content/file was archived without extracting. But we only use some of them and here are the best Compression and Archive tools for Linux.Ĭompressed files can be kept as long as needed, but we might forget the archived contents after sometimes. Linux has several applications that compress and decompress files. Mostly, we use it to backup files or folders. We generally use archives and/or compression tools in Linux to save disk space.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |