diff --git a/pages/common/lsar.md b/pages/common/lsar.md new file mode 100644 index 0000000000..aeef76ce61 --- /dev/null +++ b/pages/common/lsar.md @@ -0,0 +1,29 @@ +# lsar + +> List an archive file's contents. +> See also: `unar`, `ar`. +> More information: . + +- List an archive file's contents: + +`lsar {{path/to/archive}}` + +- List a password protected archive file's contents: + +`lsar {{path/to/archive}} --password {{password}}` + +- Print al[L] 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 --test {{path/to/archive}}` + +- List the archive file's contents in JSON format: + +`lsar --json {{path/to/archive}}` + +- Display help: + +`lsar --help` diff --git a/pages/common/unar.md b/pages/common/unar.md index 9666da33d4..cd68d1e3d2 100644 --- a/pages/common/unar.md +++ b/pages/common/unar.md @@ -5,20 +5,20 @@ - Extract an archive to the current directory: -`unar {{archive}}` +`unar {{path/to/archive}}` - Extract an archive to the specified directory: -`unar -o {{path/to/directory}} {{archive}}` +`unar -o {{path/to/directory}} {{path/to/archive}}` - Force overwrite if files to be unpacked already exist: -`unar -f {{archive}}` +`unar -f {{path/to/archive}}` - Force rename if files to be unpacked already exist: -`unar -r {{archive}}` +`unar -r {{path/to/archive}}` - Force skip if files to be unpacked already exist: -`unar -s {{archive}}` +`unar -s {{path/to/archive}}`