commands.sh

lsar

all

List an archive file's contents. See also: `unar`, `ar`.

More info →

Options (5)

-p, --passwordboolean

List a password protected archive file's contents

Example: lsar {{path/to/archive}} {{[-p|--password]}} {{password}}
-L, --verylongboolean

Print all available information about each file in the archive (it's very long)

Example: lsar {{[-L|--verylong]}} {{path/to/archive}}
-t, --testboolean

Test the integrity of the files in the archive (if possible)

Example: lsar {{[-t|--test]}} {{path/to/archive}}
-j, --jsonboolean

List the archive file's contents in JSON format

Example: lsar {{[-j|--json]}} {{path/to/archive}}
-h, --helpboolean

Display help

Example: lsar {{[-h|--help]}}

Examples (6)

List an archive file's contents

lsar path/to/archive

List a password protected archive file's contents

lsar path/to/archive [-p|--password] password

Print all available information about each file in the archive (it's very long)

lsar [-L|--verylong] path/to/archive

Test the integrity of the files in the archive (if possible)

lsar [-t|--test] path/to/archive

List the archive file's contents in JSON format

lsar [-j|--json] path/to/archive

Display help

lsar [-h|--help]
made by @shridhargupta | data from tldr-pages