레퍼런스

많이 쓰는 윈도우 명령어

명령 프롬프트(cmd)·PowerShell에서 자주 쓰는 파일·네트워크·시스템 명령어 모음.

파일·디렉터리 (cmd)

dir목록 보기
cd /d D:\path드라이브 포함 이동
copy / xcopy /s복사 / 하위폴더 포함 복사
move a b이동/이름 변경
del /s file삭제(하위 포함)
mkdir a\b\c폴더 생성
type file내용 출력

네트워크

ipconfig /allIP·어댑터 상세
ipconfig /flushdnsDNS 캐시 초기화
ping host연결 확인
netstat -ano포트·PID 확인
nslookup domainDNS 조회

시스템·프로세스

tasklist실행 중 프로세스 목록
taskkill /F /PID 1234프로세스 강제 종료
sfc /scannow시스템 파일 검사·복구
chkdsk /f디스크 오류 검사
shutdown /r /t 0즉시 재부팅

PowerShell

Get-ChildItem목록(ls 대체)
Get-Content -Tail 20 f마지막 20줄
Select-String 'text' *내용 검색(grep 대체)
Get-Process | Sort CPU프로세스 정렬