← 返回命令列表

Linux command

ark 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Extract

ark -b [path/to/archive]

Example

ark -b -o [path/to/directory] [path/to/archive]

Create

ark -t [path/to/archive] [path/to/file1] [path/to/file2]

说明

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.

参数

-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

FAQ

What is the ark command used for?

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.

How do I run a basic ark example?

Run `ark -b [path/to/archive]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -b, --batch do in ark?

Use batch mode (no GUI) to extract archives