> For the complete documentation index, see [llms.txt](https://krjaeh0.gitbook.io/j-log/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://krjaeh0.gitbook.io/j-log/network/tools-and-operations/networkcommands.md).

# NetworkCommands

| 명령어        | 설명                                                                                                                                             | 옵션                                               | 사용 방법                                                          | 예제                                                                   |
| ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------ | -------------------------------------------------------------- | -------------------------------------------------------------------- |
| ping       | 네트워크 연결을 확인                                                                                                                                    | <p>-c: 요청 횟수<br>-i: 초<br>-s: 패킷 사이즈</p>          | `ping '옵션' '대상'`                                               | `bash\nping -c 5 -s 32 8.8.8.8\n` 32 바이트 크기의 패킷을 5회 8.8.8.8 주소로 보낸다. |
| traceroute | <p>목적지 호스트까지 경로를 표시, 구간의 정보를 기록<br>목적지 호스트까지 패킷 전송 지역을 측정 또는 경로 상 장애가 있는 경우 위치 파악 가능<br>yum -y install traceroute로 설치<br>(-y: 모든 물음에 y 답변)</p> |                                                  | `traceroute '주소 또는 ip'`                                        | `bash\ntraceroute 8.8.8.8\n`                                         |
| nslookup   | <p>도메인 명으로 ip 조회 또는 ip로 도메인 조회<br>yum install bind-utils 로 설치</p>                                                                              | <p>-type=A: 호스트 ip주소<br>-type=NS: 도메인 네임서버정보</p> | `nslookup '도메인 또는 ip'`                                         | `bash\nnslookup 8.8.8.8\n`                                           |
| dig        | <p>nslookup과 유사<br>호스트 명으로 ip 조회 또는 그 반대</p>                                                                                                   |                                                  | `dig '도메인 또는 ip'`                                              | `bash\ndig 8.8.8.8\n`                                                |
| host       | 호스트 명을 알고 있는데 ip를 모르거나 그 반대에 사용                                                                                                                |                                                  | `host '도메인 또는 ip'`                                             | `bash\nhost 8.8.8.8\n`                                               |
| hostname   | 시스템 이름을 확인                                                                                                                                     |                                                  | <p><code>cat /ect/hostname</code><br><code>hostname</code></p> |                                                                      |


---

# 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://krjaeh0.gitbook.io/j-log/network/tools-and-operations/networkcommands.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.
