PowerShell vs Command Prompt: Faa'iidooyinka iyo khasaaraha

Terminalka madow (ama buluuga) ee leh cursor birqaya ayaa u ah sawirka caadiga ah qof kasta oo isticmaalaya nidaamka Linux . Si kastaba ha ahaatee, Microsoft Windows , si kastaba ha ahaatee, uma baahnid inaad mar dambe la shaqeyso khadka taliska. Haddi(Whether) aad ku rakibto abka cusub ama habaynta nidaamkaaga hawlgalka, waxa aad ku samayn kartaa wax walba iyada oo loo marayo interface user graphic ( GUI ).

Weli waxaa jira waqti iyo meel loogu talagalay amarrada terminaalka ee Windows OS , in kastoo. Waxa kaliya oo aad dejin kartaa waxyaabaha sida amarrada dufcadaha ama hawlo toos ah adiga oo isticmaalaya qolofka taliska.

Marka, waa kuwee aaladda khadka taliska ka wanaagsan, Command Prompt ama Powershell ? Ma jirtaa sabab loo isticmaalo labadaba? Waa maxay faa'iidada iyo khasaaraha mid kasta? Halkan waxaa ah dulmar dhammaystiran.

Dakhliga Amarka Windows -MS-DOS(Command Prompt—MS-DOS) ee Nidaamyada Casriga (Modern) ah(Systems)

Waagii madoobaa ee terminaalka madow iyo amarrada la qoray, Microsoft waxay caan ku noqotay nidaamka hawlgalka ee MS-DOS . Xitaa markii shirkaddu ay ugu dambeyntii ka gudubtay Interface Line Line(Command Line Interface) ( CLI ), Microsoft waxay ku dhistay OS-ka sare ee MS-DOS . Isticmaalayaashu wali waxay heli karaan shaqeyntooda iyagoo isticmaalaya MS-DOS Prompt , oo markii dambe loo beddelay kaliya Command Prompt .

Dhammaan noocyada nidaamka hawlgalka Windows waxaa ka mid ah (Windows)Command Prompt , haddii ay tahay Windows NT , Windows 7 , ama Windows 10. Ku socodsiinta Command Prompt waxay furaysaa daaqad madow oo terminal leh oo leh cursor biligleynaya oo diyaar u ah inuu aqbalo amarrada. Tusaha firfircoon ee caadiga ah waa galka isticmaale ee hadda, in kastoo aad taas si fudud ugu beddeli karto amarka CD-ga.

Waxaad isticmaali kartaa amarro kala duwan(variety of commands) si aad u qabato hawlo waxtar leh, laga bilaabo xaqiijinta daacadnimada faylasha nidaamkaaga(integrity of your system files) si aad u hubiso darawalka adag(checking the hard drive) ee khaladaadka macquulka ah. Xitaa waxaad qaabayn kartaa darawal(format a drive) ama qarin kartaa faylasha(hide files) adoo isticmaalaya Command Prompt . Gelida(Entering) " DIR " waxay taxaysaa waxa ku jira hagaha firfircoon, taasoo kuu ogolaanaysa inaad gasho ama dib u magacawdo faylal ama faylal kasta.

Dhibaatada kaliya ee degdega ah ee amarka waa in ay tahay kaliya turjumaan. In kasta oo aad isticmaali karto feylasha dufcada si aad dib ugu isticmaasho ururinta amarrada, meelna uma dhowa sida xoog badan sida qolof habboon sida Bash . Waxaa intaa dheer, siideyn kasta oo cusub oo Windows ah ayaa GUI ka sii fogaynaysa matalaadda khadka-taliyaha, taasoo la micno ah inaadan dhab ahaantii xakameyn karin wax badan adoo isticmaalaya Command Prompt .

Sida loo isticmaalo CMD

