Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save luisfc/ec9b911b8bd6a180ac84e238ccb63845 to your computer and use it in GitHub Desktop.
Save luisfc/ec9b911b8bd6a180ac84e238ccb63845 to your computer and use it in GitHub Desktop.
Create BASH Script Executable in whole System
# Add execute permission to script
~/mipc> chmod +x script.sh
# Copy script in directory that your system.
# there are two directories to copy the executable script
# 1 - Only available for the user of the system - /usr/bin or /usr/local/bin
# 2 - For share in all users of the system - /usr/local/bin
#1 ~/mipc> sudo cp script.sh /usr/bin/script
#2 ~/mipc> sudo cp script.sh /usr/local/bin
# It is recommended to remove the .sh from the script name that is copied to the directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment