• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

ark Command Examples in Linux

by admin

In the KDE desktop environment, Ark is a graphical user interface (GUI) tool for creating, viewing, and extracting archive files. It is similar to other archive utilities such as 7-Zip, WinZip, and WinRAR.

To use Ark, you can either launch it from the KDE application launcher or run the “ark” command in a terminal. For example, to open Ark from the terminal, you can use the following command:

# ark

Once Ark is open, you can use it to create, view, and extract archive files. For example, to create a new archive, you can select the “File” menu and then choose the “New” option. This will open a dialog where you can select the files you want to include in the archive and specify the name and location of the new archive file.

To extract the contents of an existing archive, you can open the archive file in Ark and then select the “Extract” button. This will open a dialog where you can specify the destination folder for the extracted files.

ark Command Examples

1. Extract a specific archive into the current directory:

# ark --batch {{path/to/archive}}

2. Extract an archive into a specific directory:

# ark --batch --destination {{path/to/directory}} {{path/to/archive}}

3. Create an archive if it does not exist and add specific files to it:

# ark --add-to {{path/to/archive}} {{path/to/file1 path/to/file2 ...}}

Filed Under: Linux

Some more articles you might also be interested in …

  1. bluetoothctl Command Examples in Linux
  2. How to Restart Network Services in CentOS/RHEL 8
  3. aws-vault Command Examples (A vault for securely storing and accessing AWS credentials in development environments)
  4. How to use ldconfig Command in Linux
  5. How to recover from deleted root entry in /etc/shadow and/or /etc/passwd files in CentOS / RHEL 6
  6. CentOS / RHEL 7 : How to Change the machine-id
  7. How to interpret Linux martian source messages
  8. “yum update” fails with “[package version 1] is a duplicate with [package version 2]”
  9. How to Disable NetworkManager in CentOS/RHEL 8
  10. How to Automate Startup/Shutdown of Oracle Database and Listener on Linux

You May Also Like

Primary Sidebar

Recent Posts

  • csslint: A linter for CSS code
  • csh: The shell (command interpreter) with C-like syntax (Command Examples)
  • csc: The Microsoft C# Compiler (Command Examples)
  • crystal: Tool for managing Crystal source code

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright