MacOS Terminal daim ntawv thov yog tsim los ua haujlwm ntawm cov kab hais kom ua theem - tib theem li cov thawj cov khoos phis tawj. Yuav kom paub yuav ua li cas flawlessly taw ntawm disk chaw hauv "Davhlau", koj yuav tsum tau txais kev txawj ntse.
Cov cim
- Tus cwj pwm ntawv xim dub thiab thaiv hauv cov ntawv nkhaus [V] - nias lub cim tseem ceeb (hauv qhov no, tsab ntawv V).
- Kab hauv cov ntawv qaij nyob rau hauv cov square nkhaus [Nkag Nkag] - nias tus yuam sij tshwj xeeb ntawm Mac keyboard.
- Lub cim comma nruab nrab ntawm cov square nkhaus [V], [Nkag] tsuas yog ua raws qib ntawm kev nqis tes ua: thawj nias tus yuam sij V, tom qab ntawd ntaus Enter.
- Lub cim ntxiv ntawm cov kab rov tav sib txawv [cmd] + [V] txhais tau tias qhov sib xyaw tseem ceeb no yuav tsum muab nias ib txhij.
- Cov kab ntawv tau muab txhais hauv txhais tau tias yuav tsum muaj cov ntawv sau sib txawv, nyob ntawm koj qhov xwm txheej.
- Qhov $ cim tus kheej thaum pib ntawm kab yog coj los ua qhov tam sim ntawd (koj yuav tsum tau txiav txim siab dab tsi ntawm kab hais kom ua "sai") thiab koj tsis tas yuav nkag mus hauv nws!
Txog rau Terminal daim ntawv thov
Yog tias koj muaj lus nug txog yuav ua li cas mus tshawb cov ntawv tais ceev tseg hauv Terminal, feem ntau koj yeej tsis tau ua haujlwm nrog Terminal ua ntej.
Davhlau ya nyob twg yog qhov tob tob ntawm kev ua haujlwm nrog macOS - koj tuaj yeem ua ntau yam hauv nws uas qhov graphical interface tsis tuaj yeem ua. Cov laj thawj rau qhov no yog qhov sib txawv: ob qho tib si keeb kwm, thiab qhov tsis muaj qhov xav tau kom ua dhau qhov graphical interface nrog kev ua yeeb yam tsis tshua muaj.
Muaj ntau txoj hauv kev los qhib Lub Chaw Nres Tsheb. Feem ntau txhim khu kev qha: Qhib "Tshawb nrhiav", nyob rau sab laug hauv "Favorites" qhib "Cov Ntawv Thov", nrhiav cov nplaub tshev "Cov Khoom Siv" hauv lawv, thiab twb nyob hauv nws - "Davhlau".
Tib lub sijhawm, kev hloov ntawm cov nplaub tshev tsuas yog cov txheej txheem feem ntau siv thaum ua haujlwm nrog graphical interface ntawm macOS file system. Dab tsi yuav ua rau qhov kev xav tau siv qhov chaw nruab ntug minimalist rau cov laj thawj no?
Feem ntau, kev hloov mus rau ib daim nplaub tshev hauv Terminal yog xav kom ua qee yam tshwj xeeb hauv cov nplaub tshev tshwj xeeb no uas siv Terminal nws tus kheej.
Feem ntau cov yuav muaj, koj tau pom ib qho kev qhia hauv Is Taws Nem uas pab koj daws koj cov teeb meem, thiab ib qho ntawm cov kauj ruam hauv kev coj cov lus qhia yog qhov tawm tswv yim mus rau hauv daim nplaub tshev, piv txwv li, ntawm koj qhov project.
Txoj kev nyab xeeb tshaj plaws ntawm kev mus
Nkag mus rau hauv qhov kev caw:
$ [c], [d], [chaw], thiab nias sau.
Yog tias koj tsis muaj kev paub dhau los nrog Chaw Ua Haujlwm, Hauv qab no yog qhov kev paub tseeb uas lees paub qhov tseeb ntawm koj cov kev ua.
Ua ntej, peb tau txais hauv cov ntawv los teev cia cov kab ntawm txoj hauv kev rau daim nplaub tshev uas koj yuav tsum tau mus hauv Lub Chaw Haujlwm.
Txhawm rau ua qhov no, qhib lub qhov rai hauv daim ntawv thov Finder nrog lub npe ntawm cov nplaub tshev uas koj xav tau mus.
Nyem rau ntawm lub npe ntawm daim ntawv no nrog khawm xis. Cov ntaub ntawv qhia ua zaub mov txuam nrog cov nplaub tshev no yuav tshwm sim.
Tam sim no nias thiab tuav tus nqi [alt] - qee qhov ntawm cov ntawv qhia zaub mov lub ntsiab lus yuav hloov, tom qab ntawd xaiv qhov "Luam tawm kab rau" yam khoom. Muaj ib qho tsis txaus ntseeg ntawm no: tag nrho txoj kev yuav muaj chaw nyob sab hauv, uas tus neeg txhais lus Terminal tus neeg txhais lus yuav coj los ua tus cim cais ntawm tus kheej tsis dhau. Yog li no, rau qhov kev txiav txim siab lees paub, txoj kev tawm mus los yuav tsum tau ntim nrog hauv cov lus tshaj tawm.
Tam sim no qhib Terminal, ntaus hauv qhov sai:
$ [c], [d], [chaw], [″], [cmd] + [V], [″], [Nkag]
Lub npe ntawm cov nplaub tshev yuav tsum tshwm nyob rau hauv cov kev ceev nrooj - nws txhais tau tias koj tau mus rau hauv daim nplaub tshev uas raug! (cd luv rau Hloov Cov Ntawv Teev Npe)
Cov Lus Qhia Uas Siv Tau
Txhawm rau saib cov npe ntawm cov ntaub ntawv hauv daim nplaub tshev, hom:
$ [l], [s], [Sau]
Cov hom ntaub ntawv nthuav qhia tuaj yeem hloov pauv siv cov tsis txwv. Txhawm rau paub cov npe ntau ntxiv ntawm txhua yam kev xaiv, saib hauv Is Taws Nem.
Txhawm rau mus rau lub hauv paus (sab saum toj) nplaub tshev, hom:
$ [c], [d], [chaw], [~], [Nkag]
Feem ntau, txoj kev hloov pauv yog nqa tawm tsis yog los ntawm luam tawm txoj hauv kev los ntawm "Tshawb Pom", tab sis los ntawm kev hloov pauv nce / nqis los ntawm cov qauv ntawm cov nyob ze.
Txhawm rau nce mus rau qhov siab dua:
$ [c], [d], [chaw], [.], [.], [Sau]
Tam sim ntawd mus rau ob theem:
$ [c], [d], [chaw], [.], [.], [/], [.], [.], [Sau]
Raws li, qhov txheej txheem no ($ cd../..) tuaj yeem nyuaj.
Siv tus / nce los tuav cov yuam sij nqa tuaj tam sim no ntaus cov lus txib rau lub siab ceev.
Thiab ib qho kev ua kom yuam kev ntxiv: thaum koj txiav txim siab ntaus txoj hauv kev ntawm tes, mus ntawm cov ntawv tais ceev tseg rau nplaub tshev, ua kom tsis txhob ntaus lub npe ntev, tsuas yog ntaus thawj ob peb cov cim ntawm lub npe ntawm cov ntawv tais ceev tseg uas koj xav mus thiab nias [Tab]. Yog tias cov npe nplaub tshev no tsis paub qhov txawv, nws yuav tshwm sim hauv kev caw. Ntxiv mus, yuav muaj a / thaum kawg, uas yog qhov tseeb ntawm kev siv "cd" hais kom ua, txawm hais tias nws raug tso cai siv lub npe nplaub tshev tsis muaj / tom kawg. Yog tias, tom qab nias [Tab], ib lub npe ntxiv rau kab, tab sis tsis muaj kab / cim, qhov no txhais tau tias muaj ntau cov ntawv tais ceev rau hauv qhov chaw no, pib ntawm tib qho. Yog tias koj nias [Tab] ntxiv dua, cov npe ntawm cov haujlwm uas txaus siab rau qhov teeb tsa no yuav tshwm sim, thiab koj yuav tsum tau txuas ntxiv ntaus ntawv los qhia lub npe tsis zoo.
Lwm lub ntsiab lus uas tuaj yeem nkag siab koj yog lub npe tiag tiag ntawm cov ntawv tais ceev tseg: Cov Ntawv, Downloads, etc. Qhov tseeb, qhov no yog hloov rau cov lus Lavxias-lus. Thiab lawv lub npe tiag tiag yog Cov Ntaub Ntawv, Downloads, thiab lwm yam Yuav tsum ceev faj!
Thiab thaum kawg, nws yuav tsum nco ntsoov tias rooj plaub ntawm cov cim yog qhov tseem ceeb hauv lub npe cov nplaub tshev / cov ntaub ntawv hauv macOS!