اختبار شهادة انظمة اللينكس CompTIA Linux+ XK0-005

السؤال 84 من 122

كل الأسئلة

A user created the following script file:
#!/bin/bash
# FILENAME: /home/user/script.sh
echo "hello world"
exit 1
However, when the user tried to run the script file using the command ~/script.sh, an error returned indicating permission was denied. Which of the following should the user execute in order for the script to run properly?

الخيارات

  • A chmod u+x /home/user/script.sh
  • B chmod 600 /home/user/script.sh
  • C chmod 007 /home/user/script.sh
  • D chmod o+r /home/user/script.sh

النقاشات

لا توجد نقاشات منشورة لهذا السؤال حالياً.