What is /bin/sh -c?

Viewed 63343

What does /bin/sh -c mean? What does -c do?

2 Answers

With -c (command) it returns to the first shell instead of let open a new one.
It is very similar to: sudo su -l -c 'echo "run a command and return"'
Example:

#sudo su -l knoppix -c 'echo "run a command as ${USER} and return"'
run a command as knoppix and return
#
Related