placeholder image to represent content

File Permission Commands in Linux

Quiz by Talent

Our brand new solo games combine with your quiz, on the same screen

Correct quiz answers unlock more play!

New Quizalize solo game modes
20 questions
Show answers
  • Q1
    Which command is used to change file permissions in Linux?
    cp
    chown
    chmod
    ls
    30s
  • Q2
    What does the 'r' in file permissions represent in Linux?
    Read permission
    Run permission
    Rename permission
    Write permission
    30s
  • Q3
    Which numeric mode in 'chmod' gives read, write, and execute permissions for the owner and no permissions for group and others?
    755
    700
    777
    644
    30s
  • Q4
    What command would you use to view the current permissions of a file in Linux?
    ls -l
    chown
    cp
    chmod
    30s
  • Q5
    What does the 'x' in file permissions represent in Linux?
    Execute permission
    Read permission
    Write permission
    Delete permission
    30s
  • Q6
    Which of the following commands would you use to grant execute permissions to all users for a script file named 'script.sh'?
    chmod o+r script.sh
    chmod a+x script.sh
    chmod u+x script.sh
    chown all+x script.sh
    30s
  • Q7
    What is the effect of the command 'chmod 644 myfile.txt' in Linux?
    It gives read, write, and execute permissions to everyone.
    It removes all permissions for everyone.
    It sets read and write permissions for the owner, and read-only permissions for group and others.
    It sets execute permission for the owner only.
    30s
  • Q8
    What does the command 'chmod g-w myfile.txt' do?
    It grants execute permission to everyone on 'myfile.txt'.
    It removes write permission for the group on 'myfile.txt'.
    It adds write permission for the group on 'myfile.txt'.
    It removes read permission for the group on 'myfile.txt'.
    30s
  • Q9
    What is the default permission setting for newly created files in Linux?
    666 (rw-rw-rw-)
    644 (rw-r--r--)
    755 (rwxr-xr-x)
    777 (rwxrwxrwx)
    30s
  • Q10
    What will the command 'chmod 400 secret.txt' do?
    It allows only the owner to read the file, and no one else can access it.
    It only allows the owner to write to the file.
    It makes the file executable for everyone.
    It gives read and write permissions to everyone.
    30s
  • Q11
    Which command is used to change the permissions of a file in Linux?
    ls
    mkdir
    chmod
    chown
    30s
  • Q12
    What does the command 'chmod 755 file.txt' do?
    Changes the file owner to a specified user
    Deletes the file
    Sets the owner to read, write, execute and the group and others to read and execute
    Makes the file writable by everyone
    30s
  • Q13
    What does the permission string 'rwxr-xr--' represent?
    Only the owner has read permission
    Everyone has full permissions
    The file is unreadable by anyone
    Owner has full permissions, group has read and execute, others have read
    30s
  • Q14
    Which command allows you to view the current permissions of a file in Linux?
    chmod
    chown
    ls -l
    pwd
    30s
  • Q15
    What is the effect of the command 'chmod 644 myfile.txt'?
    Owner can read, group can write, others have no access
    Everyone can read, write, and execute
    Owner can read and write; group and others can read only
    Owner can read, write, and execute; group and others can read
    30s

Teachers give this quiz to your class