A cikin labarin mai zuwa za mu kalli yadda za mu iya shigar da PowerShell akan Ubuntu 22.04. Wannan shine tsarin gudanarwa da dandamali na sarrafa aiki. Ya ƙunshi harsashi na Layin umarni giciye-dandamali da harshe mai alaƙa da rubutun.
Kamar yadda muka ce, wannan shi ne harsashin layin umarni da kuma yaren rubutu tare da abubuwan amfani da layin umarni sama da 130 da ake kira cmdlets. Waɗannan suna bin daidaitattun sunaye da ƙa'idodin daidaitawa, kuma ana iya ƙara su tare da cmdlets na al'ada.
PowerShell (asali ake kira Windows PowerShell) shi ne na'ura mai ba da hanya tsakanin hanyoyin sadarwa (console interface).CLI), tare da yuwuwar rubutawa da haɗa umarni ta hanyar umarni. An ƙirƙira wannan ƙirar wasan bidiyo don amfani da masu gudanar da tsarin don manufar sarrafa ayyuka ko aiwatar da su ta hanyar da ta fi dacewa. PowerShell wani harsashi ne mai ma'ana.
A baya can, Microsoft Windows PowerShell software ce kawai don Windows, amma a 2016 da developers sanya shi bude tushen da giciye-dandamali. Shi ya sa a yau samun damar amfani da shi a cikin Ubuntu abu ne mai sauqi. Ko da yake bayan gwada zaɓuɓɓukan shigarwa daban-daban da ke cikin Ubuntu 22.04, wanda za mu gani a ƙasa kawai ya yi aiki.
Abun cikin labarin
Shigar da Microsoft PowerShell akan Ubuntu 22.04 LTS
PowerShell yanzu ana samun goyan bayan mafi yawan rabawa na Gnu/Linux. Duk sabbin fakitin PowerShell na Gnu/Linux ana samun su a GitHub.
Ba tare da shakka ba, hanya mafi sauƙi don shigar da PowerShell akan Ubuntu shine ta amfani da mai sarrafa kunshin. karye, kuma yau, kamar yadda nake faɗa, ita ce kawai hanyar da na iya Sanya PowerShell akan Ubuntu 22.04. An kunna wannan mai sarrafa fakitin na duniya ta tsohuwa a cikin tsarin, don haka kawai za mu buɗe tasha (Ctrl+Alt+T) mu rubuta a ciki:
sudo snap install powershell --classic
Bayan kafuwa, zamu iya fara shirin neman mai ƙaddamar da ku a cikin tsarin mu.
Uninstall
para cire kunshin snap wanda muka shigar yanzu, a cikin tashar (Ctrl + Alt + T) kawai dole ne ku yi amfani da umarnin:
sudo snap remove powershell
Tare da masu amfani da PowerShell na iya amfani da umarni masu sauƙi (don nuna halin yanzu) da aikace-aikace masu rikitarwa da yawa. Hakanan yana yiwuwa a yi amfani da haɗin gwiwar umarni da yawa ("bututun mai"). Don ƙarin bayani game da wannan shirin, masu amfani za su iya zuwa aikin yanar gizo.