Nyob rau hauv Windows 10 Kev Hloov Tshiab , Microsoft ntxiv qhov nthuav tshiab feature rau cov neeg tsim khoom, cov neeg siv fais fab, thiab cov neeg siv los ua haujlwm nrog Unix-y systems xws li Mac OS X thiab Linux. Qhov rai 10 tam sim no muaj xws li cov Unix Bash hais kom sai (hauv beta) siv lub tswv yim nrog Canonical, tom qab Ubuntu Linux .
Nrog cov tub txib kom sai, koj tuaj yeem nqa tawm txhua yam kev tawm tswv yim xws li kev sib txuas lus nrog lub qhov system cov ntaub ntawv kaw lus (li koj tuaj yeem nrog rau qhov kev hais kom ua ntawm Windows), khiav cov kev cai hauv npav Bash, thiab txhim kho Linux graphical UI cov kev pab cuam - qhov kawg ntawm ib qho yog tsis txaus siab.
Yog tias koj nyob hauv ib tug neeg siv lub caij nplooj zeeg los yog xav kom pib nrog qhov nrov hais kom ua tam sim no, ntawm no yog yuav ua li cas nruab ib thaj ntawm lub Khoos Phem 10.
01 ntawm 06
Lub Subsystem
Thaum koj nruab rau hauv Bash 10 qhov koj tsis tuaj yeem tau txais ib lub tshuab fais fab los yog qhov kev pab cuam uas nws qhov zoo tshaj plaws rau feem ntau khiav xws li Bash hauv Linux. Nws yog qhov pib Bash natively ntawm koj lub PC ua tsaug rau feature hauv Windows 10 hu ua Windows Subsystem rau Linux (WSL). Tus WSL yog tus "secret sauce" uas tso cai rau Linux software khiav ntawm qhov rais.
Kom pib, mus rau Start> Chaw> Hloov tshiab & Kev ruaj ntseg> Rau cov neeg tsim khoom . Hauv qab ntawm nqe lus "Siv cov qauv tsim" xaiv tus Tsim Hom xov tooj cua. Koj yuav raug hais kom rov qab qhib koj lub PC rau ntawm no. Yog tias muaj, mus tom ntej thiab ua li ntawd.
02 ntawm 06
Qhib Qhov Ris Nta
Thaum uas ua tas lawm, kaw qhov kev nqis tes app thiab nias rau ntawm Cortana nrhiav qhov chaw hauv cov neeg ua hauj lwm thiab ntaus ntawv hauv qhov rais nta. Qhov tshwm sim sab saum toj yuav tsum yog Kev Tswj Vaj Huam Sib Pab hu ua "Qhib cov yam ntxwv ntawm lub qhov muag los yog tawm." Xaiv qhov ntawd thiab qhov rais qhib me me.
Scroll down thiab khij lub npov uas sau hais tias "Qhov Ceeb Toom Sab Nrauv rau Linux (Beta)." Tom qab ntawd nias lawv xav kaw qhov rais.
Tom ntej no koj yuav tau txais kev tshoov siab kom rov qab qhib koj lub PC, uas koj yuav tau ua ua ntej koj tuaj yeem siv tau Bash.
03 ntawm 06
Kev Txhim Kho Thaum Ntawd
Thaum koj lub computer rov qab pib lawm, nyem rau ntawm Cortana hauv cov haujlwm haujlwm ib zaug dua thiab ntaus ntawv rau hauv pob. Qhov kawg tshwm sim yuav tsum yog ib qho kev xaiv khiav "bash" raws li ib lo lus txib - xaiv qhov ntawd.
Xwb, mus rau Start> Qhov System Qhov System> Kev Txiav Txim Siab . Thaum cov lus qhib qhov rai qhib tawm hauv cov pob thiab ntaus ntaus.
Whichever way koj ua, qhov kawg installation txheej rau Bash yuav pib los ntawm downloading Bash los ntawm lub qhov rais tom khw (ntawm qhov hais kom ua tam sim). Ntawm ib tus taw tes koj yuav raug nug kom mus ntxiv. Thaum uas tshwm sim cia li ntaus y thiab tom qab ntawd tos rau lub installation kom tiav.
04 ntawm 06
Ntxiv Ib Lub Npe thiab Tus Password
Thaum twg txhua yam yog yuav luag tas koj yuav raug nug kom nkag mus rau lub username thiab password, raws li yog raug rau cov Unix hais kom ua. Koj tsis tas yuav siv koj lub npe tus neeg siv lub npe lossis tus password. Xwb, lawv tuaj yeem ua tshwj xeeb. Yog tias koj xav hu rau koj tus kheej "r3dB4r0n" ces mus rau nws.
Thaum ntawd qhov ua tiav thiab qhov kev sau tiav tiav, qhov kev ceeb toom yuav qhib tau rau hauv Bash. Koj yuav paub tias nws tau ua tiav thaum koj pom tej yam zoo li 'r3dB4r0n @ [koj lub computer lub npe]' raws li qhov hais kom sai.
Tam sim no koj tuaj yeem nkag mus rau cov lus txib Bash koj nyiam. Raws li qhov no tseem yog beta software tsis txhua yam yuav ua hauj lwm, tab sis rau feem ntau cov feem nws yuav khiav zoo ib yam rau Bash lwm lub tshuab.
Thaum twg koj xav qhib Bash rov qab koj mam li pom nws hauv qab > Bash ntawm Ubuntu ntawm qhov rais .
05 ntawm 06
Txhim Kho Koj Tes
Raws li txhua tus neeg zoo Bash paub txog ua ntej koj ua txhua yam nrog cov kab hais kom ua koj yuav tsum tau hloov thiab upgrade koj cov installation tam sim no ntawm cov pob. Yog tias koj tsis tau hnov dua lub sij hawm, tej pob khoom yog dab tsi koj hu xov tooj ntawm cov ntaub ntawv uas ua cov kab hais kom ua kab thiab cov khoom siv fais fab rau hauv koj lub tshuab.
Kom paub tseeb tias koj nyob nraum mus txog hnub, qhib Bash ntawm Ubuntu ntawm qhov rais thiab sau cov lus qhia nram qab no: sudo apt-get hloov tshiab. Tam sim no ntaus sau. Bash mam li sau ib qho lus yuam kev rau lub qhov rais thiab mam li nug koj tus password.
Cia li las mees qhov yuam kev xov rau tam sim no. Tus sudo hais kom ua yog tsis ua hauj lwm tsis tau, tab sis koj tseem xav kom nws nqa tawm commands hauv Bash. Ntxiv rau nws yog kev xyaum zoo xwb los ua tej yam raws li kev tshaj tawm txoj hauv kev ntawm kev ntses ntsiag to ntawm Wisconsin.
Yog li ntawd, txhua yam peb tau ua tiav yog kho peb cov ntaub ntawv hauv zos ntawm cov pob khoom ntsia, uas cia lub computer paub yog tias muaj dab tsi tshiab. Tam sim no kom tau nruab ib lub pob tshiab peb yuav tsum ntaus ntawv sudo apt-tau txawj tej yam ntxiv thiab ntaus ntaus ib zaug ntxiv. Bash tej zaum yuav tsis nug koj tus password ntxiv txij li thaum koj nyuam qhuav nkag mus. Thiab tam sim no, Bash yog tawm rau cov haiv neeg txhim kho txhua yam hauv koj tej pob khoom. Thaum ntxov nyob rau hauv tus txheej txheem Bash yuav nug koj yog tias koj xav xav txuas ntxiv upgrading koj cov software Bash. Cia li ntaus y rau yog nqa tawm cov kev hloov kho tshiab.
Nws yuav siv sij hawm li ob peb feeb los txhim kho txhua yam, tab sis thaum nws tau ua Bash yuav hloov kho thiab npaj mus.
06 ntawm 06
Siv Tus Txheej Txheem Txoj Kev Khoo
Tam sim no peb tau txais Bash thiab khiav nws lub sijhawm ua tej yam yooj yim nrog nws. Peb yuav siv cov lus txib rsync ua ib qho rov qab ntawm peb cov ntawv nplaub tshev hauv Windows rau ib qho chaw seem sab nraud.
Hauv qhov ua piv txwv no, peb cov ntawv ceev muaj nyob rau hauv C: \ Cov neeg siv \ BashFan \ Cov ntaub ntawv, thiab peb cov tsav sab nraud yog F: tsav.
Txhua yam koj tau ua yog hom rsync-rv / mnt / c / Cov neeg siv / BashFan / Cov ntaub ntawv / / mnt / f / Cov ntaub ntawv. Cov lus txib no qhia txog Bash siv qhov kev pab cuam Rsync, uas yuav tsum tau muab tso rau hauv koj version of Bash. Ces tus "rv" qhia rau rsync kom rov qab txhua yam muaj nyob hauv cov folders ntau hauv koj lub PC, thiab luam tawm tag nrho cov rsync kev ua si rau kab lus txib. Nco ntsoov koj ntaus cov lus txib no raws nraim xws li kev siv txoj kev luaj tom qab ... / BashFan / Documents /. Rau kev piav qhia txog vim li cas qhov kev luaj tseem ceeb tseem ceeb mus xyuas qhov Digital Ocean tutorial.
Ob qho khoom tom kawg nrog cov chaw seem qhia rau Bash tias daim nplaub tshev rau luam thiab luam qhov twg rau. Rau Bash mus nkag rau qhov rais cov ntaub ntawv nws tau pib nrog "/ mnt /". Qhov no tsuas yog qhov txawv ntawm Bash ntawm qhov rais txij thaum Bash tseem tseem ua haujlwm li yog nws khiav ntawm lub tshuab Linux.
Tseem nco ntsoov tias Bash commands yog case sensitive. Yog hais tias koj ntaus hauv "cov ntaub ntawv" es tsis txhob "Cov ntaub ntawv" Rsync tsis tuaj yeem nrhiav tau cov ntawv nplaub tshev.
Tam sim no hais tias koj tau ntaus hauv koj cov lus txib ntaus Sau thiab koj cov ntaub ntawv yuav raug txhawb nqa tsis muaj sij hawm.
Qhov no yog txhua yam peb yuav tau hais rau hauv cov kev taw qhia no rau Bash ntawm Qhov Rais. Lwm lub sij hawm peb mam li saib seb koj tuaj yeem xyaum ua li cas nrog khiav Linux cov kev pab cuam thiab tham nrog me ntsis ntxiv txog cov lus txib uas siv nrog Bash.