> 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/devtool/env-setup/macosenvvariablesetup.md).

# MacOSEnvVariableSetup

{% stepper %}
{% step %}

### 환경 변수 확인

명령어:

{% code title="터미널" %}

```bash
printenv
```

{% endcode %}

출력:

{% code title="printenv 출력" %}

```
__CFBundleIdentifier=com.apple.Terminal

TMPDIR=/var/folders/h3/2rlty04j6qb4ctqgd1mfhks00000gn/T/

XPC_FLAGS=0x0

TERM=xterm-256color

SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.e3uPH3pqDZ/Listeners

XPC_SERVICE_NAME=0

TERM_PROGRAM=Apple_Terminal

TERM_PROGRAM_VERSION=453

TERM_SESSION_ID=9212E694-878A-433B-9959-10122DF85E0E

SHELL=/bin/zsh

HOME=/Users/admin

LOGNAME=admin

USER=admin

PATH=/opt/anaconda3/bin:/opt/homebrew/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/opt/homebrew/bin:/opt/homebrew/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:/Users/admin/.dotnet/tools:/Library/Apple/usr/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin

SHLVL=1

PWD=/Users/admin

OLDPWD=/Users/admin

HOMEBREW_PREFIX=/opt/homebrew

HOMEBREW_CELLAR=/opt/homebrew/Cellar

HOMEBREW_REPOSITORY=/opt/homebrew

MANPATH=/opt/homebrew/share/man::

INFOPATH=/opt/homebrew/share/info:

LANG=ko_KR.UTF-8

_=/usr/bin/printenv
```

{% endcode %}
{% endstep %}

{% step %}

### 특정 환경 변수값 확인

명령어 형식:

{% code title="터미널" %}

```bash
echo $환경변수명
```

{% endcode %}

예시 — PATH 확인:

{% code title="터미널" %}

```bash
echo $PATH
```

{% endcode %}

출력:

{% code title="echo $PATH 출력" %}

```
/opt/anaconda3/bin:/opt/homebrew/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/opt/homebrew/bin:/opt/homebrew/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:/Users/admin/.dotnet/tools:/Library/Apple/usr/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin
```

{% endcode %}
{% endstep %}

{% step %}

### 새 환경 변수 설정

(원문에 설정 방법 내용이 없습니다.)
{% endstep %}
{% endstepper %}


---

# 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/devtool/env-setup/macosenvvariablesetup.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.
