sha256sum
फ़ाइल और डायरेक्टरी
इस्तेमाल
sha256sum [file]फ़ाइल का SHA-256 निशान छापता है ताकि पता चले कि download पूरा आया या नहीं; मिलान यह साबित करता है कि bytes वही हैं, यह नहीं कि स्रोत भरोसेमंद है।
आम विकल्प
| विकल्प | अर्थ |
|---|---|
| -c | Read a list of hashes and check each file against it |
| -b | Binary mode, which matters on Windows-style line endings |
| --tag | GNU: print in the BSD format, SHA256 (file) = hash |
| --ignore-missing | GNU: with -c, skip files that are not there |
| shasum -a 256 | The same digest where sha256sum is missing, as on older macOS |
उदाहरण
sha256sum ubuntu.isoPrints the hash to compare with the download page.
sha256sum -c SHA256SUMSVerifies every file named in the checksum list.
shasum -a 256 ubuntu.isoThe portable macOS spelling.
हटाना, मिटाना और ढूँढना। कुछ कमांड दोबारा नहीं पूछते, इसीलिए -i लगाने की आदत हाथ बचाती है।
कैसे पढ़ें
- बड़े कोष्ठक [ ] उस हिस्से को दिखाते हैं जिसे छोड़ा जा सकता है।
- तीन बिंदु … का मतलब है एक से ज़्यादा दिए जा सकते हैं।
- विकल्पों में बड़े-छोटे अक्षर मायने रखते हैं — कुछ कमांड में -r और -R अलग काम करते हैं।
आम सवाल
Q. sha256sum क्या करता है?
फ़ाइल का SHA-256 निशान छापता है ताकि पता चले कि download पूरा आया या नहीं; मिलान यह साबित करता है कि bytes वही हैं, यह नहीं कि स्रोत भरोसेमंद है।
Q. इसे कैसे लिखें?
sha256sum [file] — बड़े कोष्ठक वह हिस्सा दिखाते हैं जो छोड़ा जा सकता है।
Q. कितने विकल्प जानने लायक़ हैं?
यहाँ 5 दिए हैं; पूरी सूची man sha256sum में है। यह कमांड फ़ाइल और डायरेक्टरी में आती है।
मिलती-जुलती कमांड
man पेज: man sha256sum