what is difference between /usr/bin/7za /usr/bin/7z
I have two binaries from the package p7zip in Ubuntu. What is the difference? Which one should be used?
Code:
ubuntu@ubuntu:/var/cache/apt/archives$ sudo updatedb;slocate 7z | grep bin Code:
ubuntu@ubuntu:/var/cache/apt/archives$ ls -l /usr/bin/ | grep 7z Code:
ubuntu@ubuntu:/var/cache/apt/archives$ 7z Code:
ubuntu@ubuntu:/var/cache/apt/archives$ 7za Code:
P7ZIP(1) P7ZIP(1) Code:
P7ZIP(1) P7ZIP(1) |
Type "file /usr/bin/7z" and "file/usr/bin/7za".
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. Haven't used 7z or 7za myself. |
Hi,
Also answered this in your other thread: 7za is a stand-alone executable. 7za handles less archive formats than 7z, but does not need any others. |
ubuntu@ubuntu:~$ file /usr/bin/7z
/usr/bin/7z: Bourne shell script text executable ubuntu@ubuntu:~$ file /usr/bin/7za /usr/bin/7za: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.0, dynamically linked (uses shared libs), for GNU/Linux 2.2.0, stripped ubuntu@ubuntu:~$ cat /usr/bin/7z #! /bin/sh exec /usr/lib/p7zip/7z "$@" ubuntu@ubuntu:~$ ls -l /usr/lib/p7zip/ 7z Codecs/ Formats/ ubuntu@ubuntu:~$ ls -l /usr/lib/p7zip/7z -rwxr-xr-x 1 root root 350980 2005-11-28 15:28 /usr/lib/p7zip/7z ubuntu@ubuntu:~$ |
ubuntu@ubuntu:~$ file /usr/lib/p7zip/7z
/usr/lib/p7zip/7z: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.0, dynamically linked (uses shared libs), for GNU/Linux 2.2.0, stripped ubuntu@ubuntu:~$ what is the difference between /usr/lib/p7zip/7z and /usr/bin/7za? |
ubuntu@ubuntu:~$ file /usr/lib/p7zip/7z
/usr/lib/p7zip/7z: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.0, dynamically linked (uses shared libs), for GNU/Linux 2.2.0, stripped ubuntu@ubuntu:~$ what is the difference between /usr/lib/p7zip/7z and /usr/bin/7za? |
Hi,
Like I said before: 7za is a standalone version, 7z is not (needs other progs to be able to run/use certain options). |
Which one should I use? 7za?
|
Hi,
7za would be best, but it supports less archives then 7z. You could end up having to do it a second time with 7z. If you don't mind the (minimal) extra time to execute: Use 7z for all cases. Hope this helps. |
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 |
All times are GMT -5. The time now is 06:03 PM. |