bash shell

Asked by Chetan Joshi Q. What is the best way to find out what shell I’m using. echo $SHELL is not so reliable. Please let me know any tiny command or trick. A. Chetan, echo $SHELL should work. But here is old good UNIX trick. Use the command ps with -p {pid} option, which selects […]

{ 28 comments }

Use any one of the following command to create temporary empty file names. The first command is special as it use the redirection operator >, the redirection refers to the standard output. So you are creating a new file or destroying existing file:

{ 9 comments }

By default when you use FreeBSD’s BASH shell and if you hit Home, Del, Insert keys all of them just prints ~ (some garbage is printed ). To get rid of this problem, edit /etc/profile file and define key binding. 1) Open your bash global profile file: # vi /etc/profile 2) Add following line to […]

{ 13 comments }