Past ExamsRwanda ICT preparation

Topics / Operating Systems

A configuration file is full of comment lines starting with #. Which command shows only the lines that are not comments?

Un fichier de configuration est rempli de lignes de commentaire commençant par #. Quelle commande n'affiche que les lignes qui ne sont pas des commentaires ?

Answers
Agrep "^#" app.confgrep "^#" app.conf
Bgrep -c "^#" app.confgrep -c "^#" app.conf
Cgrep -v "^#" app.confgrep -v "^#" app.conf
Dgrep -i "^#" app.confgrep -i "^#" app.conf
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·3 marks·Hard

More Operating Systems questions