Howdy! Thanks for coming and enjoy your stay! Take a look at the sitemap and don't forget to chirp!

Three Linux Commands You Can’t Live Without

February 18th, 2009

Okay, we’re not going to talk about the shutdown, yum, etc. commands, though THEY are probably the ones that nobody can live without. I’m talking about the web here, remember? And we all know that not everybody owns a VPS, a VDS or a dedicated server. Virtual hosting plans are quite cheap today, and most of them are tuned to provide you with SSH access and basic privileges (although I DO highly recommend you get yourself a VPS, it’s not much more expensive than virtual hosting and I’m sure it’s worthed). These linux commands are extremely helpful when doing backup or moving from one server to another.

Please Memorize These Linux Commands

Please Memorize These Linux Commands

1. Create a compressed archive of the current directory:

tar -cvzf backup.tar.gz ./*

2. Create a compressed archive of a MySQL database dump:

mysqldump -u username -p password -h host -P port databasename | gzip -c > mysql.sql.gz

3. Get directory contents from a remote FTP server:

wget -r ftp://username:password@domain.com/directory/*

Hope that helped ;)

Related posts:

  1. Linux Dummy: Unscheduled Maintenance
  2. Fedora Linux 10 Partitioning
  3. Internet Connection Sharing Via Wi-Fi On Fedora Linux
  4. Twitter on Fedora Linux
  5. Linux Shell: Host to IP in Bulk
Tagged: , ,
Shortlink: http://kovshenin.com/309