# Strings command

Help Menu:

<figure><img src="/files/BNE8cjVABP1Cey7F51oM" alt=""><figcaption></figcaption></figure>

The command:

```
strings -e {s,S,b,l,B,L} file
```

e flag controls the character encoding (size + endianness) — Each option defines the characters size and endianness of the bytes.

| **Flag Value** | **Character Size** | **Common Use Case**                                   |
| -------------- | ------------------ | ----------------------------------------------------- |
| `s`            | 7-bit (1 byte)     | Very old legacy systems (ASCII).                      |
| `S`            | 8-bit (1 byte)     | Standard text and most Linux files. (Default) (UTF-8) |
| `b` or `l`     | 16-bit (2 bytes)   | Windows files (UTF-16) and many Java/C# applications. |
| `B` or `L`     | 32-bit (4 bytes)   | Wide-character sets (UTF-32).                         |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://kaizoku.gitbook.io/notes/interesting-findings/strings-command.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
