문서의 이전 판입니다!
시스템 종료 / 시작 로그 확인 방법
주요 이벤트 ID
6005 : 이벤트 로그 서비스 시작, 부팅 시 기록
6006 : 정상적인 시스템 종료 시 기록
6008 : 비정상적인 시스템 종료 시 기록
6009 : 부팅 시 OS 버전, 빌드 번호, 서비스팩 수준 그리고 기타 시스템 관련 정보 기록
4624 : 계정 로그인
4647 : 계정 로그아웃
12 : 운영체제 시작
13 : 운영체제 종료
TASKLIST
현재 실행중인(서비스 포함) 모든 작업을 표시하는 명령어
TASKKILL
현재 작업중인 프로세스를 죽이기 위해 사용하는 명령어
옵션
https://trustall.tistory.com/31
tail
PS C:\Users> Get-Content ${파일경로} -Wait -Tail 10 or PS C:\Users> gc ${파일경로} -Wait -Tail 10
WSL 설치 매뉴얼(공식) 이전 버전 WSL의 수동 설치 단계(공식)
0. WSL/가상머신 기능 켜기 Windows > 설정 > 검색 > “기능” 검색 > Windows 기능 켜기/끄기 - “Linux용 Windows 하위 시스템” 옵션 체크 - “가상머신 플랫폼” 옵션 체크
1. Microsoft-Windows-Subsystem-Linux 활성화 파워쉘(관리자)에서 다음 명령어 실행(시스템 재부팅 가능, 작업중인 자료 미리 저장한 후 실행)
PS C:\User> Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux Path : Online : True RestartNeeded : False WSL 활성화 PS C:\User> dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart 가상플랫폼 옵션 활성화 PS C:\User> dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
2. Microsoft Store에서 ubuntu 다운로드 (18.04LTS, 20.04.4 LTS)
1. 다운로드(설치) > 열기 2. 사용자계정 추가(username, password(2번)), jurepi/ubuntu_12#$ // 업그레이드 3. $> sudo apt update && sudo apt upgrade 2번 패스워드 입력 // 개발 환경 설치 4. $> sudo apt-get install build-essential gdb 5. $> sudo apt install neofetch $> neofetch 6. $> sudo apt install mc (옵션) 7. $> sudo apt install docker.io 8. $> sudo apt install python3-pip 9. $> pip3 install django
3. Visual Studio Code 확장 설치
Remote - WSL 설치 C/C++ Intelisense, debuggind, and ....
4. 우분투에서 개발
$> mkdir projects $> cd projects $> code .
WSL1 vs WSL2(Hyper-V(가상화 기술)로 100% 리눅스 KERNEL 사용 가능)
Feature | WSL1 | WSL2 |
---|---|---|
Integration between Windows and Linux | ||
Fast boot times | ||
Small resource foot print | ||
Manage VM | X | |
Full Linux Kernel | X | |
Full system call compatibility | X | |
Runs with current versions of VMWare and VirtualBox | X | |
Performance across OS file systems | X |
제약 사항
Windows 10 Enterprise, Pro, Education에서 가능하며, 버전 2004, 빌드 19041이상, CPU 64bit, VM 모니터 모드 확장(Intel CPU의 VT-c)을 지원하는 CPU (Bios에서 설정), 4G 메모리 이상
WSL 관련 명령여(파워쉘)
// 버전 보기 PS C:\User> wsl -l -v PS C:\User> wsl --set-version Ubuntu20.04LTS 2
PC가 느려질 경우
유용한 기능
명령어 프롬프트(cmd)에서 utf-8 표기법
C:\사용자\repia> chcp 65001 Active code page: 65001
WSL(Windows Subsystem for Linux)