Notatka na marginesie

executable and global bash script

first create empty file in terminal
sudo touch script_name
sudo nano script_name

in nano editor paste
#!/bin/bash
echo "no elo mordo"

in terminal type
chmod +x script_name
copy your little program to /usr/bin
sudo cp script_name /usr/bin

now you can use the script everywhere
$ script_name