Skip to main content

How to Run SH Files on Windows

Bash shell script files are scripted in the bash scripting language for Linux. It includes commands which you can usually use on the command line. The Bash shell script files can be placed in the Terminal folder to run and can be launched by clicking twice on it.  In case you want to run SH files on a Windows PC, then go through the instructions mentioned below.



Steps to Run SH Files on Windows Through Cygwin

•    Click on the Cygwin online website.

•    You need to go to its online website for downloading the 32bit or 64bit file, which is known as Cygwin.

•    Go to the downloaded Cygwin setup.

•    Go through the download procedure.

•    After that, start installing Cygwin on your Windows PC.

•    You will get many options on your screen.

•    You need to choose one option.

•    Once the installation is complete, go to the Cygwin64 Terminal.

•    Click twice on the shortcut to open the Cygwin64 Terminal.

•    Start using the below-mentioned command:

cd C:Users/Username/Desktop

•    This command is used for changing the directory.

•    Now, the directory gets changed to your desktop.

•    After that, type the below-mentioned command:

sh appuals.sh

Steps to Run SH Files Through the Windows Subsystem

•    Enable Your Windows Subsystem for the Linux

1.    Keep pressing on the Windows and R keys together.

2.    After that, enter appwiz.cpl.

3.    Click on the Enter option.

4.    Press on the Turn Windows Features on or off option.

5.    This option is located on the left-hand corner.

6.    Go down to the end of the display.

7.    Choose the Windows Subsystem for the Linux option.

8.    Press on the OK option for a start installing it.

9.    After the procedure gets completed, follow the other steps.

•    Install the Linux Distro for the Windows PC

1.    Keep pressing on the Windows and R keys together for opening the Run box.

2.    Enter “ms-windows-store” in the given box.

3.    Click on the Enter button.

4.    Find Ubuntu.

5.    Press on the one which is showing in the search result.

6.    Start downloading it.

7.    Start using the PowerShell command mentioned below for downloading the Linux distro:

Invoke-WebRequest -Uri https://aka.ms/wsl-ubuntu-1604 -OutFile Ubuntu.appx -UseBasicParsing

9.    You need to begin the download process of distro through the curl command mentioned below:

curl.exe -L -o ubuntu-1604.appx https://aka.ms/wsl-ubuntu-1604

11.    After downloading the distro, the installing process of distro begins automatically.

12.    Enter a new username.

13.    After that, enter a password.

•    Initialize a New Installed Distro and Run SH File

1.    Some of the distros which you can download come along the empty or minimal package through the below-mentioned command:

sudo apt update && Sudo apt upgrade

2.    Start changing the directory to the .sh file folder through the below-mentioned command:

cd /mnt

3.    Enter the below-mentioned command to run the SH file:

sh appuals.sh

Steps to Run SH Files on Windows Through Git Command Line

•    Click on the official link for downloading the Git for your Windows PC.

•    Go to the downloaded Git setup for installing the Git.

•    Complete the installation procedure.

•    After that, go through the options which you wish to get or not.

•    Keep pressing on the Windows and S keys together.

•    Those keys will launch the search function.

•    Enter Git Bash.

•    Click on the Enter option.

•    Start changing the directory on that folder where you have saved the file.

•    You need to enter the below-mentioned command:

CD desktop

•    Enter the below-mentioned command to run SH command:

sh appuals.sh
Marshall Lyne is a Microsoft Office expert and her been working in the technical industry since 2002. As a technical expert, Sara has written technical blogs, manuals, white papers, and reviews for many websites such as office.com/setup.

Source: http://goforoffice.com/how-to-run-sh-files-on-windows/

Comments

Popular posts from this blog

What Is Digital Marketing?

 What Is Digital Marketing? Digital marketing is that the use of the social media, Internet, search engines, mobile devices, and other channels to succeed in consumers. Some consider digital marketing to be entirely new which needs a replacement way of understanding that how customers behave and new ways of approaching the purchasers compared to the normal marketing. Digital Marketing Channels 1. Website Marketing 2. Pay-Per-Click (PPC) Advertising 3.Content Marketing 4.Email Marketing 5.Social Media Marketing 6.Affiliate Marketing 7.Video Marketing 8.SMS Messaging Digital Marketing As A course and Career The Digital Marketing course will transform you into a complete digital marketer with expertise in the top eight digital marketing domains — search engine optimization, social media, pay-per-click, conversion optimization, digital analytics, content, mobile, and email marketing. Fast-track your career in digital marketing today with practical training you can appl

QAQC stands for Quality Assurance and Quality Control in management for production of goods and services.

 QAQC stands for Quality Assurance and Quality Control in management for production of goods and services. Quality Assurance is provided by a part of management system which gives confidence to the customer that his product requirements & legal requirements will be fulfilled. Quality Control is provided by a part of management system which ensures that the product meets all of customer requirements and legal requirements. The students are trained in International Standard for Quality for establishing, implementing and maintaining Quality Management System to meet both Quality Control and Quality Assurance requirements. They are trained to act as QAQC Engineer at work. TWG INTERNATIONAL Providing Trainings for all course related to Quality. The training is imparted by Super Specialist trainer with 40+ years’ experience. The subject is taught from basic level so that students can understand the subject with ease and without apprehension/ fears. There is major trend in

Why Science Labs are Important for Students in School?

Science is a subject which allows students to explore and discover new theories. From a small atom to large universe everything is conceptualize with help of science education. But only theoretical knowledge is not sufficient. Practical knowledge is important to increase engagement and knowledge. Science lab is a place for student which functions to magnify deep understanding of theoretical concepts taught in classrooms. By this effective teaching method, students can gain numerous benefits. Ideal Education Point (New Choudhary public school) believes that ‘Child learn in class but understand in laboratories. Laboratories provide a great experience and high degree of knowledge in developing necessary skills for study and research. Science is a little difficult subject than any other therefore it is must for any school to have a science lab. Know the importance of science labs - • Understand difficult aspects One cannot just read the hefty science books and understand all the meaning