rmdir old_logs fails with “Directory not empty”. What does this tell you about rmdir?
rmdir old_logs échoue avec le message « Directory not empty ». Qu'est-ce que cela indique sur rmdir ?
Answers
AIt only works when run as the root userElle ne fonctionne que lorsqu'elle est lancée par root
BIt needs the -f option to work on any directory at allElle a besoin de l'option -f pour fonctionner sur n'importe quel répertoire
CIt removes a directory only when it is emptyElle ne supprime un répertoire que s'il est vide
DIt only works on directories under /tmpElle ne fonctionne que sur les répertoires situés sous /tmp
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·2 marks·Medium
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?