윈도우 필수 명령어 40가지
1) ipconfig
- ip 확인
2) ipconfig /all
- ip, MAC Address, DNS 등 모두 확인
3) findstr (ex. ipconfig /all | findstr DNS)
- 원하는 부분만 찾기
4) ipconfig /release
- ip 해제. 모든 인터페이스 해제됨. 특정 인터페이스만 해제 시 (ipconfig /release "Wi-Fi")
5) ipconfig /renew
- 새로운 ip 연결. 모든 인터페이스 새로 연결됨. 특정 인터페이스만 연결 시 (ipconfig /renew "Wi-Fi")
6) ipconfig /displaydns
- 로컬이 알고 있는 모든 ip 주소 리스팅
7) clip
- 해당 outcome 복사 (ex. ipconfig /displaydns | clip *후 메모장에 붙여넣기 가능)
8) ipconfig /flushdns
- DNS 캐시 삭제
9) nslookup [도메인]
- 해당 도메인의 NS 및 ip 주소 확인
- NS 변경 시 명령어에 추가 (ex. nslookup example.com 8.8.8.8)
- DNS 레코드 변경 시 명령어에 추가 (ex. nslookup -type=mx example.com ; nslookup -type=txt example.com ; nslookup -type=ptr example.com)
10) cls
- clean 터미널
11) getmac /v
- Mac Address 확인
12) powercfg /energy
- 에너지 혹은 파워 이슈 확인
13) powercfg /batteryreport
- 베터리 리포트 확인
14) assoc
- 어떤 프로그램에 어떤 파일 타입이 사용되는지 확인
- 파일 타입 변경 시 명령어 뒤에 추가 (ex. assoc .mp4=VLC.vlc)
15) chkdsk /f
- disk 에러 확인 후 고침
16) chkdsk /r
- 물리적 sector 이슈 확인 후 고침 (reboot/restart 필요로 시간 소요 가능)
17) sfc /scannnow
- system file checker로 Windows DL L 파일 등 문제 있을 겨우 replace 혹은 고침
18) DISM /Online /Cleanup /CheckHealth
- Deployment Image Servicing and Management로 시스템 이미지 확인
19) DISM /Online /Cleanup /ScanHealth
- Deployment Image Servicing and Management로 시스템 더 세부적으로 스캔
20) DISM /Online /Cleanup /RestoreHealth
- Deployment Image Servicing and Management로 시스템 이미지 고침
21) tasklist
- 구동하고 있는 작업 리스팅 (ex. tasklist | findstr script)
22) taskkill
- 구동하고 있슨 작업 kill (ex. taskkill /f /pid 20184)
23) netsh wlan show wlanreport
- wireless 리포트 확인
24) netsh interface show interface
- 인터페이스 확인
25) netsh interface ip show address | findstr “IP Address”
- ip 주소 확인
26) netsh interface ip show dnsservers
- DNS 서버 확인
27) netsh advfirewall set allprofiles state off
- Windows Defender firewall 비활성화
28) netsh advfirewall set allprofiles state on
- Windows Defender firewall 비활성화
29) ping
- 외부 통신 확인
30) ping -t
- 외부 통신 지속적으로 확인
31) tracert
- 해당 도메인으로 가는 곳 tracing
32) tracert -d
- 해당 도메인으로 가는 곳 tracing, resolve 도메인 네임 하지 않아 빠름
33) netstat
- 연결하고자 하는 곳, 연결된 곳 확인
34) netstat -af
- 오픈된 포트 확인
35) netstat -o
- 연결 ID 확인
36) netstat -e -t 5
- 송수신 통계 확인(5초 간)
37) route print
- 특정 네트워크에 연결할 시 라우트 / 게이트웨이 확인. 라우팅 테이블
38) route add
- 특정 네트워크 연결 시 커스텀 라우트 적용 (ex. route add 192.168.40.0 mask 255.255.255.0 10.7.1.44)
39) route delete
- route add로 커스텀 라우트 적용한 것 삭제
40) shutdown /r /fw /f /t 0
- 컴퓨터 restart 후 시스템 BIOS로 접근하여 메모리 프로파일 수정 가능.
참고 영상 URL : https://www.youtube.com/watch?v=Jfvg3CS1X3A