# Bash Commands

Other helpful things to add to your environment if you want.

## OAuth Clone

Clones a container using our $DEVELOPER\_TOKEN instead of loggging in and out. A lot of our scripts use this same method.

```
function oauth_clone {
  git clone https://$DEVELOPER_TOKEN:x-oauth-basic@github.com/$1.git $2;
}
```

## WhatsOnPort

What's on port tells you what process is running on a particular port.

```
function whatsonport {
  lsof -n -i :$1 | grep LISTEN
}
```

## Keys are working to Github

```
ssh -T git@github.com
```

You should see a "You've successfully authenticated, but GitHub does not provide shell access."


---

# 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://omalab.gitbook.io/engineeringwiki/setup/bash-commands.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.
