Category: Linux

Paging in MySQL Command-Line Client

Paging in MySQL Command-Line Client

February 4, 2014 | By | Add a Comment

By default MySQL command-line client wraps lines in a SELECT query result and has no paging. You can solve both these problems by using the less command available in Unix/Linux systems.

Continue Reading

Checking gzip Compressed tar Files

Checking gzip Compressed tar Files

January 22, 2014 | By | Add a Comment

I wrote this very simple bash script to check the gzip compressed tar files generated by cPanel’s backup. It attempts to extract each file individually to /dev/null and emails a list of the ones that were not extracted successfully.

Continue Reading

Importing and Exporting MySQL Databases

Importing and Exporting MySQL Databases

June 19, 2013 | By | 2 Comments

Importing and exporting MySQL databases in a Unix/Linux environment can be done easily with a single command. You can even choose to export the database’s structure or data only.

Continue Reading

Shortcut Keys for Bash

Shortcut Keys for Bash

August 7, 2012 | By | 2 Comments

A list of 30 Bash shortcut keys that will save you time. Bash is the default shell in most Linux distributions and the most popular. The shortcuts are divided into 3 sections (navigation, editing and cutting and pasting) for easy reference.

Continue Reading

Uses of Netcat in Linux

Uses of Netcat in Linux

April 26, 2011 | By | Add a Comment

Netcat is a networking program in UNIX-like systems for reading from and writing to network connections using TCP or UDP. Its man page says “The nc utility is used for just about anything under the sun involving TCP or UDP”.

Continue Reading

Quotations from Fortune the UNIX Program

Quotations from Fortune the UNIX Program

July 12, 2010 | By | Add a Comment

fortune is a simple program that displays a pseudo-random message from a database of quotations. It is predominantly found in UNIX-like systems, but clients for other platforms exist as well.

Continue Reading

Streaming Music and Videos with GNUMP3d

Streaming Music and Videos with GNUMP3d

May 20, 2010 | By | 1 Comment

I have been trying different streaming servers the past few days for a project I’m working on. Out of the ones I tested so far none was as easy to install and configure as the GNU Streaming MP3 / Media Server (GNUMP3d). So I thought I should write post about it for those who are […]

Continue Reading

Ubuntu Facts

Ubuntu Facts

May 17, 2010 | By | Add a Comment

Ubuntu is a Linux distribution that has one of the largest online communities. It is based on Debian the community-based distribution and is a trademark of Canonical Ltd which is also its largest sponsor.

Continue Reading

Detect if you are Running a Virtual Machine

Detect if you are Running a Virtual Machine

May 13, 2010 | By | Add a Comment

Would you like to know if your server’s OS is running on bare-metal or on a virtual machine. imvirt and virt-what are 2 Linux scripts that allow you to do so easily.

Continue Reading