7z

आर्काइव

इस्तेमाल

7z <a|x|l> <archive.7z> [files]

पहले एक क्रिया लिखकर चलता है — जोड़ने के लिए `a`, पथ सहित निकालने के लिए `x`, सपाट निकालने के लिए `e`, सूची के लिए `l` — और .7z के अलावा zip, tar तथा rar भी पढ़ लेता है, कसाव भी अधिकतर से ज़्यादा है; निर्गम डायरेक्टरी `-o` के तुरंत बाद बिना जगह छोड़े लिखी जाती है, और नाम भी छिपाने के लिए `-p` के साथ `-mhe=on` जोड़ना पड़ता है।

आम विकल्प

विकल्पअर्थ
aAdd or create.
xExtract keeping the stored directory structure.
eExtract everything into one directory, flattening paths.
lList the contents.
-o<dir>Output directory, written with no space after -o.
-p<password>Password. Add -mhe=on to encrypt the file names too.
-mx=9Maximum compression.
-t7z / -tzipChoose the output format.

उदाहरण

7z a -mx=9 backup.7z ./data

A tightly compressed archive.

7z x archive.7z -o/tmp/out

Extract with the folder structure intact.

7z a -p -mhe=on secret.7z ./docs

Encrypt the contents and the file names, with a prompted password.

बाँधना और दबाना अलग काम हैं: tar बाँधता है, gzip छोटा करता है, और .tar.gz दोनों है।

कैसे पढ़ें

  • बड़े कोष्ठक [ ] उस हिस्से को दिखाते हैं जिसे छोड़ा जा सकता है।
  • तीन बिंदु … का मतलब है एक से ज़्यादा दिए जा सकते हैं।
  • विकल्पों में बड़े-छोटे अक्षर मायने रखते हैं — कुछ कमांड में -r और -R अलग काम करते हैं।

आम सवाल

Q. 7z क्या करता है?

पहले एक क्रिया लिखकर चलता है — जोड़ने के लिए `a`, पथ सहित निकालने के लिए `x`, सपाट निकालने के लिए `e`, सूची के लिए `l` — और .7z के अलावा zip, tar तथा rar भी पढ़ लेता है, कसाव भी अधिकतर से ज़्यादा है; निर्गम डायरेक्टरी `-o` के तुरंत बाद बिना जगह छोड़े लिखी जाती है, और नाम भी छिपाने के लिए `-p` के साथ `-mhe=on` जोड़ना पड़ता है।

Q. इसे कैसे लिखें?

7z <a|x|l> <archive.7z> [files] — बड़े कोष्ठक वह हिस्सा दिखाते हैं जो छोड़ा जा सकता है।

Q. कितने विकल्प जानने लायक़ हैं?

यहाँ 8 दिए हैं; पूरी सूची man 7z में है। यह कमांड आर्काइव में आती है।

मिलती-जुलती कमांड

man पेज: man 7z