Tag Archives: bash

Backup or Export, Compress and upload mysql database to remote host

This is a handy command that i use to backup or export, compress and upload a mysql database to my remote host, very handy when you wanna upload your development database to the remote host after some changes.

/usr/mysql/bin/mysqldump --opt -uUsername -pPassword Databasename  | gzip -c | ssh -q user@remote-host.com 'cat > ~/Databasename.sql.gz'

Replace the following :

  • /usr/mysql/bin/mysqldump : The path for mysqldump on your localmachine
  • Username : Username for local mysql database.
  • Password : Password for local mysql database.
  • Databasename : Name of the database to export.
  • user@remote-host.com : the user and the IP or the address of the remote host.

the above command will upload the compressed database to your home directory on the remote host, to change the directoy, replace ~/ with the path you want.

How to read chm files on Ubuntu

This can be easily done with install GnoCHM, the CHM viewere for Linux

you can install it by executing this command in the terminal

sudo apt-get install gnochm

enjoy ;)

Linux Terminal Commands Guide

Hey folks,

a friend asked me for a nice guide to learn the Linux commands, so i made a search for him and found some cool links

straight to the point guide for beginners :
http://linux.org.mt/article/terminal

it covers the following topics :
* Introduction
* Preparation
* The “Bash” shell
* A simple command
* Obtaining help
* Linux Directories
* Linux Files
* Wildcards
* Typing Tricks
* Redirecting Output
* Environment variables
* Scripts
* Aliases
* Switching to root
* Compiling from source
* Conclusion

————————————————–
Alphabetical Directory of Linux Commands
http://www.oreillynet.com/linux/cmd/

a complete directory of Linux commands

————————————————–
Linux shortcuts and commands
http://www.unixguide.net/linux/linuxshortcuts.shtml

This is a practical selection of the commands we use most often

if you have more cool guides, please post in comments