0

I have commands for example like this:

git clone https://example.com/mygit.git && cd mygit && npm i

in a file that i uploaded to an url, I want to run it from terminal, how do I run it from my terminal?

Reynald Prabha
  • 53
  • 1
  • 10

1 Answers1

0

Are you using a Linux distro or Windows?

Assuming its Linux - you need to have the file execute permission bit set ( see here for more information -> https://www.tutorialspoint.com/unix/unix-file-permission.htm )

Then you need to execute the file with the path specified ie. if the script is called "myScript.sh" you would run:

./myScript.sh

or

/path/to/myScript.sh
samson4649
  • 81
  • 5