# Terminal permissions and safety

Inspect commands before approval, check path and environment assumptions, avoid untrusted shell interpolation, and use least privilege.

![Terminal permissions and safety in Foxora Desktop v5.0.3](/docs/images/v5.0.3/desktop/stage-terminal.webp)

## Where this lives

Open a project-backed task, then choose **Stage → Terminal**.

Terminals run commands in the active project working directory and stream stdout, stderr, process state, and exit status into an inspectable surface.

> **Safety:** Review commands that install software, change Git state, access secrets, use elevated privileges, or affect files outside the project.

## Steps

1. Open a project-backed task, then choose **Stage → Terminal**.
2. Inspect commands before approval.
3. Check path and environment assumptions, avoid untrusted shell interpolation.
4. Use least privilege.
5. **Confirm the result.** Check the exit code and resulting system or file state; successful-looking output alone is not enough.

## Choose the right path

- Run a foreground command for short tasks.
- Use a background process for servers and watchers.
- Open separate terminals for independent long-running processes.


## Confirm it worked

- Check the exit code and resulting system or file state; successful-looking output alone is not enough.
- The screen, command, file, run, or destination named in this guide reflects the expected state.
