Strings (Unix)
| strings | ||
|---|---|---|
|
El comando strings | ||
| Información general | ||
| Tipo de programa | Orden | |
| Licencia | Plan 9: MIT License | |
| Información técnica | ||
| Programado en | C | |
| Plataformas admitidas | Multiplataforma | |
strings es un programa de Unix, Plan 9, Inferno y sistemas operativos similares a Unix que encuentra e imprime cadenas de texto incrustadas en archivos binarios, como puede ser un ejecutable. Puede utilizarse en archivos objeto y volcados de memoria.
Visión general
Las cadenas se reconocen buscando secuencias de al menos 4 caracteres imprimibles (por defecto) que terminen en un carácter NUL (es decir, cadenas terminadas en cero). Algunas implementaciones proporcionan opciones para determinar qué se reconoce como carácter imprimible, lo que es útil para encontrar texto no ASCII y texto de caracteres anchos.
El uso común incluye canalizar su salida a grep y fold o redirigir la salida a un archivo.[1]
Es parte de las GNU Binary Utilities (binutils), y ha sido portado a otros sistemas operativos incluyendo Windows.[2]
Ejemplo
Este ejemplo usa strings para imprimir secuencias de caracteres que tengan al menos 8 caracteres de longitud (este comando imprime la información de la BIOS del sistema; debe ejecutarse como root).
dd if=/dev/mem bs=1k skip=768 count=256 2>/dev/null | strings -n 8 | less
Véase también
Portal:Software libre. Contenido relacionado con Software libre.- Cat (Unix)
- Paste (Unix)
- GNU Debugger
- Strip (Unix)
Referencias
- ↑ Kiddle, Oliver; Jerry Peek; Peter Stephenson (2005). From Bash to Z Shell. New York, NY: Apress. p. 413. ISBN 978-1-590-59376-9. OCLC 57450917.
- ↑ cygwin
Enlaces externos
Wikilibros en inglés alberga un libro o manual sobre Commands.- strings – Comandos y utilidades Referencia, Single Unix Specification, Issue 7 de The Open Group
- strings(1) – Comandos generales en el manual de Plan 9 from Bell Labs (en inglés)
- strings(1) – Comandos generales en el manual de Inferno (en inglés)
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.