Created
April 19, 2017 14:54
-
-
Save luisfc/ec9b911b8bd6a180ac84e238ccb63845 to your computer and use it in GitHub Desktop.
Create BASH Script Executable in whole System
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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