Sida loo socodsiiyo faylka .sh ama Shell Script gudaha Windows 11/10
Faylasha Shell Scripts(Shell Scripts) ama .SH( .SH files) waxay la mid yihiin faylalka dufcaddii Windows kuwaas oo lagu fulin karo Linux ama Unix . Waa suurtogal in lagu socodsiiyo faylka .sh ama Shell Script gudaha Windows 10 iyadoo la isticmaalayo Windows(Windows Subsystem) -ka ee Linux . Maqaalkan, waxaan ku tusi doonaa sida loo socodsiiyo faylka Shell Script gudaha (Shell Script)Windows 11/10 .
Sida loo socodsiiyo faylka .sh ama Shell Script gudaha Windows 11/10
Bash waa qolof Unix iyo luqadda taliska kaas oo socodsiin kara faylasha Shell Script . Uma baahnid inaad rakibto Ubuntu ama Linux Distros kale ilaa qoraalladaadu u baahan yihiin taageerada kernel-ka dhabta ah ee Linux . Waxaan wadaagi doonaa labada hab.
- Ku fuli faylka Shell Script adoo isticmaalaya WSL
- Ku fuli qoraalka Shell(Execute Shell Script) adoo isticmaalaya Ubuntu Windows 10
1] Ku fuli faylka qoraalka Shell adoo isticmaalaya (Execute Shell Script)WSL
Ku rakib WSL ama Windows-ka nidaam hoosaadka Linux(Install WSL or Windows Subsystem for Linux)
Tag Settings > Update & Security > Loogu talagalay Horumariyeyaasha(Developers) . Hubi badhanka Raadiyaha Habka Horumariyaha (Developer Mode)Oo raadi " Windows Features ", dooro " Daar ama dami sifooyinka Windows(Turn Windows features on or off) ".
Guji si aad u hesho WSL , calaamadee sanduuqa, ka dibna ku dheji . Marka la sameeyo, mid waa inuu dib u bilaabo si uu u dhammeeyo rakibidda isbeddellada la codsaday. Hadda dib u bilow(Press Restart) hadda. BASH waxa laga heli doonaa Command Prompt iyo PowerShell .
Fulin faylasha qoraalka Shell(Execute Shell Script Files)
- Fur Command Prompt oo u gudub galka meesha uu ka jiro faylka qoraalka.
- Ku qor Bash script-filename.sh oo ku dhufo furaha geli
- Waxay fulin doontaa qoraalka, waxayna kuxirantahay faylka, waa inaad aragto wax soo saar.
Goobta Linux , waxaad inta badan isticmaashaa SH, laakiin halkan waxaad u baahan tahay inaad isticmaasho BASH . Taasi waxay tidhi, BASH gudaha Windows waxay leedahay xaddidaadkeeda, markaa haddii aad rabto inaad ku fuliso deegaanka Linux , waxaad u baahan tahay inaad ku rakibto Ubuntu ama wax la mid ah.
2] Ku fuli qoraalka Shell(Execute Shell Script) adoo isticmaalaya Ubuntu Windows 10
Hubi inaad ku rakibtay Ubuntu ama wixii kale ee Linux distros ah . Ubuntu wuxuu ku dhejin doonaa ama ka dhigi doonaa dhammaan hagahaaga Windows oo laga heli karo hoosta /mntmnt(directories) . Markaa C drive waxa laga heli karaa /mnt/C . Markaa haddii desktop-ka laga heli karo /mnt/c/users/<username>/desktop .
Haddaba raac talaabooyinkan
- Ku qor Bash in Run Quick, oo waxay bilaabi doontaa degdegga distro.
- U gudub galka adiga oo isticmaalaya amarka "cd" oo aad geliso galka meesha qoraallada laga heli karo.
- Ku qor "sh script.sh" oo ku dhufo geli.
Waxay fulin doontaa qoraalka, iyo haddii ay ku tiirsan yihiin mid ka mid ah sifooyinka aasaasiga ah ee Linux .
Maadaama Linux hadda laga heli karo Windows , uma baahnid inaad isticmaasho dhinac saddexaad codsiyada sida Cygwin . WSL waa inay ku filnaataa inta badan xaaladaha si ay kaaga caawiyaan inaad ku socodsiiso qoraalka qolofka Windows 10 .
Related posts
Dami Su'aalaha Amniga gudaha Windows 11/10 adoo isticmaalaya qoraalka PowerShell
Sida loo helo furaha alaabta Windows adoo isticmaalaya VB Script gudaha Windows 11/10
Hagaaji qaladka qoraalka Windows 11/10
Sida loo tuso qaybta Faahfaahinta gudaha File Explorer gudaha Windows 11/10
Sida loo isticmaalo Charmap iyo Eudcedit qalabyada ku dhex dhisan ee Windows 11/10
Boostada iyo kalandarka abka way qaboojiyaan, burburaan ama kuma shaqeeyaan Windows 11/10
U deji Notepad++ sidii tafatiraha caadiga ah ee faylasha .xml gudaha Windows 11/10
Sida loo beddelo darawallada adag ee gudaha Windows 11/10 oo leh Hot Swap
Sida loo xaliyo dhibaatada isku dhaca Saxeexa Disk ee gudaha Windows 11/10
Barnaamijyada Jadwalka ugu fiican ee bilaashka ah ee Windows 11/10
Habka fog-fog ayaa wacaya khalad markii la isticmaalayo DISM gudaha Windows 11/10
Sida loo furo guryaha nidaamka ee Control Panel gudaha Windows 11/10
Sida loogu daro ama loo beddelo Server Time gudaha Windows 11/10
Qalabka dib-u-ciyaarista HDMI oo aan ka muuqanayn Windows 11/10
Shaashada Daaqadaha si toos ah ayay isu cusboonaysiinaysaa Windows 11/10
Sida loogu daro Tifaftiraha Siyaasadda Kooxda Windows 11/10 Daabacaadda Guriga
Sida loo abuuro Shaxda Radar gudaha Windows 11/10
Sida loo suurto geliyo ama loo joojiyo astaanta abka Archive gudaha Windows 11/10
Microsoft Intune miyaanay wada shaqayn? Ku qas Intune in ay isku xidho Windows 11/10
CPU kuma soconayso xawli buuxa ama awood gudaha Windows 11/10