what is difference between /usr/bin/7za /usr/bin/7z
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
ubuntu@ubuntu:/var/cache/apt/archives$ 7z
7-Zip 4.30 beta Copyright (c) 1999-2005 Igor Pavlov 2005-11-18
p7zip Version 4.30 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on)
Usage: 7z <command> [<switches>...] <archive_name> [<file_names>...]
[<@listfiles...>]
<Commands>
a: Add files to archive
d: Delete files from archive
e: Extract files from archive (without using directory names)
l: List contents of archive
t: Test integrity of archive
u: Update files to archive
x: eXtract files with full paths
<Switches>
-ai[r[-|0]]{@listfile|!wildcard}: Include archives
-ax[r[-|0]]{@listfile|!wildcard}: eXclude archives
-bd: Disable percentage indicator
-i[r[-|0]]{@listfile|!wildcard}: Include filenames
-l: don't store symlinks; store the files/directories they point to
CAUTION : the scanning stage can never end because of symlinks like '..'
(ex: ln -s .. ldir)
-m{Parameters}: set compression Method (see the manual)
-o{Directory}: set Output directory
-p{Password}: set Password
-r[-|0]: Recurse subdirectories
(CAUTION: this flag does not do what you think, avoid using it)
-sfx[{name}]: Create SFX archive
-si[{name}]: read data from stdin
-so: write data to stdout (eg: % 7z a dummy -tgzip Doc.txt > archive.gz)
-t{Type}: Set type of archive
-v{Size}[b|k|m|g]: Create volumes
-u[-][p#][q#][r#][x#][y#][z#][!newArchiveName]: Update options
-w[path]: assign Work directory. Empty path means a temporary directory
-x[r[-|0]]]{@listfile|!wildcard}: eXclude filenames
-y: assume Yes on all queries
and
Code:
ubuntu@ubuntu:/var/cache/apt/archives$ 7za
7-Zip (A) 4.30 beta Copyright (c) 1999-2005 Igor Pavlov 2005-11-18
p7zip Version 4.30 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on)
Usage: 7za <command> [<switches>...] <archive_name> [<file_names>...]
[<@listfiles...>]
<Commands>
a: Add files to archive
d: Delete files from archive
e: Extract files from archive (without using directory names)
l: List contents of archive
t: Test integrity of archive
u: Update files to archive
x: eXtract files with full paths
<Switches>
-ai[r[-|0]]{@listfile|!wildcard}: Include archives
-ax[r[-|0]]{@listfile|!wildcard}: eXclude archives
-bd: Disable percentage indicator
-i[r[-|0]]{@listfile|!wildcard}: Include filenames
-l: don't store symlinks; store the files/directories they point to
CAUTION : the scanning stage can never end because of symlinks like '..'
(ex: ln -s .. ldir)
-m{Parameters}: set compression Method (see the manual)
-o{Directory}: set Output directory
-p{Password}: set Password
-r[-|0]: Recurse subdirectories
(CAUTION: this flag does not do what you think, avoid using it)
-sfx[{name}]: Create SFX archive
-si[{name}]: read data from stdin
-so: write data to stdout (eg: % 7z a dummy -tgzip Doc.txt > archive.gz)
-t{Type}: Set type of archive
-v{Size}[b|k|m|g]: Create volumes
-u[-][p#][q#][r#][x#][y#][z#][!newArchiveName]: Update options
-w[path]: assign Work directory. Empty path means a temporary directory
-x[r[-|0]]]{@listfile|!wildcard}: eXclude filenames
-y: assume Yes on all queries
ubuntu@ubuntu:/var/cache/apt/archives$
Also compare these two.
Code:
P7ZIP(1) P7ZIP(1)
NAME
7-Zip - A file archiver with highest compression ratio
SYNOPSIS
7z [adeltux] [-] [SWITCH] <ARCHIVE_NAME> <ARGUMENTS>...
DESCRIPTION
7-Zip is a file archiver with the highest compression ratio. The pro‐
gram supports 7z (that implements LZMA compression algorithm), ZIP,
CAB, ARJ, GZIP, BZIP2, TAR, CPIO, RPM and DEB formats. Compression
ratio in the new 7z format is 30-50% better than ratio in ZIP format.
7z uses plugins to handle archives.
FUNCTION LETTERS
a Add
d Delete
e Extract
l List
t Test
u Update
x eXtract with full paths
SWITCHES
Code:
P7ZIP(1) P7ZIP(1)
NAME
7-Zip - A file archiver with highest compression ratio
SYNOPSIS
7za [adeltux] [-] [SWITCH] <ARCHIVE_NAME> <ARGUMENTS>...
DESCRIPTION
7-Zip is a file archiver with the highest compression ratio. The pro‐
gram supports 7z (that implements LZMA compression algorithm), ZIP,
CAB, ARJ, GZIP, BZIP2, TAR, CPIO, RPM and DEB formats. Compression
ratio in the new 7z format is 30-50% better than ratio in ZIP format.
7za is a stand-alone executable. 7za handles less archive formats than
7z, but does not need any others.
FUNCTION LETTERS
a Add
d Delete
e Extract
l List
t Test
u Update
x eXtract with full paths
SWITCHES
that is just part of the man pages. the man pages are too long to list them both here.
If you see "ascii" or "text" or "script" you can cat the file to see what is in it. If you see ELF it is a binary. (You can use strings to see text embedded but it usually isn't much help.)
Given that 7z is only 39 bytes my guess is that it is just a script that calls 7za. Sometimes files do different things based simply on the name and it may be that you see the "(A)" stuff in the usage only because you called it with name 7za directly. If so copying 7za to 7zb and running the latter might make it replace the "(A)" stuff in usage with "(B)" stuff or might make it just not work because its an unexpected name.
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495
Original Poster
Rep:
I only got p7zip to use with the archives that have the highest compression ratio using the best algorithm. Do they both work for the archives that look like this?
archive.7z
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.