It’s possible to install and use the Linux 배쉬 쉘 on your Windows 10 PC. This is a Linux subsystem that runs on your PC without installing Linux on a virtual machine.
With this Linux Bash shell on Windows 10, you can run various Linux commands and apps (not the graphical ones) on your Windows PC. Also, you have the option to install your favorite Linux distribution, including Ubuntu.
In this guide, we’ll focus on installing Linux’s Ubuntu distribution on Windows 10.
1단계: Windows 기능에서 Linux 활성화
수행할 첫 번째 단계는 Windows 10 PC에서 Linux용 Windows 하위 시스템을 활성화하고 설치하는 것입니다. Windows 기능 패널에서 이 작업을 수행할 수 있습니다.
This option only works for the 64-bit versions of Windows 10. Check what bit version your PC runs 진행하기 전에.
PC에서 64비트 버전의 Windows 10을 실행하는 경우 다음 단계를 따르세요.
- Open Control Panel on your PC.
- 선택 프로그램 주 제어판 창에서
- 다음 화면에서 선택 또는 Windows 기능을 설정 인사말 프로그램 및 기능 안내
- . Windows 기능 창이 열리면 아래로 스크롤하여 Linux 용 Windows 서브 시스템 옵션을 선택합니다.
- 선택 OK 창 하단에서 변경 사항을 저장합니다.
- Windows는 변경 사항을 적용하기 위해 컴퓨터를 재부팅하라는 메시지를 표시합니다. 고르다 지금 다시 시작 PC를 재부팅합니다.
Step 2: Download and Install a Linux Distribution on Your PC
Now that Windows Subsystem for Linux is installed, download your favorite Linux distribution and install it on your PC. You can install more than one Linux distro available on the Microsoft Store.
We’ll install the Ubuntu distro in the following steps.
- When your PC boots back up after the last step in the above section, open the 스타트 메뉴, 검색 마이크로 소프트 스토어, 선택 마이크로 소프트 스토어 검색 결과에
- . 스토어, 고르다 검색 at the top-right corner and type Ubuntu. You may enter any other Linux distro name here if you want.
- 선택 Ubuntu 검색 결과에
- On Ubuntu’s app screen, select 설치 to install this Linux distribution on your PC. Windows will install this distro as if you’re installing any other Store app.
- Close Microsoft Store when Ubuntu is installed.
Step 3: Configure the Linux Bash Shell on Windows 10
The Linux Bash shell is now installed on your PC, and you’re ready to start using it.
When you run the shell for the first time, it’ll ask you to configure a few options. Here’s how to launch and configure the shell:
- 열기 스타트 메뉴, 검색 Ubuntu, 선택 Ubuntu 검색 결과에
- When Ubuntu opens, it’ll start configuring some of its options automatically. Wait for this to finish.
- 당신이 볼 때 Enter new UNIX username prompt, type the username you’d like to use with the Bash shell. This username can be different from the one you use with your Windows user account. Then, press 엔터 버튼.
- Ubuntu then asks you to create a password for the shell. Type a password and press 엔터 버튼.
- Type the password again and press 엔터 버튼.
- The window will display various messages. At the bottom of these messages, you’ll see the username you just created and your PC’s name.
- You can now start running Linux commands on your PC.
Step 4: Start Using Linux Bash Shell Commands on Windows 10
The Linux Bash shell is now fully configured, and you can start running your commands in it. If you aren’t sure what commands to start with, the following will give you some ideas.
Note that each command that starts with sudo는 will require you to enter the password you created in the above section. This is because these commands need admin privileges to run.
1. Update Package List
명령 : sudo는있는 apt-get 업데이트
This command updates the packages list for your specific Linux distribution. Keep in mind that this command doesn’t actually install any updates; it only updates the list.
2. 소프트웨어 업데이트 설치
명령 : 는 sudo apt-get은 업그레 이드
Use this command to get updates for the apps installed on your Linux distribution.
3. Install a New Program
명령 : sudo apt-get install PackageName
This command helps you install a program on your Linux distribution. Replace 패키지 이름 in the command with the name of the program you want to install.
For example, to install 대담, you’d use the following command:
sudo apt-get 설치 대담
4. Remove an Installed Program
명령 : sudo apt-get remove PackageName
To get rid of a program from your Linux distribution, use this command replacing 패키지 이름 with the name of the program you want to remove.
5. Edit a Text File
명령 : nano FileName.txt
This command opens Ubuntu’s built-in text editor to let you edit the specified file. Make sure to replace 파일 이름 with the actual name of the file you want to edit.
6. List the Contents of a Directory
명령 : ls (that’s a small L)
Use this command to display the contents of your current working directory.
7. Change the Current Directory
명령 : cd Path
To change your current working directory, run this command replacing 경로 with the full path to the directory you want to make your new working directory.
8. Download Files From the Internet
명령 : wget URL
You can download files from the internet to your computer with this command. Simply replace the URL in the command with the web address of the file you wish to download.
9. Clear the Terminal Screen
명령 : 선명한
This command clears everything in your Terminal window and lets you start typing commands from scratch. Use this when your Terminal screen is too cluttered.
10. Quit the Terminal
명령 : 출구
This command closes the Terminal window. Use this when you’ve finished working with your commands.
And those are some of the essential commands you should learn to get started with the Linux Bash shell on your Windows 10 PC. We hope this guide helps you out.