Sida loo arko taariikhda amarka PowerShell ee Windows 10

Windows PowerShell waxay leedahay qaab- dhismeed Taariikhda(History) oo xasuusata dhammaan amarradii aad fulisay markii aad isticmaalaysay. In kasta oo ay tahay in la xasuusto Taariikhda(History) fadhiga firfircoon, waxaan arkaa in ay sii hayso wax ka badan intaas. Maqaalkan, waxaan ku tusi doonaa sida aad u arki karto taariikhda(History) amarka PowerShell oo aad u isticmaasho si caqli-gal ah.

Eeg taariikhda amarka PowerShell

Sida loo arko Taariikhda Command PowerShell(PowerShell Command History)

Faa'iidada ugu muhiimsan ee haysashada astaanta Taariikhdu waa inaadan mar kale qorin si aad u fuliso amar gaar ah oo aad mar hore fulisay. Si kastaba ha ahaatee, ku soo noqnoqda iyada oo loo marayo boqollaal amar maaha wax badan oo caawin ah. Ka warran ka dhex raadinta iyaga ama maamula amar gaar ah oo aad qayb ahaan xasuusato? Raac hababkan.

  1. Habka Kiiboodhka
  2. Ka raadi horay(Search Forward) ama gadaal u soco Taariikhda (PowerShell History)PowerShell(Backward)
  3. Daawo(View) dhamaan Taariikhda fadhigan
  4. Ka wac(Invoke) amar gaar ah oo ka yimid taliska PowerShell History
  5. Ka dhex raadi Taariikhda

Dhammaadkii, waxaanu sidoo kale sharaxnay sida aad u nadiifin karto, u dhoofin karto, oo aad u soo dejisan lahayd taariikhda (History)taliska PowerShell  . Aad u anfacaya haddii aad u baahan tahay inaad fuliso amarro isku mid ah marar badan.

1] Habka Kiiboodhka

Ka raadi adigoo isticmaalaya F8 gudaha PowerShell si aad u baadho

Waan hubaa inaad isticmaashay Command Prompt mar haddii aad muddo isticmaashay Windows . Haddii aad isticmaasho furayaasha fallaadha kor iyo hoos, waxaad dib ugu noqon kartaa amarada la fuliyay. Isla sidaas oo kale ayaa quseysa PowerShell sidoo kale. Laakiin halkan waa qalloocan. Haddii aad qayb ahaan amar xasuusato, halkan waa sida loo raadiyo.

  • Ku qor(Type) qayb ka mid ah amarka aad xasuusato
  • Riix F8(Press F8) , oo sii wad ilaa aad ka hesho.
  • Erayga goobista waxa lagu iftiimin doonaa cagaar-folescent, oo ay ku xigto amarka intiisa kale.

Ciladda kaliya ayaa ah in ereyga raadinta uu noqdo bilowga amarka.

2] Horay(Search Forward) ama Dib u(Backward) raadi Taariikhda(History)

PowerShell hore u raadinta

Haddii aad rabto in aad horay ama gadaal u raadiso Taariikhda(History) , markaas waxaad isticmaali kartaa Ctrl + R iyo Ctrl + S. Kan hore wuxuu kuu ogolaanayaa inaad dib u raadiso Taariikhda(History) halka ka dambe uu hore u socdo. Isla marka aad isticmaasho furaha gaaban ee kiiboodhka, waa in aad heshaa qayb ka mid ah xagga hoose (bck-i-search ama fwd-i-search). Ku qor waxaad rabto inaad raadiso, xitaa haddii qoraalku ka tirsan yahay meel u dhaxaysa amarka, wuu raadin doonaa. Aad ayey uga wanaagsan tahay marka loo eego habka F8 ee aan kor ku isticmaalnay.

3] Arag(View) dhammaan amarka PowerShell Taariikhda(History) casharkan

PowerShell wuxuu amraa Taariikhda

Ku qor Taariikhda(Type History) , oo taabo furaha Gelida(Enter) . Waa inaad awood u leedahay inaad aragto dhammaan amarrada aad fulisay fadhiga hadda. Markaad arki karto amarrada lagu fuliyay fadhigii hore adoo isticmaalaya furayaasha fallaadha, Taariikhdu(History) ma lahaan doonto. Haddii aad riixdo furaha "H"(key “H”) oo aad ku dhufo geli, waxay muujin doontaa taariikhda(History) amarrada. U tixgeli sida soo-gaabnida  amarka Taariikhda(History) .

