Archives

The legendary extract command โ€” never look up tar flags again.


Functions & Aliases

extract

  • Description: Automatically detect and extract any compressed archive format
  • Usage: extract <file>
  • Example: extract archive.tar.gz

Supported formats:

ExtensionTool Used
.tar.gz / .tgztar xzf
.tar.bz2 / .tbz2tar xjf
.tartar xf
.gzgunzip
.bz2bunzip2
.zipunzip
.rarunrar e
.7z7z x
.Zuncompress
extract project.tar.gz
# Extracting... Done.

extract backup.zip
# Extracting... Done.

๐Ÿ’ก Note: You no longer need to remember whether it's tar xzf, tar xjf, or unzip โ€” extract figures it out automatically!

mktar

  • Description: Create a .tar.gz archive from a file or directory
  • Usage: mktar <archive.tar.gz> <target>
  • Example: mktar project.tar.gz ./project
mktar release.tar.gz ./dist
# Created release.tar.gz

mkzip

  • Description: Create a .zip archive from a file or directory
  • Usage: mkzip <archive.zip> <target>
  • Example: mkzip docs.zip ./docs

-- Part of the Archives module of Aliaskit --

โญ Star Aliaskit on GitHub ยท ๐Ÿ“– Back to Manual