> For the complete documentation index, see [llms.txt](https://devops-3.gitbook.io/devops/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://devops-3.gitbook.io/devops/docs/linux-cheat-sheet/network.md).

# Network

| Command                                                    | Description                                       | Example                                                                        |
| ---------------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------------------------------------ |
| <mark style="color:red;">**ping \[host]**</mark>           | Test network connectivity to a host.              | ping google.com → Tests connection to google.com.                              |
| <mark style="color:red;">**ifconfig / ip addr**</mark>     | Show network interface information.               | ip addr → Displays IP addresses and network interfaces.                        |
| <mark style="color:red;">**curl \[URL]**</mark>            | Transfer data from or to a server.                | curl <https://example.com> → Fetches the webpage content.                      |
| <mark style="color:red;">**wget \[URL]**</mark>            | Download files from the web.                      | wget <https://example.com/file.zip> → Downloads file.zip.                      |
| <mark style="color:red;">**ssh \[user]@\[host]**</mark>    | Connect to a remote host via SSH.                 | ssh user\@192.168.1.1 → Connects to a remote server.                           |
| <mark style="color:red;">**scp \[src] \[dest]**</mark>     | Securely copy files between hosts.                | scp file.txt user\@192.168.1.1:/home/user/ → Copies file.txt to a remote host. |
| <mark style="color:red;">**netstat -tuln**</mark>          | List open ports and active network connections.   | netstat -tuln → Displays listening ports and services.                         |
| <mark style="color:red;">**nslookup \[host]**</mark>       | Query DNS information for a domain or IP address. | nslookup google.com → Retrieves the IP address of google.com.                  |
| <mark style="color:red;">**telnet \[host] \[port]**</mark> | Test connectivity to a specific port on a server. | telnet example.com 80 → Tests connectivity to port 80 on example.com.          |


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://devops-3.gitbook.io/devops/docs/linux-cheat-sheet/network.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
