Linux Vids project is an effort to collect videos that help people learn the Linux operating system, comparision with Microsoft Windows, Tips and Tricks, Hacks, Softwares, Technology and all the stuff related to the Open Source World. The goal of the Linux Vids project is to help you can learn Linux easily and stay tuned.


linux-videos-learn-open-source-gnu-hacking-softwares-windows-vista-xp-winxp
linux-videos-learn-open-source-gnu-hacking-softwares-windows-vista-xp-winxp
linux-videos-learn-open-source-gnu-hacking-softwares-windows-vista-xp-winxp

How to combine two or more downloaded files when wget fails halfway through

If wget fails halfway through and gives you many files like XXX.tgz, XXX.tgz.1, XXX.tgz.1.1 ..., you can combine them by :

cat XXX.tgz XXX.tgz.1 XXX.tgz.1.1 > XXX_new.tgz

or if you are in a directory where resides only the downloaded files:

cat * > XXX_new.tgz

Import a mysql database

To import a mysql database :

# mysql -u username -ppassword Database_name < yourdb.sql

once again, if you don't want to type your password in clear text at the comand prompt, you can use:

# mysql -u username Database_name -p < yourdb.sql

Export a mysql database

There are many ways to import and export a mysql database, this is one simple method to do it:

To export a mysql database :

# mysqldump -u username -ppassword Database_Name > db.sql

or if you don't want to type your password in clear text at the comand prompt, you can use:

# mysqldump -u username Database_Name -p > db.sql
then you'll be asked to enter your password