bash shell

Raju asks:

How can I Debug a shell scripts?

This is most common question asked by new admins or UNIX user.

Shell scripting debugging can be boring job (read as not easy). There are various ways to debug a shell script.

{ 13 comments }

nixCraft FAQ Roundup Oct 29, 2008

by Vivek Gite on October 29, 2006 · 0 comments

Couple of quick question answered by me: => Host a domain without CPanel or Plesk Control Panel => Bash shell display only hidden (dot) files => Monitor Linux user activity in real time => Apache name based VirtualHost example => How do I find out my mail server blacklisted? => Solaris find out a package [...]

{ 0 comments }

Explains how to find out if a file exists or not under Linux / UNIX bash shell.

{ 23 comments }

This article was organically contributed by monk. HASH tables and PATH is not the first method locating your program / executable files. Your program can be a shell function or builtin command or an alias. Here is the complete sequence adopted by BASH shell to execute your command: Before a command is executed REDIRECTION is [...]

{ 12 comments }

This article was organically contributed by monk. When you are logged in to a Linux server and you type a command. It is the responsibility of the shell to interpret your command. Here I will explain how BASH shell finds out which program to run. The method used by SHELL is straightforward but often creates [...]

{ 6 comments }

How do I find out what shell I’m using?

by nixcraft on November 15, 2005 · 16 comments

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 [...]

{ 16 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:

{ 7 comments }