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