Utilizzando questo sito, accetti il politica sulla riservatezza.
Accettare
EnterineEnterineEnterine
  • CASA
  • PROFESSIONISTA
  • TECNICA
  • Microsoft
    • Azzurro
    • ConfigMgr/SCCM
    • Dpm
    • Orchestratore
    • Hyper-V
    • Microsoft Edge Insider
    • MSI
    • Ufficio 365
    • Insider dell'ufficio
    • Potenza BI
    • Skype
    • SQLServer
    • Squadre
  • FINESTRE
    • Centro di amministrazione di Windows
    • Cliente Windows
    • Windows Server
  • Elenco raccolte query SCCM
Lettura: How to Execute Shell Script Files on Windows 10 Using WSL
Ridimensionamento dei caratteriAa
EnterineEnterine
Ridimensionamento dei caratteriAa
  • CASA
  • PROFESSIONISTA
  • TECNICA
  • Microsoft
  • FINESTRE
  • Elenco raccolte query SCCM
Ricerca
  • CASA
  • PROFESSIONISTA
  • TECNICA
  • Microsoft
    • Azzurro
    • ConfigMgr/SCCM
    • Dpm
    • Orchestratore
    • Hyper-V
    • Microsoft Edge Insider
    • MSI
    • Ufficio 365
    • Insider dell'ufficio
    • Potenza BI
    • Skype
    • SQLServer
    • Squadre
  • FINESTRE
    • Centro di amministrazione di Windows
    • Cliente Windows
    • Windows Server
  • Elenco raccolte query SCCM
Cliente Windows

How to Execute Shell Script Files on Windows 10 Using WSL

Pubblicato: Febbraio 18, 2024
2 Lettura minima
CONDIVIDERE

How to Execute Shell Script Files on Windows 10 Using WSL.

Contenuto
Execute Shell Script file using WSLInstall WSL or Windows Subsystem for LinuxExecute Shell Script FilesExecute Shell Script using Ubuntu in dual-boot

Bash is a Unix shell and command language which can run Shell Script files.

  1. Execute Shell Script file using WSL
  2. Execute Shell Script using Ubuntu on Windows 10

Execute Shell Script file using WSL

Install WSL or Windows Subsystem for Linux

1. Vai a Settings\Update & Security\For Developers. Check the Developer Mode;

2. Cercare Windows Feature, and choose to Turn Windows features on or off;

3. Scroll to find WSL, check the box, and then install it;

4. Reboot to finish installing the requested changes;

5. BASH will be available in the Prompt dei comandi E PowerShell.

Execute Shell Script Files

1. Aprire Windows Powershell and navigate to the folder where the script file is available;

2. Tipo:

Bash script-filename.sh

It will execute the script, and depending on the file, you should see an output.

On a Linux platform, you usually use SH, but here you need to use BASH.

Execute Shell Script using Ubuntu in dual-boot

Make sure you have Ubuntu or any other Linux distros installed on the target PC in dual-boot with Windows 10. Ubuntu will mount or make all your Windows directories available under /mnt. So the C:\ drive is available at /mnt/C.

Now follow these steps:

  1. Type Bash in a run prompt, and it will launch the distro prompt.
  2. Navigate to the folder using the cd command to the folder where the scripts are available.
  3. Tipo sh script.sh and hit enter.
TAGGATO:Prompt dei comandi (Cmd)LinuxPowershellUbuntuFinestreFinestre 10WSL
Articolo precedente Come risolvere “Failed to Open the Runspace Pool” Error in Server Manager WinRM Plug-in?
Articolo successivo How to Change Virtual Memory Size on Windows 10: Guida passo passo
1 Commento 1 Commento
  • awda dice:
    agosto 19, 2020 A 1:36 pm

    This is false, to use bash like this you NEED to have linux distribution installed

    Rispondere

Lascia una risposta Annulla risposta

Il tuo indirizzo email non verrà pubblicato. I campi obbligatori sono contrassegnati *

Questo sito utilizza Akismet per ridurre lo spam. Scopri come vengono elaborati i dati dei tuoi commenti.

Traduzione

English中文(简体)DanskNederlandsFrançaisDeutschItaliano한국어PolskiPortuguêsRomânăEspañolУкраїнська
di Transposh - plugin di traduzione per wordpress

Post popolari

Requisiti di sistema per Windows Server 2016
Windows Server
Elenco raccolte query di Gestione configurazione
Elenco raccolte query di Gestione configurazione
ConfigMgr
Navigazione strutturata/gestita abilitata nelle pagine moderne nei siti del team classici
Tecnologia
SCCM Impossibile ottenere le posizioni DP come versione prevista da MP
ConfigMgr

Post recenti

Elenco raccolte query di Gestione configurazione
Aggiornamento della filiale corrente SCCM 1610
ConfigMgr
Elenco raccolte query di Gestione configurazione
Configuration Manager Client Cache Cleanup Script
ConfigMgr
Installa WordPress con Nginx su AlmalInux 9
Linux
How To Install OpenSSL 3 on AlmaLinux 9
Linux

© 2023 Enterine

Vai alla versione mobile
Bentornato!

Accedi al tuo account

Nome utente o indirizzo e-mail
Password

Hai perso la password?