본문 바로가기

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
  • GPU
  • 디렉토리
  • audit
  • GNOME
  • Python
  • docker
  • Audit Log
  • PostgreSQL
  • K8S
  • CentOS
  • C
  • syslog
  • zabbix
  • Linux
  • 빅데이터
  • centos 7.5
  • rsyslog
  • RHEL
  • Chrome
  • Elasticsearch
  • Kubernetes
  • bash
  • JSON
  • 파이썬
  • 크롬
  • Elk
  • Shell
  • yum
  • log
  • 서울시민카드
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록python script (1)

Sysops Notepad

[Python] OS 모듈 및 스크립트 작성에 많이 쓰이는 모듈

python을 통한 시스템 스크립트 생성시 가장 많이 쓰이는 os 모듈 정리 시스템의 환경 변수값 읽기 - os.environ() , os.getenv() ,os.environ.has_key()디렉터리 위치 변경하기 - os.chdir()디렉터리 위치 리턴받기 - os.getcwd()시스템 명령어 호출하기 - os.system()실행한 시스템 명령어의 결과값 리턴 - os.popen()디렉터리 생성 - os.mkdir()디렉터리 삭제 - os.rmdir()파일 삭제 - os.unlink()파일 rename - os.rename(변경전,변경후) 그 외에 많이 쓰이는 모듈pickle - 객체를 파일에 저장/불러오기 모듈 >> pickle.dump(data, f) , pickle.load(f)tempfile ..

업무/dev 2018. 11. 10. 23:23
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바