Ku Bilaabida(Getting started) Amarka Talada(Command Prompt) waa mid fudud. Uma baahnid inaad wax rakibto ama habayso - kaliya ka raadi CMD gudaha Menu-ga Bilawga(Start Menu) si aad u hesho abka. Taasi waxay si toos ah u furi doontaa daaqad cusub cmd.exe oo diyaar u ah in lagu qoro. Amarrada qaar, waa inaad furto CMD adoo isticmaalaya ogolaanshaha maamulaha.

Soojeedinta Amarka: Faa'iidooyinka iyo khasaarooyinka

Faa'iidooyinka

  • Way fududahay in la barto oo la isticmaalo.
  • Amarro kala duwan oo waxtar leh sida chkdsk ama scannow.
  • Raadka nidaamka hooseeya.

Qasaarooyinka

  • Awaamiir xaddidan.
  • Way adag tahay in la qoro qoraallo dib loo isticmaali karo.
  • Ma dajin karo hawlo toos ah
  • Uma lihi khadka taliska ee dhammaan falalka GUI .

Windows Powershell-Qaybta Qoraalka ee Microsoft(Scripting Shell)

Isticmaalayaasha Linux(Linux) had iyo jeer way ka niyad jabeen Amarka Talada(Command Prompt) . Ka dib oo dhan, amarada CMD waxay ku xaddidan yihiin baaxadooda oo aan loogu talagalin otomaatiga. Maamulayaasha nidaamka(System) ee maamulaya daraasiin kombuyuutar(PCs) ah waxay u baahan yihiin jawi qoraal ah oo loo isticmaali karo in lagu dejiyo hawlo toos ah, sida Bash .

Taasina waa meesha ay PowerShell ka soo gasho. Luuqad qoraal ah oo dhammaystiran oo la dhisay iyadoo la adeegsanayo qaabka NET , waxaad isticmaali kartaa Windows PowerShell si aad u habayso inta badan hawlaha maamulka ee server-ka Windows ama kombuyuutarka guriga. Si loo caddeeyo, hadda sidoo kale waa suurtagal in si toos ah loogu socodsiiyo Bash (run Bash directly)Windows 10 ama Windows 11 sidoo kale, laakiin PowerShell waxay leedahay is-dhexgalka ka wanaagsan.

PowerShell waxay ku shaqeysaa fasalo NET gaar ah oo loo yaqaan cmdlets. PowerShell cmdlets waxay qabtaan hawlaha maamulka nidaamka iyagoo la xiriiraya adeeg bixiyayaasha sida Diiwaanka(Registry) ama nidaamka faylka. Habkan qaab-dhismeedka ah wuxuu u oggolaanayaa qoraallada PowerShell inay noqdaan kuwo aad loo fidin karo oo la taaban karo.(PowerShell)

Utility wuxuu asal ahaan u shaqeeyaa sidii luqad barnaamijeed-furan oo isaga u gaar ah, oo leh eray-bixin ka qani ah marka loo eego fara badan oo ah amarada DOS ee dhaxalka u ah. (DOS)Qoraallada isku dhafan waxay xakameyn karaan ku dhawaad ​​dhinac kasta oo kombiyuutarka ah, taasoo ka dhigaysa qalab aad u fiican oo loogu talagalay maamulka nidaamka. Isticmaalayaasha shirkaduhu(Enterprise) waxay isticmaali karaan PowerShell si ay ula xiriiraan WMI ( Qalabka Maareynta Windows(Windows Management Instrumentation) ) si ay ugu maamulaan dhammaan server-yada qoraallada.

Sida loo isticmaalo PowerShell

Si ka duwan Command Prompt , Windows PowerShell waa luqad qoraal ah oo dhammaystiran. Tani waxay ka dhigan tahay inaadan kaliya furin daaqad terminal oo aad geliso amarrada laakiin ku qor qoraallada adoo isticmaalaya syntax.

