Ubuntu – Command line archive manager / extracter

archivecommand linecompressionfile-rollerscripts

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.

Best Answer

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.