> For the complete documentation index, see [llms.txt](https://www.projectpanoptes.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.projectpanoptes.org/build/software/appendix/command-line-and-the-shell.md).

# Command Line & The Shell

Describes the basic steps of how to use the command line.

## Overview

POCS is designed to be run without a monitor connected to it, which may be unfamiliar to most people. The way we control and give commands to POCS is via the “command line,” which are commands that are typed into what is known as a “shell.”

You can think of the shell like the search bar on your internet browser.  When you type in something you want to find, it’s like typing “search for pictures of the Orion Nebula.” In this case the “search for” would be the command you are running and “pictures of the Orion Nebula” are the *parameters* you give to the command.

Our command line is the same, it’s just that there are a lot more choices and instead of using the search bar, we enter commands in the shell “prompt.” &#x20;

<figure><img src="https://522439161-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDWxHUx4DyP5m2IEPanYp%2Fuploads%2F7QmKmijggsGTKl05Oc0V%2Fprompt.png?alt=media&amp;token=efdbf387-a764-4859-97e8-2cc1f5851e2e" alt=""><figcaption><p>An example of a command line prompt in the shell. Here we have turned off the fans in one command and after returning the result, we are given another prompt to type more commands. The green square is where typed characters wil appear.</p></figcaption></figure>

We try to minimize the number of commands you need to know by giving a single command, `pocs`, that has a lot of different sub-commands and options.

For instance, after [Installing POCS](https://www.projectpanoptes.org/build/software/installation/installing-pocs.md), you can turn off the power to the fans, by typing `pocs power off fans`, where “pocs power off” is the command and sub-commands and “fans” is the parameter.

## Getting a shell

If you used [SSH Access](https://www.projectpanoptes.org/build/software/appendix/ssh-access.md)to connect to the computer, then you will already be using a shell. If you have a desktop environment connected you can search the Applications menu for a “Terminal” or “Console”, both of which are graphical programs that provide shell access.

## Sudo

Some commands require the “root” or “super user” to perform because they can alter the state of the computer. To enter these commands you type `sudo command` and then will be asked for your password before the command is run.  An example of this would be rebooting the computer, which can be done with `sudo reboot`.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://www.projectpanoptes.org/build/software/appendix/command-line-and-the-shell.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
