일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Tags
- Python
- format
- CUDA
- Laravel
- git
- Flask
- Mac
- file
- Converting
- TORCH
- Linux
- Package
- pandas
- judge
- Container
- GitLab
- KAKAO
- Database
- LLM
- PostgreSQL
- AI
- pytorch
- Paper
- Windows
- numpy
- DB
- docker
- list
- enV
- evaluation
Archives
- Today
- Total
Daily Develope
[Linux] Environment 환경변수 설정 본문
Environment
ㅇ 환경변수 리스트 확인
env
ㅇ 신규 생성
export HELLO=world
ㅇ 삭제
unset HELLO
ㅇ 기존 환경변수에 추가
(기존 PATH 환경변수에 '/opt/myapp/bin' 경로 추가)
export PATH=/opt/myapp/bin:$PATH
ETC
ㅇ 환경변수 'PATH'에 '/opt/myapp/bin' 경로 영구 추가
- bash
echo 'PATH="/opt/myapp/bin:$PATH"' >> ~/.bash_profile
- zsh
echo 'PATH="/opt/myapp/bin:$PATH"' >> ~/.zshrc
'OS > Linux' 카테고리의 다른 글
[Linux] 패키지 저장소 정리 (0) | 2023.09.05 |
---|---|
[Linux] tar 압축 / 압축 해제 (0) | 2023.03.15 |
[Linux] USB 연결 & 파일 복사 (0) | 2022.12.12 |
[Vim] 명령어 정리 (0) | 2022.05.12 |
[Linux] Python 소스코드를 통한 업데이트 (0) | 2022.04.13 |
Comments