strings
टेक्स्ट प्रोसेसिंग
इस्तेमाल
strings [file]किसी binary से पाठ जैसा दिखने वाला हिस्सा खींच लेता है; जो भी text जैसा लगे वह उठा लेता है, इसलिए ज़्यादातर निकला हुआ अर्थ नहीं, संयोग है।
आम विकल्प
| विकल्प | अर्थ |
|---|---|
| -n | Report only runs of at least N characters; the default is 4 |
| -t | Print the offset in the file, as d, o or x |
| -a | Scan the whole file, not only the loaded sections |
| -o | BSD and macOS: prefix each hit with its decimal offset |
| -e | GNU: set the encoding, such as l for 16-bit little-endian |
उदाहरण
strings app.bin | grep -i versionFinds a version string inside a binary.
strings -n 8 core.dumpOnly sequences of eight characters or more.
ये पाइप से जोड़कर चलाने के लिए बने हैं। एक ही कमांड से सब करवाने के बजाय तीन जोड़ना छोटा पड़ता है।
कैसे पढ़ें
- बड़े कोष्ठक [ ] उस हिस्से को दिखाते हैं जिसे छोड़ा जा सकता है।
- तीन बिंदु … का मतलब है एक से ज़्यादा दिए जा सकते हैं।
- विकल्पों में बड़े-छोटे अक्षर मायने रखते हैं — कुछ कमांड में -r और -R अलग काम करते हैं।
आम सवाल
Q. strings क्या करता है?
किसी binary से पाठ जैसा दिखने वाला हिस्सा खींच लेता है; जो भी text जैसा लगे वह उठा लेता है, इसलिए ज़्यादातर निकला हुआ अर्थ नहीं, संयोग है।
Q. इसे कैसे लिखें?
strings [file] — बड़े कोष्ठक वह हिस्सा दिखाते हैं जो छोड़ा जा सकता है।
Q. कितने विकल्प जानने लायक़ हैं?
यहाँ 5 दिए हैं; पूरी सूची man strings में है। यह कमांड टेक्स्ट प्रोसेसिंग में आती है।
मिलती-जुलती कमांड
man पेज: man strings