Web & Software Developer

Archive for “Bash, Shell, Terminal, Command Line”

Shell commands for command prompt (command line) and ssh terminal commands and code snippets.

Bash Shell Script To Create a Release on GitHub

This shell script will create a new Release on GitHub for your git repo. This script should be placed in the base of your local git repository. You must configure the first 3 variables: ACCESSTOKEN – Set this to your personal GitHub access token. You can create an access token in your GitHub account > … Read more →

Reset MySQL root password in Ubuntu/Linux Command Line

These are the terminal commands to reset your MySQL password for your “root” user. This is useful if you forgot your MySQL password on your local LAMP server. This is a fix for errors like these: ERROR 1045: Access denied for user: ‘root@localhost’ (Using password: NO) ERROR 1045: Access denied for user: ‘root@localhost’ (Using password: … Read more →

Transfer Files From Server to Server via Terminal

This is a quick way to transfer or move files from one server to another server via the command line. This uses SSH. Before you begin, make sure your web host allows SSH connections. Some hosts require that you first enable SSH before they give you access. This works in a linux terminal (or PuTTY … Read more →