자주 쓰는 Powershell 명령어 모음


📚 windows

환경 변수에 Path 추가하기


# 현재 세션에 Path 추가
$env:Path += ";C:\Program Files\nodejs"

# 영구적 반영
[System.Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:\Program Files\nodejs", [System.EnvironmentVariableTarget]::Machine)