snippets

[Snippet] Restart Linux Server from the Command Line

Another quick snippet. How to restart a Linux server using only the command line. Start by opening Terminal (Mac) or Putty (Windows) and enter the following, then hit ENTER. /sbin/shutdown -r now Warning: Always make sure the -r is included or the server will simply shutdown. Forcing you to...

[Snippet] Backup and Restore MySQL from command line

Here is how to quickly backup a MySQL database using the command line. Start by opening Terminal (Mac) or Putty (Win) and follow these commands. Backing up a database mysqldump -h hostname -u user --password=password databasename > filename Restoring a database mysql -h hostname -u user --password=password databasename < filename ...