Tuesday, February 19, 2013

How to get history of mysql commands

Actually i know how to get the shell command history on linux. We just need to type "history" and press enter. Like wise if we need to get the mysql command history, this is the way.

Go to shell.
> cat ~/.mysql_history

Monday, February 18, 2013

Alias on Linux profile

I had a problem on ubuntu (& debian)shells. That is i can't use "ll" command as i used in Fedora. Most of the time I use "ll" command just after go into a folder. Always i retyped "ls -l" to get the same out put which gives from "ll" command on fedora. So I found a simple solution for it. That is use alias on profile.

Open the profile
&gt vi ~/.profile

Add this at the bottom.
#Alias 
alias ll="ls -l"

Save and quit.
:wq

Source the profile
>source ~/.profile

Now check the result.
>ll

   You feel like fedora...