Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
centos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
platyhouse
centos
Commits
db45717f
Commit
db45717f
authored
Nov 12, 2025
by
platyhouse
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added ptySystemInfo
parent
7533b418
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
78 additions
and
0 deletions
+78
-0
ptySystemInfo
ptySystemInfo
+78
-0
No files found.
ptySystemInfo
0 → 100755
View file @
db45717f
#!/bin/bash
# 색상 정의
RED
=
'\033[0;31m'
GREEN
=
'\033[0;32m'
YELLOW
=
'\033[1;33m'
BLUE
=
'\033[0;34m'
MAGENTA
=
'\033[0;35m'
CYAN
=
'\033[0;36m'
WHITE
=
'\033[1;37m'
# 어두운 파란 배경에 밝은 노란색 텍스트
HEADER
=
'\033[44m\033[1;93m'
NC
=
'\033[0m'
# No Color
echo
-e
"
${
HEADER
}
# 시스템 정보 수집
${
NC
}
"
echo
""
echo
-e
"
${
HEADER
}
# OS 정보
${
NC
}
"
cat
/etc/os-release
echo
""
echo
-e
"
${
HEADER
}
# 커널 버전
${
NC
}
"
uname
-r
echo
""
echo
-e
"
${
HEADER
}
# 호스트명
${
NC
}
"
hostname
echo
""
echo
-e
"
${
HEADER
}
# 가동 시간
${
NC
}
"
uptime
echo
""
echo
-e
"
${
HEADER
}
# CPU 정보
${
NC
}
"
lscpu |
grep
-E
'Model name|Socket|Core|Thread|CPU MHz'
echo
""
echo
-e
"
${
HEADER
}
# 메모리 정보
${
NC
}
"
free
-h
echo
""
echo
-e
"
${
HEADER
}
# 디스크 사용량
${
NC
}
"
df
-h
echo
""
echo
-e
"
${
HEADER
}
# 디스크 목록
${
NC
}
"
lsblk
echo
""
echo
-e
"
${
HEADER
}
# 네트워크 인터페이스
${
NC
}
"
ip
-br
addr
echo
""
echo
-e
"
${
HEADER
}
# 라우팅 테이블
${
NC
}
"
ip route
echo
""
echo
-e
"
${
HEADER
}
# DNS 설정
${
NC
}
"
cat
/etc/resolv.conf
echo
""
echo
-e
"
${
HEADER
}
# 열린 포트
${
NC
}
"
ss
-tulpn
2>/dev/null
||
netstat
-tulpn
echo
""
echo
-e
"
${
HEADER
}
# 로그인 사용자
${
NC
}
"
who
echo
""
echo
-e
"
${
HEADER
}
# 실행 중인 프로세스 TOP 10 (CPU)
${
NC
}
"
ps aux
--sort
=
-%cpu |
head
-11
echo
""
echo
-e
"
${
HEADER
}
# 실행 중인 프로세스 TOP 10 (메모리)
${
NC
}
"
ps aux
--sort
=
-%mem |
head
-11
echo
""
echo
-e
"
${
HEADER
}
# 정보 수집 완료
${
NC
}
"
platyhouse
@platyhouse
mentioned in commit
8587004b
·
Dec 16, 2025
mentioned in commit
8587004b
mentioned in commit 8587004bfbebb2ceff13804bc1eea04727f6a285
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment