SóProvas


ID
2147317
Banca
INSTITUTO AOCP
Órgão
EBSERH
Ano
2016
Provas
Disciplina
Sistemas Operacionais
Assuntos

Em sistemas operacionais Linux é possível criar scripts para automatizar tarefas rotineiras. A extensão de arquivo utilizada para Shell Script é

Alternativas
Comentários
  • Gabarito D

    O .sh é a extensão de arquivo utilizada para Shell Script no Linux.

     

    "Retroceder Nunca Render-se Jamais !"
    Força e Fé !
    Fortuna Audaces Sequitur !

  • Questão deveria ser anulada, pois o Linux não exige extensão de arquivos. Posso utilizar .doc em um arquivo escrito em shell e ele vai executar normalmente como um script em shell.

     

    Questão clássica de qual é a menos errada. Gabarito D.

  • Perfeito michael hempkemeyer.

     

    Conforme informado em https://stackoverflow.com/a/27824204/6485987 , as únicas exigência para rodar um Shell script são:

     - It needs to have a shebang line at the top: #!/bin/bash

     - And use the chmod +x command so that the system recognizes it as an executable file. It then needs to be installed in one of the directories listed in your $PATH.

    Extensão nenhuma é exigida. É somente uma boa prática.