graph TD
A[Linux 명령어] --> B[파일 시스템]
A --> C[프로세스 관리]
A --> D[네트워크]
A --> E[시스템 정보]
A --> F[텍스트 처리]
B --> B1[ls, cd, pwd]
B --> B2[cp, mv, rm]
B --> B3[find, locate]
C --> C1[ps, top, htop]
C --> C2[kill, pkill]
D --> D1[ip, ss, ping]
D --> D2[curl, wget]
E --> E1[df, du, free]
E --> E2[uname, hostnamectl]
F --> F1[grep, sed, awk]
F --> F2[cat, head, tail]
style A fill:#e8f5e8
# find - 다양한 조건으로 검색find/var-name"*.log"# 이름으로 찾기find.-typef-mtime-7# 7일 이내 수정된 파일find.-size+100M# 100MB 이상 파일find.-name"*.tmp"-delete# 찾아서 삭제# locate - 데이터베이스 기반 빠른 검색locatenginx.conf
sudoupdatedb# DB 업데이트
# ps - 프로세스 스냅샷psaux# 모든 프로세스psaux|grepnginx# 특정 프로세스 찾기ps-ef--forest# 트리 구조로 표시# top/htop - 실시간 모니터링top# 기본 모니터htop# 향상된 인터페이스# pgrep/pkill - 프로세스 검색/종료pgrep-f"pattern"# PID 찾기pkill-f"pattern"# 프로세스 종료
# IP 및 인터페이스ipaddrshow# IP 주소 확인iproute# 라우팅 테이블iplinkshow# 인터페이스 상태# 연결 상태ss-tuln# 열린 포트 확인ss-tp# TCP 연결 + 프로세스netstat-tuln# (구형) 포트 확인# 연결 테스트ping-c4google.com# 연결 테스트traceroutegoogle.com# 경로 추적diggoogle.com# DNS 조회curl-Ihttps://example.com# HTTP 헤더
# 실시간 로그 모니터링tail-f/var/log/syslog|grepERROR
# 로그에서 IP 추출 및 카운트grep-oE'[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+'access.log|sort|uniq-c|sort-rn|head
# 특정 시간대 로그 필터링awk'/2024-01-15 14:/ {print}'application.log