Saturday, May 11, 2024
15
rated 0 times [  15] [ 0]  / answers: 1 / hits: 27954  / 3 Years ago, fri, november 5, 2021, 8:01:38

I keep forgetting all the corresponding extract commands for every compression format.



So I was thinking about writing a script that merely maps file extensions to the appropriate extract command. But I guess something like this already exists, I just can't find it.



I would be happy with something like file-roller, but file-roller is a GUI tool.


More From » command-line

 Answers
1

A couple of suggestions:



unp



unp (available from software-center) is a small perl module that will decompress a wide variety of archives into the current folder. Use unp -s for the archive formats it supports



By default, it decompresses archives into the current folder.



file-roller



file-roller itself can be run from the command line. Use file-roller -h <archive name> to decompress the archive.


[#43789] Saturday, November 6, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
eatack

Total Points: 245
Total Questions: 120
Total Answers: 113

Location: Estonia
Member since Wed, Jun 8, 2022
2 Years ago
eatack questions
Sun, Mar 6, 22, 20:44, 2 Years ago
Tue, Feb 8, 22, 20:50, 2 Years ago
Sat, May 20, 23, 13:30, 1 Year ago
;