≡ Menu

Question: How do I disable mysql history? I don’t want mysql to remember the previous commands that I typed from the mysql> prompt. This is important for me, as when I type some sql commands that contains passwords, I see the clear text password stored in the ~/.mysql_history, which I don’t want to happen.

Answer: Bash history feature stores the Unix commands typed in the command line in the ~/.bash_history file. Similar to bash shell, mysql stores the commands typed in the mysql> prompt in the ~/.mysql_history file.

In this article, let us review how to disable mysql history.

[continue reading…]

Linux 101 Hacks eBook Goes Online – HTML Version

I’m happy to announce that my free eBook, Linux 101 Hacks is now available for online browsing in HTML format. I’ve also updated the book with the following minor changes.

  • Added “Chapter 13. Bonus Hacks” with 10 additional hacks. I’ll be adding more Linux hacks to this chapter in the upcoming editions.
  • Made few minor changes on some of the existing hacks based on readers feedback from the 1st edition.

[continue reading…]

Yet Another Sudoku Puzzle Solver Using AWK

Photo Courtesy: jimray

We have seen in a previous awk introduction article that awk can be an effective tool for everything from small one-liners up through some interesting applications. There are certainly more complex languages at our disposal if a situation calls for it; perl and python come to mind. Applications requiring networking support, database access, user interfaces, binary data or more extensive library support and complexity are best left to other languages with better support in these areas.
[continue reading…]

Perl Tutorial for BeginnersIf you are a Linux sysadmin who writes occasional perl code (or) a developer who wants to learn perl program language, these 20 basic perl programming tips and tricks explained in this article will give you a jumpstart.

[continue reading…]

6 Steps for Minimal Ubuntu Installation Using debootstrap

Ubuntu LogoThe debootstrap utility installs a very minimal Debian system. debootstrap tool will install debian-based Linux OS into a sub-directory. You don’t need an installation CD for this purpose. However, you need to have access to the corresponding Linux distribution repository (for e.g. Debian or Ubuntu).

For the purposes of this article we will discuss how to install Ubuntu using debootstrap.
[continue reading…]

Linux Awk Tutorial - Introduction and Awk Examples

This is the first article on the new awk tutorial series. We’ll be posting several articles on awk in the upcoming weeks that will cover all features of awk with practical examples.

In this article, let us review the fundamental awk working methodology along with 7 practical awk print examples.
[continue reading…]

Can You Top This? 15 Practical Linux Top Command Examples

UNIX / Linux Top Command ExamplesThis article is part of the on-going 15 example series where 15 examples will be provided for a specific command or functionality. In this series, earlier we discussed about find command, crontab examples, grep command, history command, ping command, and wget examples.

In this article, let us review 15 examples for Linux top command that will be helpful for both newbies and experts.
[continue reading…]

Happy New Year 2010 – From Geek and the Doll

Happy New Year 2010
[continue reading…]