반응형
Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
| 31 |
Tags
- 도커
- namespace
- docker
- linux
- devops #engineer
- Vagrant
- nginx
- 컨테이너
- python
- Kubernetes
- java
- 초간단파이썬
- variable
- bash
- container
- mongodb operator
- 쿠버네티스
- aws #engineer
- multivm
- Engineer
- RSS
- Strimzi
- k8s
- WEB
- devops #jenkins
- 파이썬
- DOIK
- springboot
- ioredirection
- httpd실행
Archives
- Today
- Total
목록export (1)
샤인의 IT (막 적는) 메모장
[Bash] Export Variable
Export Variable 스크립트를 돌릴 때 export를 사용해야 출력된다. 기본적으로 Command Line에서 지정했을 경우 로그아웃 후 재접속 시 해당 변수는 초기화 되어 있다. 그래서 .bashrc 파일에 해당 변수를 지정한다. Linux 내 모든 계정에 적용하고 싶다면 /etc/profile에 입력한다. .bashrc와 /etc/profile에 같은 변수가 지정되어 있다면? .bashrc 변수를 가져온다. [root@scriptbox scripts]# cat 7.testvar.sh #!/bin/bash echo "The $SEASON season is logner" [root@scriptbox scripts]# chmod +x 7.testvar.sh #명령어로 출력하면 바로 나오지만 스크립..
Programming/Bash
2022. 1. 22. 18:05