Yuav ua li cas rau nruab thiab teeb tsa BASH ntawm Windows 10

Cov txheej txheem:

Yuav ua li cas rau nruab thiab teeb tsa BASH ntawm Windows 10
Yuav ua li cas rau nruab thiab teeb tsa BASH ntawm Windows 10
Anonim

Yuav Paub

  • Developer Mode: Right-click Start menu > xaiv Settings > Update & Security > rau cov neeg tsim khoom.
  • Tom ntej: Xaiv Developer mode > Yes > pab Windows Subsystem Rau Linux > rov pib dua.
  • Siv bash: Right-click Start menu > xaiv Windows PowerShell (Admin) > hom "bash" > niasEnter.

Kab lus no piav qhia yuav ua li cas rau nruab thiab teeb tsa bash siv Linux cov lus txib ntawm 64-ntsis version ntawm Windows 10.

Image
Image

Yuav ua li cas tig rau Windows Developer Mode

Txhawm rau pab tsim cov haujlwm rau Windows:

  1. Right-click the Start menu thiab xaiv Settings.

    Image
    Image
  2. Xaiv Update & Security.

    Image
    Image
  3. Xaiv For developers ntawm sab laug.

    Image
    Image
  4. Xaiv Tus tsim tawm hom.

    Image
    Image
  5. Xaiv Yes kom paub meej, tom qab ntawd tos lub pob tsim tawm los nruab.

    Image
    Image
  6. Type Windows Features hauv lub desktop tshawb nrhiav thiab xaiv Tig Windows Nta Rau lossis Tawm.

    Image
    Image
  7. Check lub thawv ntawm ib sab Windows Subsystem Rau Linux thiab xaiv OK.

    Image
    Image
  8. Xaiv Restart now nyob rau hauv lub dialog box kom reboot koj lub computer siv cov kev hloov.

    Image
    Image

Yuav siv Bash hauv Windows

Tom qab koj lub computer rov pib dua, koj npaj tau teeb tsa bash rau Windows:

  1. Mus rau Microsoft Store thiab xaiv Linux faib koj xaiv. Nruab nws ces tso nws.
  2. Tau rau qhov kev faib tawm kom tiav kev txhim kho, tom qab ntawd tsim tus neeg siv lub npe hauv lub qhov rai hais kom ua thiab nias Enter Thaum lub sijhawm ua haujlwm thawj zaug, koj yuav tsum koom nrog qee qhov pib. configuration, nyob ntawm qhov kev faib tawm. Feem ntau, koj yuav tsum qhia tus username thiab password.
  3. Tom qab kev teeb tsa tiav, kaw lub qhov rais thiab nyem rau ntawm Start menu, ces xaiv Windows PowerShell (Admin).

    Image
    Image

    Tej zaum koj yuav raug ceeb toom kom nkag mus rau koj tus password Windows tus thawj tswj hwm.

  4. Type bash nyob rau hauv lub qhov rais terminal thiab nias Enter.

    Image
    Image

Tam sim no koj muaj cov qauv tseem ceeb ntawm Ubuntu ntsia ntawm koj lub cev yam tsis muaj cov duab duab lossis cov kab ke. Yog li, tam sim no koj tuaj yeem siv Linux cov lus txib los sib txuas lus nrog Windows cov qauv ntaub ntawv. Txhua lub sijhawm koj xav khiav Linux cov kab hais kom ua, qhib PowerShell lossis cov lus txib kom nkag mus thiab nkag mus bash

Yuav ua li cas rau nruab Bash ntawm Windows

Txhawm rau khiav bash, koj lub khoos phis tawj yuav tsum tau khiav 64-ntsis version ntawm Windows nrog tus lej version tsis qis dua 14393, yog li hloov Windows 10 mus rau qhov tseeb version ua ntej koj pib. Txhawm rau khiav Linux lub plhaub, koj yuav tsum tau qhib Windows tus tsim tawm hom thiab pab kom Linux subsystem.

Nkag mus rau Pawg Tswj Xyuas los qhia yog tias koj tab tom khiav 32-ntsis lossis 64-ntsis version ntawm Windows.

Pom zoo: