# Clearing Tracks

## Linux

Clearing tracks on Linux.

Whenever you successfully gain access to a Linux target, all of your activity is being logged in the form of bash history. We can clear the bash history by running the following command:

```
history -c
```

<figure><img src="https://assets.ine.com/lab/learningpath/7e5366d567b3a6f6d5ed6b4be07d1fa5b3ae604c287b616c4d8ed8270e8d08ee.jpg" alt=""><figcaption></figcaption></figure>

We can also clear the bash history by deleting the content of the .bash\_history file. This can be done by running the following command:

```
cat /dev/null > ~/.bash_history
```

<figure><img src="https://assets.ine.com/lab/learningpath/0cc5f6a5c9e7844c0941e43ad1f3c360794c2b25f5401317a56dd26a48801dac.jpg" alt=""><figcaption></figcaption></figure>


---

# 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://notes.cavementech.com/pentesting-quick-reference/clearing-tracks.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.
