How do I Compress a Whole Linux or UNIX Directory?
Q. How can I compress a whole directory under Linux / UNIX using a shell prompt?
A. It is very easy to compress a Whole Linux/UNIX directory. It is useful to backup files, email all files, or even to send software you have created to friends. Technically, it is called as a compressed archive. GNU tar command is best for this work. It can be use on remote Linux or UNIX server. It does two things for you:
=> Create the archive
=> Compress the archive
You need to use tar command as follows (syntax of tar command):
tar -zcvf archive-name.tar.gz directory-name
Where,
- -z: Compress archive using gzip program
- -c: Create archive
- -v: Verbose i.e display progress while creating archive
- -f: Archive File name
For example, you have directory called /home/jerry/prog and you would like to compress this directory then you can type tar command as follows:
$ tar -zcvf prog-1-jan-2005.tar.gz /home/jerry/prog
Above command will create an archive file called prog-1-jan-2005.tar.gz in current directory. If you wish to restore your archive then you need to use following command (it will extract all files in current directory):
$ tar -zxvf prog-1-jan-2005.tar.gz
Where,
- -x: Extract files
If you wish to extract files in particular directory, for example in /tmp then you need to use following command:
$ tar -zxvf prog-1-jan-2005.tar.gz -C /tmp
$ cd /tmp
$ ls -
MySQL Tutorial – Import or Export A Database
This tutorial section deals with mysqldump which is a tool to import and export MySQL databases.
It can be used to back up a database or to move database information from one server to another.
1. Export A MySQL Database
This example shows you how to export a database. It is a good idea to export your data often as a backup.
|
Replace username, password and database_name with your MySQL username, password and database name.
File FILE.sql now holds a backup of your database, download it to your computer.
2. Import A MySQL Database
Here, we import a database. Use this to restore data from a backup or to import from another MySQL server.
Start by uploading the FILE.sql file to the server where you will be running this command.
|
Replace the parts in red with your own information.
This powerful, easy to use command has many uses. Let's say you wanted to switch web hosting providers.
Simply export your data on the old provider's server and import it on your account with the new host.
Top 10 Most Popular WordPress plugins
A list of most popular wordpress plugins which are in internet today. Take a look
1# All in One SEO Pack
Yap one of the most popular plugin for wordpress, that's because it is not enough to create blog second thing is to get traffic, this plugin will help you to get traffic from search engines and optimize your blog for search engines, this plugin will automatically optimizes your WordPress blog for Search Engines.
#2 Google XML Sitemaps
This plugin will create Google Sitemap for your blog, which will help to google bot to crow your site more easy and so more quickly, so this is important plugin too.
#3 Sociable
Automatically add links to your favorite social bookmarking sites on your posts, pages and in your RSS feed. You can choose from 99 different social bookmarking sites! Nice plugin...
#4 Contact Form 7
Contact Form 7 can manage multiple contact forms, plus you can customize the form and the mail contents flexibly with simple markup. The form supports Ajax-powered submitting, CAPTCHA, Akismet spam filtering and so on.
#5 NextGEN Gallery
NextGEN Gallery is a full integrated Image Gallery plugin for WordPress with a Flash slideshow option. Before I start writing the plugin I study all photo and picture plugins for WordPress, I figure out that some of them are really good and well designed, but I missed a simple and easy administration back end to handle multiple photos, galleries and albums.
#6 Google Analytics for WordPress
The Google Analytics for WordPress plugin automatically tracks and segments all outbound links from within posts, comment author links, links within comments, blogroll links and downloads. It also allows you to track AdSense clicks, add extra search engines, track image search queries and it will even work together with Urchin.
Download Google Analytics for WordPress
#7 WordPress.com Stats
There are hundreds of plugins and services which can provide statistics about your visitors. However I found that even though something like Google Analytics provides an incredible depth of information, it can be overwhelming and doesn't really highlight what's most interesting to me as a writer. That's why Automattic created its own stats system, to focus on just the most popular metrics a blogger wants to track and provide them in a clear and concise interface.
#8 Akismet
Akismet checks your comments against the Akismet web service to see if they look like spam or not and lets you review the spam it catches under your blog's "Comments" admin screen.
#9 Page Flip Image Gallery
Do you need to show your photos to the best advantage and post them in a speedy manner, don't you? You need to make a bright and memorable presentation, portfolio or image gallery? This plugin will help you!!
Download Page Flip Image Gallery
#10 Plugin Manager
Last plugin which lets you to view, download and install plugins from wordpress.org from an AJAX'ed interface, instead of manually downloading, extracting and uploading each plugin.
40 Free High Quality Hand-drawn Fonts

Unlike the serif font family, these hand drawn fonts looked less serious but they tend to give and convey strong human touch wherever they are applied. Hand-drawn fonts are hard to stand on it’s own, but they are utmost perfect for these following situations:
Domain Name Yahoo
![]()
Yahoo presenting domain name registration, for only 9.95$ which includes
* 24-hour phone and online support
* A starter web page
* Domain forwarding
* Domain locking
* Private domain registration
* Complete DNS management
This is very nice price! godaddy and most domain registers want additional price for Private domain registration and some of them wants additional price for DNS management to, So price is very good and features to.
Country Drop Down List for Web Forms
Here is Country Drop Down List for Web Forms, you can use it for registration page or for something else.
35 Basic Tutorials for Photoshop
Adobe Photoshop is a very powerful and versatile image editing/graphics creation application that is the industry standard in its category. Though Photoshop’s interface is intuitive enough for an absolute beginner to learn basic image editing tasks such as cropping and resizing, to be able to fully master and utilize all of its tools takes a considerable amount of time.
If you’re interested in honing your Photoshop skills to create spectacular compositions, this is for you. In this article, you’ll find 35 basic Photoshop tutorials for getting started with Photoshop.
$100 Of Free Facebook Advertisement Credit
You can get free $100 of advertisment credit at facbook, you must only join The Visa Business Network, and when you finish singup you'll get confirmation email with coupon code, folow instuction and enjoy free 100$ of facebook credit.
How To Copy Files In Linux
To copy files, you use the cp command. The following will copy file to file2. Note that if file2 doesn't exist, it'll be created, but if it exists, it'll be overwritten:
$ cp file file2
There aren't any undo commands in the Linux CLI, so accidentally overwriting an important file would probably make you pull your head off. The risk of doing so is smaller if you use the -i option ("interactive") with cp. The following does the same as the above, but if file2 exists, you'll be prompted before overwriting:
$ cp -i file file2
cp: overwrite `file2'? n
$
So it's a good idea to use the -i option whenever you're dealing with important files you don't want to lose!
If you want to copy file into directory dir1:
$ cp file dir1
The following would do the same as the above, copy file into dir1, but under a different name:
$ cp file dir1/file2
You can also copy multiple files into one directory with a single command:
$ cp file1 file2 file3 dir1
If you want to copy all files to dir2 you can use this command:
$ cp *.* dir2
This command will copy only .txt files to dir2:
$ cp *.txt dir2
Note that if the last argument isn't a directory name, you'll get an error message complaining about it.

