$
학습 Linux 안내서
ko
XP:0
퀘스트 120Environment Purifier
+200 XP

Cleaning the Environment (unset & unalias)

이 퀘스트를 위한 인터랙티브 터미널 시작→설치 불필요 • 브라우저에서 바로 실행

개념 및 개요

During debugging or deployment, you may temporarily export sensitive API keys, database credentials, or create test shortcuts. Leaving these variables active in your environment can cause security leaks or unintended script behavior. Linux provides unset to delete variables and unalias to delete custom command shortcuts.

- unset SECRET_KEY: Permanently deletes the SECRET_KEY variable from the current environment.
- unalias la: Removes the shortcut la so typing la no longer executes ls -a.

Let's clean up your environment. Remove the sensitive variable SECRET_KEY by running unset SECRET_KEY, and remove the shortcut la using unalias la.

명령어 구문 참조

Command / SyntaxDescription
unset SECRET_KEYRemove variable from active environment
unalias laRemove defined command alias

검증 목표

  • ○
    Remove SECRET_KEY with unset
  • ○
    Remove "la" shortcut with unalias

퀘스트를 완료할 준비가 되셨나요? 120?