LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

ark

Create, view, and extract archives graphically.

TLDR

Extract a specific archive into the current directory
$ ark -b [path/to/archive]
copy
Extract an archive into a specific directory
$ ark -b -o [path/to/directory] [path/to/archive]
copy
Create an archive and add specific files to it
$ ark -t [path/to/archive] [path/to/file1] [path/to/file2]
copy

SYNOPSIS

ark [options] [archive] [files]

DESCRIPTION

ark is KDE's graphical archiving tool that supports creating, viewing, extracting, and modifying archives. It handles numerous formats including tar, gzip, bzip2, zip, rar, 7z, and many others through plugins.When run with command-line options, ark can operate in batch mode without displaying its GUI, making it useful for scripting and automation.

PARAMETERS

-b, --batch

Use batch mode (no GUI) to extract archives
-o, --destination directory
Extract to the specified directory
-t, --add-to archive
Add files to an archive, creating it if necessary
-c, --add
Add files to an existing archive
-e, --extract
Open the extraction dialog
-d, --dialog
Show a dialog to choose extraction options instead of extracting silently
-f, --changetofirstpath
Use the first archive entry's path as the destination (with -b)

INSTALL

sudo apt install ark
copy
sudo dnf install ark
copy
sudo pacman -S ark
copy
sudo apk add ark
copy
sudo zypper install ark
copy
brew install ark
copy
nix profile install nixpkgs#ark
copy

CAVEATS

Some archive formats require additional plugins or external programs. RAR creation requires rar (proprietary), while extraction works with the free unrar. Format support depends on installed KDE archive plugins.

SEE ALSO

tar(1), unzip(1), 7z(1)

RESOURCES

Copied to clipboard
Kai