Linux 명령어 정리
curl : http 요청
http 요청
1
curl --location --request GET 'http://127.0.0.1:8401/v1/example?test=1' --header 'Content-Type: application/x-www-form-urlencoded' --header 'TEST: 4406c3c04215d36e36f964582b869e0d7c8eec8482e793e5512a08abd39516d6'
http 요청 응답 시간 확인
1
curl -o /dev/null -s -w %{time_total} --location --request GET 'http://127.0.0.1:8401/v1/example?test=1' --header 'Content-Type: application/x-www-form-urlencoded' --header 'TEST: 4406c3c04215d36e36f964582b869e0d7c8eec8482e793e5512a08abd39516d6'
서버 Core 확인
- http 요청 응답 시간 확인
서버 용량 확인
현재 마운트된 디스크 크기, 사용량, 남은 용량 확인
1
df -h
하위 디렉토리 제외하고 현재 디록토리 용량 확인
1
du -hd 0 ./*
파일 압축, 압축 풀기
- 특정 폴더 zip 으로 압축하기
1
zip -r backup.zip backup/


