CloudCommand is a very simple script to quickly launch common scripts/commands, relating to a Cloudbox environment.
The below will download the script, and place it into /opt/scripts
.
curl "https://raw.githubusercontent.com/kieron/CloudCommand/master/CloudCommand.sh" > /opt/scripts/CloudCommand.sh; chmod +x /opt/scripts/CloudCommand.sh
Then it is advised you set an alias for easy launching, I use cc
for example. Here is how to set the alias:
- Check your shell type by typing
echo $SHELL
. Depending what it says, use the instructions below:
Bash:
nano ~/.bashrc
- Add
alias cc="/opt/scripts/CloudCommand.sh"
- Run
source ~/.bashrc
to make the new alias available.
Zsh:
nano ~/.zshrc
- Add
alias cc="/opt/scripts/CloudCommand.sh"
- Run
source ~/.zshrc
to make the new alias available.
Updating instructions are similar to downloading currently, but with no cache, simply run:
curl -H 'Cache-Control: no-cache' "https://raw.githubusercontent.com/kieron/CloudCommand/master/CloudCommand.sh?$(date +%s)" > /opt/scripts/CloudCommand.sh; chmod +x /opt/scripts/CloudCommand.sh