LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Utility to detect and give info of compression method of a file (https://www.linuxquestions.org/questions/linux-software-2/utility-to-detect-and-give-info-of-compression-method-of-a-file-4175702695/)

BudiKusasi 10-27-2021 08:46 AM

Utility to detect and give info of compression method of a file
 
What is utility tool to detect and give info of compression method (preferably more info) in any mean (CL or GUI) ?

IOW what windows 7z tool equivalent for Linux ?

wpeckham 10-27-2021 09:02 AM

Quote:

Originally Posted by BudiKusasi (Post 6296160)
What is utility tool to detect and give info of compression method (preferably more info) in any mean (CL or GUI) ?

IOW what windows 7z tool equivalent for Linux ?

#1 you might want to look into the "file" command, that will use the magic number signature or character in the first bytes of the file to identify the file type. If it is compressed, it reports the compression.

#2 7-zip should be in your repositories. Search for 7zip or p7zip, these implement the 7z compression and decompression.


All times are GMT -5. The time now is 01:27 PM.