> ## Documentation Index
> Fetch the complete documentation index at: https://e2b.manicule.dev/llms.txt
> Use this file to discover all available pages before exploring further.
> For every page in one file, fetch https://e2b.manicule.dev/llms-full.txt (large).
> To search and read these docs as tools, connect the MCP server at https://e2b.manicule.dev/api/mcp.
> Every agent surface: https://e2b.manicule.dev/.well-known/llms-manifest.json

# Run bash code (/docs/code-interpreting/supported-languages/bash)

<!-- agent-signals: reading_time_min: 1 · est_tokens: 146 · updated: 2026-07-30 -->
Related: [Run Java code](/docs/code-interpreting/supported-languages/java.md), [Run JavaScript and TypeScript code](/docs/code-interpreting/supported-languages/javascript.md), [Run Python code](/docs/code-interpreting/supported-languages/python.md), [Run R code](/docs/code-interpreting/supported-languages/r.md), [Static charts](/docs/code-interpreting/create-charts-visualizations/static-charts.md)

Use the `runCode`/`run_code` method to run bash code inside the sandbox.
You'll need to pass the `language` parameter with value `bash`.

<CodeGroup>
```js title="JavaScript & TypeScript"
import { Sandbox } from '@e2b/code-interpreter'

const sbx = await Sandbox.create()
const execution = await sbx.runCode('echo "Hello, world!"', { language: 'bash' })
console.log(execution)
```

```python title="Python"
from e2b_code_interpreter import Sandbox

sbx = Sandbox.create()
execution = sbx.run_code("echo 'Hello, world!'", language="bash")
print(execution)
```
</CodeGroup>
