Question

    To change mode of myfile to 'rwxr–r–'  , the

    command used is
    A Chmod(myfile,0742). Correct Answer Incorrect Answer
    B Chmod(myfile,0474). Correct Answer Incorrect Answer
    C Chmod(myfile,0747). Correct Answer Incorrect Answer
    D Chmod(myfile,0744) Correct Answer Incorrect Answer
    E All of the above Correct Answer Incorrect Answer

    Solution

    The "chmod" command is used to change the permissions of a file or directory. In this case, the "myfile" is being changed to "rwxr--r--", which means the owner has read, write, and execute permissions, while the group and others have only read permission. The numbers in the command represent the permissions in octal form, with the first digit representing the owner's permissions, the second digit representing the group's permissions, and the third digit representing others' permissions.

    Practice Next