Cov lus qhia Terminal thiab Tricks kom ceev koj Mac

Cov txheej txheem:

Cov lus qhia Terminal thiab Tricks kom ceev koj Mac
Cov lus qhia Terminal thiab Tricks kom ceev koj Mac
Anonim

Leej twg tsis xav kom tau txais kev nrawm thiab ua haujlwm ntau ntawm lawv lub computer li sai tau? Cov neeg siv Mac tuaj yeem txhim kho lawv cov khoom siv ntau txoj hauv kev, suav nrog:

  • Upgrading RAM
  • Upgrading cia
  • Nruab nrawm dua processors
  • Ua kom muaj chaw seem ntau

Tsis yog tag nrho cov kev xaiv no siv tau rau txhua lub Mac, tab sis txawm tias koj tsis tuaj yeem hloov kho koj Mac's RAM, muaj cov kauj ruam uas koj tuaj yeem ua los txhim kho kev ua tau zoo tag nrho yam tsis tas yuav siv nyiaj hloov tshiab.

Ntawm tag nrho cov khoom teev saum toj no, thawj qhov koj yuav tsum ua yog xyuas kom koj muaj ntau qhov chaw pub dawb ntawm koj lub Mac pib tsav. Yog tias koj tsis tuaj yeem ua tiav qhov tsim nyog ntawm qhov chaw dawb los ntawm kev tshem tawm cov apps uas tsis xav tau lossis tsis xav tau, cov ntaub ntawv, thiab cov ntaub ntawv, ces koj yuav xav txiav txim siab txav koj tus neeg siv lub nplaub tshev mus rau sab nraud tsav kom tso chaw.

Image
Image

Terminal Tricks txhawm rau txhim kho kev ua tau zoo

Ib txoj hauv kev los txhim kho kev ua tau zoo yog txo qis cov khoom qab zib qhov muag nrog macOS. Ib qho piv txwv yog siv cov animation kom txo qis qhov qhib qhov rai kom haum rau hauv Dock. Hom animation no tsis siv ntau lub zog ua haujlwm thaum piv rau, piv txwv li, siv cov lim dej hauv Photoshop. Tab sis yog tias koj lub Mac tsis khoom sim ua cov duab tshiab hauv koj nyiam duab kho app thaum koj ua haujlwm hauv koj nyiam database app, tom qab ntawd ntxiv cov peev txheej xav tau los ua kom lub qhov rais tuaj yeem txaus kom qeeb koj Mac mus rau qhov nkag.

Thaum coj ib tus zuj zus, cov lus qhia Terminal no yuav tsis pom kev txhim kho nrawm thiab kev ua tau zoo, tab sis ua ke lawv ua tau zoo heev. Qhov kawg tshwm sim yog tias koj Mac yuav tuaj yeem ua tiav cov haujlwm sai dua, nrog tsawg dua ntawm cov processor cores.

Peb yuav siv Terminal rau tag nrho cov kev dag ntxias no, thiab txawm tias tsis muaj cov lus txib ntawm lawv tus kheej yuav tsum ua rau muaj teeb meem, nws yog ib txwm muaj tswv yim kom paub tseeb tias koj muaj qhov thaub qab tam sim no ua ntej pib ua haujlwm. Yog tias koj npaj tau, cia peb pib.

The Terminal app tuaj yeem pom hauv /Applications/Utilities/.

Disable Window Animations

Raws li tau hais, qhov rai animations yuav tsum muaj qee yam ntawm cov duab thiab lub zog ua haujlwm, uas tsis muaj txiaj ntsig tiag tiag uas tsis yog qhov muag khoom qab zib me ntsis. Nov yog yuav ua li cas tig lub qhov rais qhib animations tawm:

Ib yam ntawm cov lus txib Terminal no tuaj yeem ntaus ntawv rau hauv lub app lossis theej thiab muab tso rau ntawm nplooj ntawv no.

  1. Nkag mus rau cov lus txib hauv qab no hauv Terminal prompt:

    defaults sau NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false

  2. nias enter lossis return ntawm koj cov keyboard.
  3. Txhawm rau kho cov animations, nkag mus rau cov lus txib hauv qab no:

    defaults sau NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool true

  4. nias enter lossis return ntawm koj cov keyboard.