Tan, waxaad haysataa laba ikhtiyaar. PowerShell ISE(PowerShell ISE) ( Integrated Scripting Environment ) waa app aad u fiican oo lagu tijaabiyo qoraalada PowerShell , maadaama ay u ogolaato qorista iyo ciribtirka koodka hal app. Laakiin Daaqadaha(Windows) ayaa joojiyay horumarka ISE -da oo dhawaan waa ay joojin doontaa.

Waxaad hadda ku qori kartaa xarfaha PowerShell(PowerShell) gudaha Visual Studio adoo isticmaalaya kordhin rasmi ah. Tani waa hab ka wanaagsan haddii aad qorsheyneyso inaad qorto qoraallo adag oo loogu talagalay automation iyo nidaamka maamulka.

PowerShell: Faa'iidooyinka iyo khasaaraha

Faa'iidooyinka

  • Si otomaatig ah u samayn kara inta badan hawlaha menu ee GUI.
  • Si heer sare ah(Highly) loo faafin karo iyada oo loo marayo ku-darka qolo saddexaad.
  • Naqshadaynta qaab-dhismeedka ayaa ka dhigaysa qoraallada kuwo la beddeli karo oo dib loo isticmaali karo.
  • La xidhiidhi kara qaybaha nidaamka sida Diiwaanka(Registry) .
  • Loo adeegsan karo WMI si loo maareeyo nidaamyada ganacsiga.

Qasaarooyinka

  • Way adag tahay in la barto bilowga.
  • Aad u hadal badan hawlaha fudud.

Soojeedinta Amarka PowerShell VS(PowerShell VS Command Prompt) : keebaa ugu fiican?

Sida waxyaallaha badankooda, awood badanu mar walba ma roona. Mararka qaarkood(Sometimes) fudaydnimadu waa wanaag lafteeda, gaar ahaan haddii astaamaha horumarsan aanay daruuri kuu ahayn.

Isla sidaas oo kale ayaa la odhan karaa marka la barbar dhigo Command Prompt iyo PowerShell . Warqadda, PowerShell waa guuleystaha cad, oo leh qaab-dhismeed aad u adag iyo shaqeyn ballaaran. Waxaad u isticmaali kartaa inaad si otomaatig ah u sameyso inta badan hawlaha maamulka sida qolofka bash ee ku jira Linux distros.

Laakiin inta badan isticmaalayaasha uma baahna heerkaas wax ka beddelka ama xakamaynta. Isticmaalaha guriga ee raadinaya inuu fuliyo hawlaha aasaasiga ah ee khadka taliska, CMD waa qalab aad u fudud in la isticmaalo. Ereyga ' Command Prompt ' waa mid aad u aasaasi ah wuxuuna bixiyaa aaladaha muhiimka ah sida chkdsk iyo SFC oo ah amarro hal-line ah.

Utility-line-ka ugu fiican ee adiga ayaa ah midka ku hela shaqadaada. Haddii aad rabto deegaan qoraal u eg oo Linux ah si aad u maamusho server-yada ama kombuyuutarrada shabakadaha leh, PowerShell waa waxa aad u baahan tahay. Dhanka kale, haddii dhammaan waxa aad raadineyso ay tahay hab aad ku fulin karto amarrada aasaasiga ah si aad u hagaajiso darawalkaaga adag(repair your hard drive) ama aad u hesho faylal qarsoon, Baahida Amarka(Command Prompt) ayaa ah habka aad ku socotid.



About the author

Waxaan ahay horumariye mareegaha iyo injineer maqal ah oo leh khibrad 10 sano ka badan. Waxaan ku takhasusay horumarinta barnaamijyada Chrome/Web Audio, iyo sidoo kale codsiyada Discord. Xirfadayda labada dhinacba waxay ii ogolaataa inaan abuuro alaab tayo leh oo ay fududahay in la isticmaalo lana ilaaliyo. Intaa waxaa dheer, waxaan ahay isticmaale khibrad leh oo Discord waxaanan ka shaqaynayay abka in ka badan laba sano hadda.



Related posts