How do I run a bash script on Raspberry Pi?

Ánh Dương

New member
How do I run a bash script on Raspberry Pi?
Answer
The basic syntax for a pipe is:
  1. command 1 | command 2.
  2. sudo nano hello-world.sh.
  3. The first line of this program, #!/bin/sh, is called a shebang.
  4. Next, we’ll need to make the hello-world.sh file executable.
  5. sudo chmod +x hello-world.sh.
  6. sh hello-world.sh.
  7. ./hello-world.sh.
 

Tìm kiếm

Back
Top