Viewing 1 to 2 of 2 items
Tag Archives: Bash Profile

Change the history file name using HISTFILE

By default, history is stored in ~/.bash_history file. Add the following line to the .bash_profile and relogin to the bash shell, to store the history command in .commandline_warrior file instead of .bash_history file. I’m yet to figure out a practical use for this. I can see this getting used when you want to track commands executed from  Full Article…


Remove grep from grep output of ps command

You might always see the “grep” as the list of processes when you grep for a particluar process. $ ps -ef | grep xscreensaver jsaikia 4050 1 0 May14 ? 00:00:00 xscreensaver -nosplash jsaikia 14282 14245 0 16:54 pts/2 00:00:00 grep xscreensaver If you want not to print it the output, you can do “grep  Full Article…