Home / CSE MCQs / C-MCQs :: Basic Linux

CSE MCQs :: C-MCQs

  1. Which of these commands will set the permissions on file textfile to read and write for the owner, read for the group, and nothing for everyone else?
  2. A.
    chmod 046 textfile
    B.
    chmod 640 textfile
    C.
    chmod 310 textfile
    D.
    chmod rw r nil textfile

  3. If you are a root user, how can you grand execute permission only for the owner of the file project1?
  4. A.
    chmod +x project1
    B.
    chmod u+x project1
    C.
    chmod a+x project1
    D.
    chmod U+X project1

  5. A user executes the following command successfully:
    $ chmod +x file1.txt
    Which of the following is true of the output of this command?
  6. A.
    The command results in adding execute permission to the user who ran this command
    B.
    The command results in adding execute permission for the owner of the file
    C.
    The command results in an error since the file is not an executable file
    D.
    The command results in adding execute permission for all users (i.e., user,group & others)

  7. What does chmod +t do?
  8. A.
    wrong syntax
    B.
    set effective userid for filename
    C.
    set effective groupid for filename
    D.
    set the sticky bit

  9. Which of the following umask settings doesn't allow execute permission to be set by default on directory files
  10. A.
    222
    B.
    111
    C.
    000
    D.
    444

  11. Which of the following umask settings allow execute permission to be set by default on regular files
  12. A.
    222
    B.
    111
    C.
    000
    D.
    None of the given choices

  13. The command chmod 4777 a.out
  14. A.
    will set the suid bit of a.out
    B.
    will set the suid bit of a.out only if the command is issued by root
    C.
    is not a valid command
    D.
    will set the sticky bit of a.out

  15. Which command is used to check filesystem usage in a system?
  16. A.
    mount
    B.
    df
    C.
    du
    D.
    dd

  17. Which among the following allows fast file system recovery?
  18. A.
    Ext2
    B.
    Journaling
    C.
    Caching
    D.
    Sysfs

  19. Which filesystem can be used to change certain kernel parameters at runtime using sysctl command?
  20. A.
    Ext3
    B.
    Sysfs
    C.
    Ext4
    D.
    Procfs