# Upgrading Shells

#### Upgrading Non-Interactive Shells

**Starting an Interactive Bash Shell:**

* `/bin/bash -i`

**Starting an Interactive Shell:**

* `/bin/sh -i`

**Using Python to Spawn an Interactive Bash Shell:**

* `python -c 'import pty; pty.spawn("/bin/bash")'`

***

***

***

**`Hacker's Mantra:`**`Hackers are the warriors of the digital battlefield.`


---

# 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://blog.rootkid.in/exam-prep-notes/junior-penetration-tester-ejptv2-notes/host-and-network-penetration-testing/post-exploitation/upgrading-shells.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.
