Extract an archive to the specified directory

unar

unar -o {{path/to/directory}} {{archive}}

click the source code to copy install unar on any operating system with command-not-found.com