tags:

views:

43

answers:

1

correct me if i'm wrong

its the path location where the shell cmds resist and interpreted as C prog. so that if a cmd is passed it will call that function lokking in /bin/sh

plz kindly guide me if im wrong

+1  A: 

From the man-page of bash:

   -c string If  the  -c  option  is  present, then commands are read from
             string.  If there are arguments after the  string,  they  are
             assigned to the positional parameters, starting with $0.

Example:

$ bash -c ls

will launch bash and execute the command ls.

Btw, since you have a trailing slash on /bin/sh/ you seem to believe that sh is a directory. I've never seen a system in which /bin/sh is a directory. It's usually a symlink to a shell.

aioobe
thnks i understand now