Past ExamsRwanda ICT preparation

Topics / Operating Systems

What is the purpose of the first line #!/bin/bash in a Linux script?

À quoi sert la première ligne #!/bin/bash dans un script Linux ?

Answers
AIt names the interpreter that runs the scriptElle désigne l'interpréteur qui exécute le script
BIt is a comment that the system ignores completely, with no effect at allC'est un commentaire que le système ignore complètement, sans aucun effet
CIt makes the script run as rootElle fait exécuter le script en tant que root
DIt deletes the script after it runsElle supprime le script après son exécution
The answer and explanation are in the full bank.

This question is one of 2,831 in the paid banks. Each comes with the correct answer and the reasoning behind it, not just a mark.

Unlock for 5,000 RWF

MIFOTRA exam practicealigned to Practice set: Linux and CMD Commands·2 marks·Medium

More Operating Systems questions