Uqhuba njani .sh iifayile

uyenza njani ifayile ye-sh
Fumanisa indlela yokuyiqhuba kunye nesiphelo kunye nokucofa kabini

Los iifayile ngolwandiso .sh ziifayile eziqulethe izikripthi, imiyalelo ngolwimi lwe-bash, eqhuba kwiLinux. SH liqokobhe leLinux elixelela ikhompyuter ukuba yenzeni.

Ngendlela esinokuthi ngayo inokuthelekiswa neWindows .exe.

Kukho iindlela ezahlukeneyo zokuyiqhuba. Ndiza kuchaza i-2. Ungayibona kwividiyo kwaye apha ngezantsi linyathelo ngenyathelo kwabo bakhetha izifundo zemveli.

Qalisa

Ukuba ukhetha ukwenza yonke into ngonqakrazo lwe mouse, ungayenza kwakhona. Ukuyenza isebenze kwiWindows, cofa kabini kwifayile kwaye iqale. Kukho amanyathelo ama-2 akhawulezayo ukumisela.

Into yokuqala yokuqala kukuyixelela ukuba ifayile iyaphunyezwa

Yiya apho ikhoyo ifayile kwaye ucofe kuyo ngeqhosha lasekunene. Imenyu iya kubonakala kwaye sinike iipropati

cofa ekunene kwifayile ye .sh

Ukhethe itsheki ye Vumela ifayile ukuba iqhubeke. Ngale ndlela sinika iimvume zokwenza

Nika imvume yokuphumeza kwifayile

Singathatha ithuba lokutshintsha i-tab Vula nge, eyinkqubo esikhetha ukuba ibe yeyokungagqibeki ngo-Epreli, kwimeko yokubaphumeza sifuna ukubavula kwaye sibone ukuba ziqulathe ntoni. Ndisebenzisa iGedit okanye iKhowudi yeVenkile yeVidiyo

Ke kuya kufuneka simisele umphathi wefayile

Okokugqibela kumphathi wefayile yiya kwimenyu kwaye ukhethe ukhetho kunye ne-tab Ukuziphatha kwaye apho unokuyixela into ofuna ukuyenza ngefayile.

Ukukhetha umphathi wefayile

Kukho iindlela ezininzi. Vula ifayile, uyiqhube okanye usibuze. Ndikhethe ukusibuza. Kwaye kuya kuboniswa kuthi.

baleka sh ngokucofa kabini

Qalisa .sh ngesiphelo

Sivula i-terminal, nge-Ctrl + Alt + T, ukuqala kwesitshixo kunye nokubhala i-terminal okanye i-icon yegobolondo endihlala ndinayo kwisiqalisi se-Ubuntu, yiza, kwicala lasekhohlo.

Indlela yokuyiqhuba kukuya kulawulo apho ikhoyo ifayile. cinga ukuba sinefayile ye-ok.sh kwi / iskripthi / ifolda

Sifaka izikripthi kunye (kuya kufuneka uye kwindlela onayo)

izikripthi ze-cd

Ukuba eli lixesha lokuqala esiqhuba ngalo, kufuneka sinike iifayile iimvume

Sudo chmod + x ok.sh

Kwaye emva koko siyabaleka

./ok.sh

Kwaye u-voila nolu landelelwano

baleka sh kwisiphelo sendlela

Kwimeko yethu, u "Ok" uyaphuma kuba singenise okwenziwa sisikripthi.

Eyona nto ibaluleke kakhulu kwaye yintoni abantu abayenza kwezona mpazamo zisendleleni, emendweni, ekufikeleleni kwifolda apho ifayile kufuneka yenziwe.

Ukuba unayo nayiphi na imibuzo, shiya uluvo.

Yongeza ukuba uyafuna ukufunda

Izinto ezincinci ukuba ufuna ukufunda. Kukho imiyalelo engaphezulu yokuqhuba i-.sh ongayenza

./file.sh ifayile ye-. ibonisa ukuba ifayile ikwisikhombisi sangoku, ukuba awukwazi ukuyiqhuba ngendlela eya kwindlela yefayile / kwi / file.sh

Omnye umyalelo wokuqhuba ukongeza kwi ./sh ifayile yile

sh ifayile sh

Shiya amazwana