반응형
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
- Kubernetes
- nginx
- namespace
- multivm
- k8s
- RSS
- devops #jenkins
- WEB
- Vagrant
- docker
- container
- bash
- devops #engineer
- Engineer
- 초간단파이썬
- 쿠버네티스
- aws #engineer
- variable
- linux
- python
- ioredirection
- 도커
- httpd실행
- springboot
- mongodb operator
- 컨테이너
- DOIK
- java
- 파이썬
- Strimzi
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