Подтвердить что ты не робот

Что такое /bin/sh -c?

Что означает /bin/sh -c? Что делает -c?

4b9b3361

Ответ 1

Из man-страницы 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.

Пример:

$ bash -c ls

запустит bash и выполнит команду ls.

/bin/sh обычно является символической ссылкой на оболочку.