sha256sum

फ़ाइल और डायरेक्टरी

इस्तेमाल

sha256sum [file]

फ़ाइल का SHA-256 निशान छापता है ताकि पता चले कि download पूरा आया या नहीं; मिलान यह साबित करता है कि bytes वही हैं, यह नहीं कि स्रोत भरोसेमंद है।

आम विकल्प

विकल्पअर्थ
-cRead a list of hashes and check each file against it
-bBinary mode, which matters on Windows-style line endings
--tagGNU: print in the BSD format, SHA256 (file) = hash
--ignore-missingGNU: with -c, skip files that are not there
shasum -a 256The same digest where sha256sum is missing, as on older macOS

उदाहरण

sha256sum ubuntu.iso

Prints the hash to compare with the download page.

sha256sum -c SHA256SUMS

Verifies every file named in the checksum list.

shasum -a 256 ubuntu.iso

The portable macOS spelling.

हटाना, मिटाना और ढूँढना। कुछ कमांड दोबारा नहीं पूछते, इसीलिए -i लगाने की आदत हाथ बचाती है।

कैसे पढ़ें

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

आम सवाल

Q. sha256sum क्या करता है?

फ़ाइल का SHA-256 निशान छापता है ताकि पता चले कि download पूरा आया या नहीं; मिलान यह साबित करता है कि bytes वही हैं, यह नहीं कि स्रोत भरोसेमंद है।

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

sha256sum [file] — बड़े कोष्ठक वह हिस्सा दिखाते हैं जो छोड़ा जा सकता है।

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

यहाँ 5 दिए हैं; पूरी सूची man sha256sum में है। यह कमांड फ़ाइल और डायरेक्टरी में आती है।

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

man पेज: man sha256sum