Running ./backup.sh returns “Permission denied”, even though the user owns the file. What is the usual fix?
Lancer ./backup.sh renvoie « Permission denied », alors que l'utilisateur est propriétaire du fichier. Quelle est la correction habituelle ?
Answers
ARun chmod +x backup.sh, then run it againExécuter chmod +x backup.sh, puis relancer le script
BRename the file to backup.exe and try again from the same directoryRenommer le fichier en backup.exe et réessayer depuis le même répertoire
CMove the script into the /tmp directoryDéplacer le script dans le répertoire /tmp
DDelete the first line of the scriptSupprimer la première ligne du script
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?