Saturday, June 19, 2010

tar command basic operations

The tar (tape archive) is used to stores and extracts files from archive (no compress). It's very easy how doing to create and extract files with tar command.

Create a tar.gz archive file use the c option, if more than one files

> tar czvf archive_name.tar.gz file1 file2 file3


Create a tar.gz archive file in one folder

> tar czvf archive_name.tar.gz folder_name/*


Extract a tar.gz archive use x option

> tar xzvf file_name.tar.gz

How to install Balsamiq Mockup on Ubuntu 9.10 ?





First, lets look at what is the Balsamiq Mockup?. Balasamiq Mockups is an tool for Desktop, Web and Mobile app designer which needed for making new sketch, you can drawing the layout component on page site, there you can find kind of components as you need. Lets begin to install, i won't talk to much here.. for more you can see at this http://www.balsamiq.com

You can directly the installation just access this link http://www.balsamiq.com/products/mockups/download and click at "Install Mockups" button. follow the next instructions and wait a few minutes to complete the installation.

Export or Import database to sql file with command line

How to quickly export/import sql file?, you can do that and use some tools here but i want to share about new experience, on this case i used the mysql commands. follow these steps:


1. Export database to sql file (create mysql dump file)
The easiest way to export use syntax command like this:

> mysqldump -u username -p database_name  > export_filename.sql




2. Import mysql dump file to database.
Make sure you have make the database name firstly, next you can use these command:

> mysql -u username -p database_name < export_filename.sql


hope helpful :)

Saturday, June 5, 2010