Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to create a script raspberry pi

# First you must create your file using Nano or VIM
sudo vim hello-world.sh

# Now enter this code into the text editor:
#!/bin/bash
echo "Hello World!"

# Now you must make the file executable
sudo chmod +x hello-world.sh

# Run the script
sh hello-world.sh
 
PREVIOUS NEXT
Tagged: #create #script #raspberry #pi
ADD COMMENT
Topic
Name
5+9 =