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
Hi friends. I'm Kumudu Saranath Liyanage. This is my personal blog. I put everything which i think that will important for me on another day. So it is no need to search same thing two times in the internet for any more...
Tuesday, February 19, 2013
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
> 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...
Open the profile
> 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...
Subscribe to:
Posts (Atom)