{"id":7769,"date":"2024-07-04T12:48:30","date_gmt":"2024-07-04T06:48:30","guid":{"rendered":"https:\/\/mcqacademy.com\/en\/?post_type=mcq&#038;p=7769"},"modified":"2024-07-04T13:40:54","modified_gmt":"2024-07-04T07:40:54","slug":"which-command-is-used-to-grant-execute-permission-to-the-group-for-a-file-named-script-sh-in-linux","status":"publish","type":"mcq","link":"https:\/\/mcqacademy.com\/en\/mcq\/which-command-is-used-to-grant-execute-permission-to-the-group-for-a-file-named-script-sh-in-linux\/","title":{"rendered":"Which command is used to grant execute permission to the group for a file named &#8220;script.sh&#8221; in Linux?"},"content":{"rendered":"","protected":false},"author":1158,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","topic":[1505],"subject":[1504],"education_level":[],"class_list":["post-7769","mcq","type-mcq","status-publish","hentry","topic-kali-linux","subject-operating-systems"],"mcq_note":"<strong>The command used to grant execute permission to the group for a file named \"script.sh\" in Linux is: chmod g+x script.sh<\/strong>\r\n\r\n<span style=\"text-decoration: underline\"><strong>Explanation of the options provided:<\/strong><\/span>\r\n<ul>\r\n \t<li><strong>chmod g+x script.sh:<\/strong> Grants execute (+x) permission to the group (g) for the file script.sh.<\/li>\r\n \t<li><strong>chmod u+x script.sh:<\/strong> Grants execute permission to the owner (u) of the file script.sh.<\/li>\r\n \t<li><strong>chmod o+x script.sh:<\/strong> Grants execute permission to others (o or everyone else) for the file script.sh.<\/li>\r\n \t<li><strong>chmod a+x script.sh:<\/strong> Grants execute permission to all (a, which stands for owner, group, and others) for the file script.sh.<\/li>\r\n<\/ul>","mcq_options":[{"right":"yes","answer":"chmod g+x script.sh"},{"right":"no","answer":"chmod u+x script.sh"},{"right":"no","answer":"chmod o+x script.sh"},{"right":"no","answer":"chmod a+x script.sh"}],"multi_answers":"no","subject_terms":[{"id":1504,"title":"Operating Systems","slug":"operating-systems"}],"topic_terms":[{"id":1505,"title":"Kali Linux","slug":"kali-linux"}],"_links":{"self":[{"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/mcq\/7769","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/mcq"}],"about":[{"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/types\/mcq"}],"author":[{"embeddable":true,"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/users\/1158"}],"replies":[{"embeddable":true,"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/comments?post=7769"}],"wp:attachment":[{"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/media?parent=7769"}],"wp:term":[{"taxonomy":"topic","embeddable":true,"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/topic?post=7769"},{"taxonomy":"subject","embeddable":true,"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/subject?post=7769"},{"taxonomy":"education_level","embeddable":true,"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/education_level?post=7769"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}