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
													
											
												
												- Python
- centos 7.5
- 파이썬
- Chrome
- log
- Elasticsearch
- GPU
- Elk
- PostgreSQL
- RHEL
- 빅데이터
- docker
- 디렉토리
- rsyslog
- C
- zabbix
- CentOS
- 서울시민카드
- GNOME
- syslog
- Linux
- Kubernetes
- K8S
- bash
- audit
- yum
- JSON
- Audit Log
- Shell
- 크롬
													Archives
													
											
												
												- Today
- Total
Sysops Notepad
[bash] 쉘 디렉토리 유무 판단하기 본문
728x90
    
    
  !#/bin/bash
if [ ! -d 디렉토리명 ] ; then
Mkdir 디렉토리명
fi
728x90
    
    
  '업무 > dev' 카테고리의 다른 글
| [bash] 쉘 스크립트 디렉토리 or 파일 존재 여부 확인하는 법 (0) | 2018.10.31 | 
|---|---|
| Elasticsearch & Slack 연동을 통한 로그 모니터링 하기 (0) | 2018.10.24 | 
| [bash] 쉘 반복문 사용하기 (0) | 2018.09.29 | 
| django를 이용한 REST API 서버 구축 하기 (0) | 2018.07.08 | 
| centos 7 python 3.x 설치 및 virtualenv 설정 (0) | 2018.07.08 | 
			  Comments