4] Ka wac(Invoke) amar gaar ah Taariikhda

Haddii aad dareento, sawirka sare wuxuu leeyahay aqoonsi ku xiga amar kasta. Haddii aad rabto inaad ka fuliso liiska hal amar oo gaar ah, waxaad u baahan tahay inaad isticmaasho Soo-qaadista-History.(Invoke-History.)

  • Ogow aqoonsiga amarka aad rabto inaadfuliso
  • Nooca Invoke-History <ID>. Ku beddel <ID> lambarka saxda ah
  • Riix (Press)Furaha Gelida(Enter Key) , oo waxay fulin doontaa amarkaas taariikhda(History) .

5] Ka raadi taariikhda dhexdeeda

Dooro Amarka Hel History Command PowerShell

Habka ugu fudud ee lagu raadin karo gudaha Taariikhda(History) amarrada waa in la isticmaalo habka -String Select(Select-String) on History Output .

  • Ku(Get) qor kuwan soo socda, oo ku beddel ereyga aad rabto inaad raadiso
  • Hel-Taariikh | Xulo- Xadhig -Qaabka "Hel."
  • Waxay daaha ka qaadi doontaa dhammaan amarrada ku habboon amarada raadinta.

Tan iyo markii aad heshay aqoonsiga, waxaad isticmaali kartaa amarka Taariikhda wac(Invoke History) si aad isla markaaba ufuliso.

Nadiifi, Dhoofinta(Export) , oo Soo rar Taariikhda PowerShell(Import PowerShell History)

Si aad u tirtirto dhammaan amarrada Taariikhda(History) , waxa kaliya ee aad u baahan tahay waa inaad fulisaa amarka " Clear-History ." Ogow xitaa ka dib markaad tan sameyso, waxaad wali gali kartaa amarka adigoo isticmaalaya furayaasha kor iyo hoosba.

Si aad u dhoofiso dhammaan amarrada(export all the commands) , waxaad isticmaali kartaa  Dhoofinta-Clixml ama Dhoofinta-CSV( Export-Clixml or  Export-CSV) . Waa kan amarka tusaalaha

Get-History | Export-Clixml -Path <Path>\PSHistorycommands.xml

Get-History | Export-Csv -Path <Path>\PSHistorycommands.csv

Si aad amarradan ugu soo celiso fadhi kale ama cusub( import these commands back to another or new session) , isticmaal amarkan soo socda.

Add-History -InputObject (Import-Clixml -Path <Path>\PSHistorycommands.xml)

Add-History -InputObject (Import-Csv -Path <Path>\PSHistorycommands.csv)

Waxaad furi kartaa faylkan CSV(CSV) ama XML wakhti kasta si aad u aragto amarka PowerShell Taariikhda(History) isla markaaba. Tani waxay si qurux badan u soo koobeysaa wax kasta oo ku xeeran Taariikhda Tariikhda Talada PowerShell(PowerShell Command History) , iyo sida aad dib ugu isticmaali karto adigoo isticmaalaya cumbers ama adoo baadhaya ama dib ugu soo celinaya maalinta xigta.



About the author

Waxaan ahay mid aad loogu taliyay Windows 10 khabiir, waxaanan ku takhasusay inaan dadka ka caawiyo inay shakhsiyeeyaan muuqaalkooda kumbuyuutarka oo ay ka dhigaan qalabkooda Xafiis kuwo saaxiibtinimo leh. Waxaan u isticmaalaa xirfadahayga si aan uga caawiyo dadka kale siyaabaha ugu waxtarka badan ee lagula shaqeeyo Microsoft Office, oo ay ku jiraan sida loo qaabeeyo qoraalka iyo sawirada daabacaadda internetka, sida loo abuuro mawduucyo gaar ah oo loogu talagalay Outlook, iyo xitaa sida loo habeeyo muuqaalka shaqada ee miiska kombuyuutar.



Related posts