본문 바로가기

Sysops Notepad

검색하기
Sysops Notepad
프로필사진 sysops

  • 분류 전체보기 (188)
    • TIP (4)
    • IT (8)
    • 업무 (176)
      • sys (63)
      • dev (21)
      • etc (92)
    • 주식일기 (0)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/12   »
일 월 화 수 목 금 토
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
  • JSON
  • GNOME
  • log
  • Shell
  • K8S
  • 크롬
  • Elasticsearch
  • Audit Log
  • centos 7.5
  • C
  • PostgreSQL
  • Python
  • rsyslog
  • 디렉토리
  • 서울시민카드
  • 빅데이터
  • yum
  • Elk
  • bash
  • 파이썬
  • syslog
  • audit
  • GPU
  • Chrome
  • Linux
  • docker
  • zabbix
  • RHEL
  • Kubernetes
  • CentOS
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록File (1)

Sysops Notepad

[bash] 쉘 스크립트 디렉토리 or 파일 존재 여부 확인하는 법

linux bash shell script directory , file check 하는 방법 #!/bin/bash # 디렉토리 존재 유무 확인If [ ! -d 디렉토리명 ] ; then mkdir 디렉토리명fI # 파일 존재 유무 확인If [ ! -e 디렉토리명 ] ; then touch 파일명fI

업무/dev 2018. 10. 31. 20:36
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바