Lwm lub qhov rais animation tshwm sim thaum koj hloov lub qhov rais thiab thaum koj xaiv rau Open lossis Txuag ib cov ntaub ntawv hauv ib qho app. Nov yog yuav ua li cas lov tes taw lawv:

  1. Nkag mus rau cov lus txib hauv qab no hauv Terminal:

    defaults sau NSGlobalDomain NSWindowResizeTime -float 0.001

  2. nias enter lossis return ntawm koj cov keyboard.
  3. Txhawm rau kho cov animation, nkag mus rau hauv qab no:

    defaults sau NSGlobalDomain NSWindowResizeTime -float 0.2

  4. nias enter lossis return ntawm koj cov keyboard.
  5. Koj tuaj yeem kaw Quick Look qhov rai animation nrog cov lus txib no:

    defaults sau -g QLPanelAnimationDuration -float 0

  6. nias enter or return.
  7. Restore the Quick Look window animation los ntawm kev nkag mus rau hauv qab no:

    defaults delete -g QLPanelAnimationDuration

  8. Nias enter lossis return, thiab tom qab ntawd rov pib koj lub Mac.

Kev txhim kho Dock

Yog tias koj nyiam zais koj lub Dock, tej zaum koj yuav pom tias muaj kev ncua ntawm thaum koj txav koj tus cursor mus rau thaj chaw Dock thiab thaum Dock tshwm. Koj tuaj yeem hloov qhov ncua sij hawm kom lub Dock tshwm tam sim ntawd:

  1. Nkag mus rau cov lus txib hauv qab no hauv Terminal:

    defaults sau com.apple.dock autohide-time-modifier -float 0

  2. nias enter or return.
  3. Nkag mus rau hauv Terminal tam sim no:

    Killall Dock

  4. nias enter or return.
  5. Txhawm rau kho qhov ncua sijhawm, nkag mus:

    defaults delete com.apple.dock autohide-time-modifier

  6. nias enter or return.
  7. Xaiv ib qho app los ntawm Dock nthuav qhia cov animation uas tuaj yeem muab tua nrog cov lus txib hauv qab no:

    defaults sau com.apple.dock launchanim -bool false

  8. nias enter or return.
  9. Txhawm rau kho cov animation, nkag mus:

    defaults sau com.apple.dock launchanim -bool true

  10. nias enter or return.

Sijhawm Machine

Cov lus qhia no yog ib zaug tweak txhawm rau txhawm rau txhawm rau pib lub Sijhawm Tshuab thaub qab. MacOS throttles Lub Sijhawm Tshuab los ntawm kev muab nws qhov tseem ceeb CPU tsawg. Qhov no yeej muaj txiaj ntsig zoo vim tias nws tiv thaiv Lub Sijhawm Tshuab los ntawm kev rub cov peev txheej CPU thiab ua rau koj lub Mac qhov kev ua tau zoo tag nrho.

Muaj ib qho kev zam, txawm li cas los xij. Thaum koj ua qhov pib Lub Sijhawm Tshuab thaub qab, qhov loj me ntawm qhov thaub qab tuaj yeem loj heev uas nws yuav siv sijhawm ntev los ua kom tiav, vim nws qhov tseem ceeb ntawm CPU yog throttled.

  1. Yog tias koj xav tau qhov pib Lub Sijhawm Tshuab thaub qab ua tiav raws sijhawm, koj tuaj yeem hloov qhov chaw kaw lus los ntawm kev nkag mus rau sysctl cov lus txib hauv qab no hauv Terminal:

    sudo sysctl debug.lowpri_throttle_enabled=0

  2. Tau koj tus password tus thawj tswj hwm.
  3. Pib koj lub sijhawm tshuab thaub qab.
  4. Koj tuaj yeem rov qab mus rau qhov kev teeb tsa throttled los ntawm kev rov pib dua koj Mac lossis nkag mus rau hauv qab no ntawm Terminal tam sim:

    sudo sysctl debug.lowpri_throttle_enabled=1

  5. Tau koj tus password tus thawj tswj hwm.

Pom zoo: