Yadda ake gudanar da fayilolin .sh

yadda ake aiwatar da fayil din sh
Gano yadda za a gudanar da shi tare da tashar da danna sau biyu

da fayiloli tare da tsawo .sh sune fayilolin da suka ƙunshi rubutun, umarni a cikin yaren bash, wanda ke gudana akan Linux. SH wani harsashi ne na Linux wanda yake gaya wa kwamfuta abin da za ta yi.

Ta wata hanyar da zamu iya cewa zai zama kwatankwacin Windows .exe.

Akwai hanyoyi daban-daban don gudanar da shi. Zan yi bayani kan 2. Daya tare da tashar dayan kuma tare da zane mai zane, ma'ana, tare da linzamin kwamfuta, cewa idan ka latsa sau biyu ana kashe shi. Kuna iya ganin hakan a cikin bidiyo kuma a ƙasa mataki zuwa mataki ne ga waɗanda suka fi son koyarwar gargajiya.

Gudu .sh tare da zane-zane mai zane da linzamin kwamfuta

Idan ka fi son yin komai a latsa linzamin kwamfuta kuma zaka iya yi. Don sanya shi aiki kamar Windows, Danna sau biyu kan fayil din sai ya fara. Akwai matakai 2 waɗanda suke da sauri don daidaitawa.

Abu na farko shine zaɓi don gaya masa cewa fayil ɗin ana aiwatar dashi

Je zuwa inda fayil ɗin yake sannan danna shi tare da maɓallin dama. Za'a nuna menu kuma zamu bayar kaddarorin

Biyan kuɗi zuwa jerin aikawasiku

dama danna fayil din .sh

Zaka zabi cak na Bada file yayi aiki. ta wannan hanyar muke ba da izinin aiwatarwa

ba da izinin aiwatarwa ga fayil ɗin

Zamu iya cin gajiyar gyara shafin Bude tare da, wanda shine shirin da muka zaɓa azaman tsoho na Aprilos, idan har maimakon aiwatar dasu muna so mu buɗe su mu ga abin da suka ƙunsa. Ina amfani da Gedit ko Visual Studio Code

To dole ne mu saita mai sarrafa fayil

A ƙarshe a cikin mai sarrafa fayil je zuwa menu kuma zaɓi abubuwan da ake so da tab Halayyar kuma a can zaka iya gaya masa abin da kake son yi da fayil ɗin.

fifikon mai sarrafa fayil

Akwai zaɓuɓɓuka da yawa. Bude fayil din, gudanar da shi ko tambayar mu. Na zabi in tambaye mu. Kuma haka za'a nuna mana.

run sh tare da dannawa sau biyu

Gudu .sh tare da m

Muna buɗe tashar, tare da Ctrl + Alt + T, maɓallin farawa da rubuta m ko tare da gunkin harsashi wanda koyaushe ina da shi a cikin mai gabatar da Ubuntu, zo, a gefen hagu na hagu.

Hanyar gudanar da shi shine zuwa kundin adireshi inda fayil ɗin yake. kaga muna da fayil ok.sh a cikin / rubutun / babban fayil

Mun shigar da rubutun tare da (dole ne ka tafi hanyar da kake dashi)

rubutun cd

Idan wannan shine karo na farko da muke gudanar da shi, dole ne mu bada izinin fayil

sudo chmod + x ok.sh

Kuma a sa'an nan muna gudanar da shi

./ok.sh

Kuma voila anan shine jerin

run sh a cikin m

A yanayinmu, "Ok" yana fitowa saboda mun shiga abin da wannan rubutun yake yi.

Abu mafi mahimmanci kuma abin da mutane suka fi yawan kuskure shine a cikin hanyar, a cikin hanyar, cikin rashin samun damar babban fayil ɗin inda fayil ɗin da za'a aiwatar shine.

Idan kuna da wasu tambayoyi, bar sharhi.

Ifarin idan kuna son koyo

Wasu ƙananan abubuwa idan kuna son koyo. Akwai ƙarin umarni don gudanar da .sh da zaku iya yi

./file.sh da. yana nuna cewa fayil ɗin yana cikin kundin adireshi na yanzu, idan baza ku iya tafiyar dashi tare da hanyar zuwa hanyar fayil ba / to / file.sh

Wani umarni don gudana ban da ./sh fayil shine

sh fayil sh

Deja un comentario