WSL: Difference between revisions
Jump to navigation
Jump to search
(Add categories: Linux, Reference) |
(Fix: remove --- horizontal lines (7 removed)) |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
WSL, | {{Status | ||
|status=Draft | |||
|owner=Knowledge Agent | |||
|last_update=2026-07-16 | |||
|review=Pending | |||
}} | |||
{{TOC}} | |||
== Overview == | |||
WSL에 대한 기술 문서입니다. | |||
=== Summary === | |||
* 무엇인가? - WSL | |||
* 왜 필요한가? - HPC 및 서버 환경에서 필수 개념 | |||
* 언제 사용하는가? - 서버 구성, 성능 튜닝, 문제 해결 시 | |||
== Purpose == | |||
이 문서가 존재하는 이유 | |||
* Goal: WSL에 대한 기술 정보 제공 | |||
* Scope: WSL의 개념, 사용법, 설정 | |||
* Non-goals: 다른 주제로의 확장 | |||
== Key Concepts == | |||
{| class="wikitable" | |||
! Concept | |||
! Description | |||
! Related | |||
|- | |||
| WSL | |||
| HPC/서버 환경에서 중요한 기술 개념 | |||
| [[Linux]], [[Server]] | |||
|} | |||
== | == Detailed Explanation == | ||
WSL, or Windows Subsystem for [[Linux]], is a feature of Windows that allows you to run a Linux environment on your Windows machine, without the need for a separate virtual machine or dual booting. WSL is designed to provide a seamless and productive experience for developers who want to use both Windows and Linux at the same time<ref>https://learn.microsoft.com/en-us/windows/wsl/about</ref> | |||
# Open PowerShell as Admin: Press <code>Win + X</code> and select "Terminal (Admin)" or "Windows PowerShell (Admin)". | # Open PowerShell as Admin: Press <code>Win + X</code> and select "Terminal (Admin)" or "Windows PowerShell (Admin)". | ||
# Install WSL: Type <code>wsl --install</code> and press Enter. This command enables required features, installs the latest kernel, and defaults to Ubuntu. | # Install WSL: Type <code>wsl --install</code> and press Enter. This command enables required features, installs the latest [[kernel]], and defaults to Ubuntu. | ||
# Restart: Your computer will likely need to restart to complete the installation. | # Restart: Your computer will likely need to restart to complete the installation. | ||
# Optional : Create User: After reboot, a terminal window will open asking for a Linux username and password (these are separate from your Windows login). | # Optional : Create User: After reboot, a terminal window will open asking for a Linux username and password (these are separate from your Windows login). | ||
* Launch: Open the Start Menu and search for your installed distro (e.g., "Ubuntu") or type <code>wsl</code> in Command Prompt/PowerShell. | * Launch: Open the Start Menu and search for your installed distro (e.g., "Ubuntu") or type <code>wsl</code> in Command Prompt/PowerShell. | ||
* Update Software: In your Linux terminal, run <code>sudo apt update && sudo apt upgrade</code> (for Ubuntu/Debian). | * Update Software: In your Linux terminal, run <code>sudo apt update && sudo apt upgrade</code> (for Ubuntu/Debian). | ||
* Install Software: Use <code>sudo apt install <package_name></code> (e.g., <code>sudo apt install git</code>). | * Install Software: Use <code>sudo apt install <package_name></code> (e.g., <code>sudo apt install git</code>). | ||
* Access Windows Files: Your Windows drives are mounted under <code>/mnt/</code> (e.g., <code>cd /mnt/c/Users/YourUser</code>). | * Access Windows Files: Your Windows drives are mounted under <code>/mnt/</code> (e.g., <code>cd /mnt/c/Users/YourUser</code>). | ||
<syntaxhighlight lang="powershell"> | <syntaxhighlight lang="powershell"> | ||
#WSL check status | #WSL check status | ||
>wsl -l -v | >wsl -l -v | ||
# Start WSL machine | # Start WSL machine | ||
>wsl -d <machine name> | >wsl -d <machine name> | ||
# Stop a WSL machine | # Stop a WSL machine | ||
>wsl -t <machine name> | >wsl -t <machine name> | ||
# Stop all WSL machine | # Stop all WSL machine | ||
>wsl --shutdown | >wsl --shutdown | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Networking in WSL can be configured in various ways to enable communication between Windows and Linux applications. | Networking in WSL can be configured in various ways to enable communication between Windows and Linux applications. | ||
== | == Best Practices == | ||
* | * 최신 버전 사용 권장 | ||
* | * 공식 문서 참고 | ||
* 테스트 환경에서 먼저 검증 | |||
* | |||
== References == | |||
* [https://wiki.hpcmate.com WSL] | |||
== | == Related Pages == | ||
* | * [[Linux]] | ||
* | * [[Server]] | ||
* [[Hardware]] | |||
* | * [[Network]] | ||
* | |||
[[Category:Linux]] | |||
== Knowledge Graph == | |||
Related | |||
→ [[Linux]] | |||
→ [[Ubuntu tips and tricks]] | |||
→ [[Bash script]] | |||
→ [[Visual Studio Code]] | |||
[ | |||
[[ | |||
[[Category: | [[Category:Guide]] | ||
Latest revision as of 11:31, 17 July 2026
Overview
WSL에 대한 기술 문서입니다.
Summary
- 무엇인가? - WSL
- 왜 필요한가? - HPC 및 서버 환경에서 필수 개념
- 언제 사용하는가? - 서버 구성, 성능 튜닝, 문제 해결 시
Purpose
이 문서가 존재하는 이유
- Goal: WSL에 대한 기술 정보 제공
- Scope: WSL의 개념, 사용법, 설정
- Non-goals: 다른 주제로의 확장
Key Concepts
| Concept | Description | Related |
|---|---|---|
| WSL | HPC/서버 환경에서 중요한 기술 개념 | Linux, Server |
Detailed Explanation
WSL, or Windows Subsystem for Linux, is a feature of Windows that allows you to run a Linux environment on your Windows machine, without the need for a separate virtual machine or dual booting. WSL is designed to provide a seamless and productive experience for developers who want to use both Windows and Linux at the same time[1]
- Open PowerShell as Admin: Press
Win + Xand select "Terminal (Admin)" or "Windows PowerShell (Admin)". - Install WSL: Type
wsl --installand press Enter. This command enables required features, installs the latest kernel, and defaults to Ubuntu. - Restart: Your computer will likely need to restart to complete the installation.
- Optional : Create User: After reboot, a terminal window will open asking for a Linux username and password (these are separate from your Windows login).
- Launch: Open the Start Menu and search for your installed distro (e.g., "Ubuntu") or type
wslin Command Prompt/PowerShell. - Update Software: In your Linux terminal, run
sudo apt update && sudo apt upgrade(for Ubuntu/Debian). - Install Software: Use
sudo apt install <package_name>(e.g.,sudo apt install git). - Access Windows Files: Your Windows drives are mounted under
/mnt/(e.g.,cd /mnt/c/Users/YourUser).
#WSL check status
>wsl -l -v
# Start WSL machine
>wsl -d <machine name>
# Stop a WSL machine
>wsl -t <machine name>
# Stop all WSL machine
>wsl --shutdown
Networking in WSL can be configured in various ways to enable communication between Windows and Linux applications.
Best Practices
- 최신 버전 사용 권장
- 공식 문서 참고
- 테스트 환경에서 먼저 검증
References
Related Pages
Knowledge Graph
Related
→ Linux → Ubuntu tips and tricks → Bash script → Visual Studio Code