What does touch report.txt do when report.txt already exists and contains data?
Que fait touch report.txt lorsque report.txt existe déjà et contient des données ?
Answers
AIt empties the file so that it becomes zero bytes long, keeping its nameElle vide le fichier pour qu'il ne fasse plus que zéro octet, en gardant son nom
BIt updates the file's timestamps without changing its contentsElle met à jour les horodatages du fichier sans modifier son contenu
CIt opens the file in a text editorElle ouvre le fichier dans un éditeur de texte
DIt shows an error because the file existsElle affiche une erreur car le fichier existe
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 RWFMIFOTRA exam practicealigned to Practice set: Linux and CMD Commands·3 marks·Hard
More Operating Systems questions
- You need to print the whole contents of a file. Which command does that?
- What does the Linux command `uname` do?
- What does the Linux command `chmod` do?
- On a Linux system, what does /boot contain?
- What does the Linux command `ping` do?
- What does the Linux command `ps` do?
- What does the Linux command `tar` do?
- You need to search a directory tree for files matching criteria. Which command does that?