"/bin/sh 'ls -l -R'" vs "/bin/sh -c 'ls -l -R'"

Posted by Vladimir Bezugliy on Stack Overflow See other posts from Stack Overflow or by Vladimir Bezugliy
Published on 2010-03-23T14:02:21Z Indexed on 2010/03/23 14:13 UTC
Read the original article Hit count: 558

Filed under:
|
|
|

What is the difference between following two commands?

/bin/sh 'ls -l -R'
/bin/sh -c 'ls -l -R'

© Stack Overflow or respective owner

Related posts about shell

Related posts about shell-scripting