I read of super user sudo mode to edit and install apps etc
I understand that instructions are written on a text editor, but how do you execute or run a text file ?
Do you just copy and paste, and paste to where?
Code: Select all
#! /bin/bash
echo "Hello World"Code: Select all
chmod +x hello.shCode: Select all
./hello.shCode: Select all
echo $PATH
In a terminal window, where it displays you the dollar prompt - which looks something like "pi@raspberrypi:~ $ ", you type something, lets say you type "date".In windows, we write instructions etc on an editor and paste it to c: windows/ 32 etc etc or a ready assembled exe file
In Raspbian , indeed in Linux, I am to understand that we write the instructions on an editor like nano and paste it to WHERE in the system ?