PowerShell, ikani chipolopolo cha mzerewu pa Ubuntu 22.04

za PowerShell

M'nkhani yotsatirayi tiwona momwe tingakhazikitsire PowerShell pa Ubuntu 22.04. Izi ndi kasamalidwe kasamalidwe ndi nsanja yodzipangira ntchito. Amakhala ndi chipolopolo cha Lamulo lolamula cross-platform ndi chinenero cholembera chogwirizana.

Monga tanenera, izi zonse ndi chipolopolo cha mzere wolamula ndi chilankhulo cholembera chokhala ndi zida zopitilira 130 zotchedwa cmdlets. Izi zimatsata machitidwe osasinthika a mayina ndi ma syntax, ndipo amatha kukulitsidwa ndi ma cmdlets.

Mphamvu (poyamba ankatchedwa Windows PowerShell) ndi mawonekedwe a console (CLI), ndi kuthekera kolemba ndikuphatikiza malamulo kudzera mwa malangizo. Mawonekedwe a console awa adapangidwa kuti azigwiritsidwa ntchito ndi oyang'anira makina ndi cholinga chodzipangira ntchito kapena kuzipanga m'njira yoyendetsedwa bwino. PowerShell ndi chipolopolo chopangidwa ndi chinthu.

PowerShell ikugwira ntchito

M'mbuyomu, Microsoft Windows PowerShell inali mapulogalamu a Windows okha, koma mu 2016 Madivelopa adapanga kukhala gwero lotseguka komanso nsanja. Ichi ndichifukwa chake lero kutha kugwiritsa ntchito ku Ubuntu ndikosavuta. Ngakhale mutayesa njira zosiyanasiyana zoyikapo zomwe zilipo ku Ubuntu 22.04, imodzi yokha yomwe tikuwona pansipa yagwira ntchito.

Ikani Microsoft PowerShell pa Ubuntu 22.04 LTS

PowerShell tsopano ikuthandizidwa ndi magawo ambiri a Gnu/Linux. Maphukusi onse aposachedwa a PowerShell a Gnu/Linux akupezeka pa GitHub.

Mosakayikira njira yosavuta yoyika PowerShell ku Ubuntu ndikugwiritsa ntchito phukusi loyang'anira chithunzithunzi, ndi kuti lero, monga ndimanenera, ndiyo njira yokhayo imene ndatha kuchitira Ikani PowerShell pa Ubuntu 22.04. Woyang'anira phukusi wapadziko lonse lapansi amathandizidwa mwachisawawa mudongosolo, chifukwa chake tidzangotsegula terminal (Ctrl + Alt + T) ndikulembamo:

kukhazikitsa powershell monga chithunzithunzi

sudo snap install powershell --classic

Pambuyo pokonza, tingathe yambitsani pulogalamu kuyang'ana choyambitsa chanu mudongosolo lathu.

pulogalamu yoyambitsa

Sulani

Para chotsani phukusi lachidule zomwe tangoyika kumene, mu terminal (Ctrl + Alt + T) muyenera kugwiritsa ntchito lamulo:

kuchotsa Powershell chithunzithunzi

sudo snap remove powershell

Ndi ogwiritsa PowerShell mutha kugwiritsa ntchito malamulo osavuta (kusonyeza nthawi yamakono) ndi mapulogalamu ovuta kwambiri. Ndikothekanso kugwiritsa ntchito kuphatikiza malamulo angapo ("mapaipi"). Kuti mudziwe zambiri za pulogalamuyi, ogwiritsa ntchito akhoza kupita ku tsamba la projekiti.


Khalani oyamba kuyankha

Siyani ndemanga yanu

Anu email sati lofalitsidwa. Amafuna minda amalembedwa ndi *

*

*

  1. Wotsogolera pazosankhazi: Miguel Ángel Gatón
  2. Cholinga cha deta: Control SPAM, kasamalidwe ka ndemanga.
  3. Kukhazikitsa: Kuvomereza kwanu
  4. Kulumikizana kwa zomwe zafotokozedwazo: Zomwezo siziziwululidwa kwa anthu ena kupatula pakukakamizidwa mwalamulo.
  5. Zosunga: Zosungidwa ndi Occentus Networks (EU)
  6. Ufulu: Nthawi iliyonse mutha kuchepetsa, kuchira ndikuchotsa zidziwitso zanu.