Past ExamsRwanda ICT preparation

Topics / Operating Systems

In a cron job, an administrator writes backup.sh > /dev/null 2>&1. What is the effect?

Dans une tâche cron, un administrateur écrit backup.sh > /dev/null 2>&1. Quel en est l'effet ?

Answers
AAll output is emailed to the root userToute la sortie est envoyée par e-mail à l'utilisateur root
BThe script runs twice, once for each outputLe script s'exécute deux fois, une fois par sortie
COutput is saved in a file called null in /devLa sortie est enregistrée dans un fichier appelé null dans /dev
DBoth normal output and errors are discardedLa sortie normale et les erreurs sont toutes deux jetées
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