Kulemba kwa Shell - Maphunziro 02: Zonse Za Bash Shell

Shell Scripting - Maphunziro 02: Zonse Za Bash Shell

Kulemba kwa Shell - Maphunziro 02: Zonse Za Bash Shell

Kupitiliza maphunziro athu angapo Kulemba ma Shell, lero tikubweretsa yachiwiri (02 Tutorial) Zomwezo.

Ndipo kupatsidwa izi, poyamba tinayandikira Malingaliro atatu oyambira (Ma terminal, Consoles ndi Shell) zokhudzana ndi mutuwu, mu chachiwiri ichi, tiyang'ana makamaka pa kudziwa zonse zomwe zingatheke Bash Shell.

Kulemba kwa Shell - Maphunziro 01: Ma terminal, Consoles ndi Zipolopolo

Kulemba kwa Shell - Maphunziro 01: Ma terminal, Consoles ndi Zipolopolo

Ndipo musanayambe izi Maphunziro 02 pa "Shell Scripting", timalimbikitsa kufufuza zotsatirazi zokhudzana nazo, pamapeto powerenga izi lero:

Shell Scripting - Maphunziro 01: The Shell, Bash Shell ndi Scripts
Nkhani yowonjezera:
Kulemba kwa Shell - Maphunziro 01: Ma terminal, Consoles ndi Zipolopolo

za PowerShell
Nkhani yowonjezera:
PowerShell, ikani chipolopolo cha mzerewu pa Ubuntu 22.04

Maphunziro a Shell Scripting 02

Maphunziro a Shell Scripting 02

Kodi Bash Shell ndi chiyani?

Bash kapena Bash Shell ndi chipolopolo kapena lamulo chinenero womasulira analengedwa mwachindunji kwa Linux opaleshoni dongosolo. Chigoba, chomwe chimagwirizana kwambiri ndi chipolopolo choyambirira cha "sh", ndipo chimakhala ndi zofunikira kuchokera ku zipolopolo za Korn (ksh) ndi C (csh).

Kuphatikiza apo, cholinga chake ndi kukwaniritsa kukhazikitsidwa kogwirizana kwa muyezo "IEEE POSIX Shell ndi Zida", yomwenso ndi gawo la Kufotokozera kwa IEEE POSIX (IEEE Standard 1003.1). Chifukwa chake, pokwaniritsa cholinga ichi, chimaphatikiza kusintha kwa magwiridwe antchito molingana ndi "sh", pazogwiritsa ntchito molumikizana komanso pakukonza mapulogalamu.

Mfundo 10 Zofunika Kwambiri za Bash

  1. Zimakhazikitsidwa ndi Unix Shell ndipo ndizogwirizana ndi POSIX.
  2. Malamulo onse a Bourne Shell (sh) akupezeka ku Bash.
  3. Ndilo Shell yosasinthika, m'magawo ambiri a GNU/Linux.
  4. Ntchito yake yaikulu ndikutanthauzira malamulo olamulira kuchokera ku machitidwe opangira.
  5. Ndiwosavuta kunyamula, kotero imagwiranso ntchito pafupifupi mitundu yonse ya Unix ndi ma OS ena.
  6. Lamulo lake la mawu ndi mndandanda wa malangizo ozikidwa pa mawu a Bourne Shell.
  7. Idapangidwa ndikutulutsidwa ndi Brian Fox pa tsiku la June 8, 1989 ngati gawo la GNU Project.
  8. Imalola kupanga ndi kuyang'anira mafayilo a Script (Bash Scripts) omwe ntchito yake ndikusintha ntchito.
  9. Imapereka machitidwe opangidwa bwino, osinthika komanso opangidwa bwino kuti apange Malemba.
  10. Imakhala ndi zinthu monga kusintha kwa mzere wamalamulo, mbiri yakale ya kukula kopanda malire, kuwongolera ntchito, zipolopolo ndi ntchito zina, mindandanda yamitundu yopanda malire, pakati pa ena ambiri.

Zambiri za Bash Shell

Zambiri zofunika kwa Maphunziro a Shell Scripting 02

M'maphunziro otsatirawa, tilowa mozama pang'ono Mafayilo a Bash Script ndi zinthu zawo (magawo) y zothandiza pa luso la Scripting. Ndiye pitirirani nazo zitsanzo zothandiza zogwiritsa ntchito malamulo olamula (zosavuta komanso zovuta) ndi Bash ndikugwiritsa ntchito kwake mkati mwa Scripts.

Komabe, mukhoza kukumba mozama zambiri za Bash mu zotsatirazi maulalo aboma:

Dzina la Bash ndi chidule cha 'Bourne-Again Shell', pun pa Stephen Bourne, mlembi wa kholo lachindunji la Unix 'sh', yemwe adawonekera mu mtundu wachisanu ndi chiwiri wa Bash. Bell Labs Research for Unix " .

Pafupi ndi lua
Nkhani yowonjezera:
Lua, ikani chilankhulo champhamvu ichi pa Ubuntu
za chomenyera
Nkhani yowonjezera:
Racket, ikani chinenerochi mu Ubuntu

Chikwangwani chachidule cha positi

Chidule

Mwachidule, ndi izi Maphunziro 02 pa "Shell Scripting" ndi amene akudzawo, tiyembekeza kuti tidzapitiriza kupereka nawo gawoli maphunziro ogwiritsira ntchito GNU/Linux Terminalmakamaka a iwo ogwiritsa ntchito oyamba kumene m'mawu Machitidwe aulere ndi otseguka.

Ngati mumakonda zomwe zili, ndemanga ndikugawana. Ndipo kumbukirani, pitani ku chiyambi chathu «Website», kuwonjezera pa njira yovomerezeka ya uthengawo kuti mumve zambiri, maphunziro ndi zosintha za Linux.


Zomwe zili m'nkhaniyi zikutsatira mfundo zathu za malamulo okonzekera. Kuti mufotokoze cholakwika dinani Apa.

Khalani oyamba kuyankha

Siyani ndemanga yanu

Anu email sati lofalitsidwa.

*

*

  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.