Web & Software Developer

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

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

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 →

Create a PHP info Test Page on Command Line

This will create a PHP info page so that you can test if your PHP server is working. This test file will be created quickly using the command line. Open a terminal and type: Open your web browser and type in the address bar “localhost/test.php” and press ‘enter’. You should see the PHP Info page. … Read more →