HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

xar — Manage `.xar` archives. More information: <https://manned.org/xar>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
xarcommandclimanageinformationmorearchives

Problem

How to use the xar command: Manage .xar archives. More information: <https://manned.org/xar>.

Solution

xar — Manage .xar archives. More information: <https://manned.org/xar>.

Create a xar archive of all files in a given directory:
xar -cf {{archive.xar}} {{path/to/directory}}


List the contents of a given xar archive:
xar -tf {{archive.xar}}


Extract the contents of a given xar archive to the current directory:
xar -xf {{archive.xar}}

Code Snippets

Create a xar archive of all files in a given directory

xar -cf {{archive.xar}} {{path/to/directory}}

List the contents of a given xar archive

xar -tf {{archive.xar}}

Extract the contents of a given xar archive to the current directory

xar -xf {{archive.xar}}

Context

tldr-pages: common/xar

Revisions (0)

No revisions yet.