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

CSE MCQs :: C-MCQs

  1. How do you rename file "new to file "old?
  2. A.
    mv new old
    B.
    move new old
    C.
    cp new old
    D.
    rn new old

  3. What command is used to copy files and directories?
  4. A.
    copy
    B.
    cp
    C.
    rn
    D.
    cpy

  5. When mv f1 f2 is executed which file's inode is freed?
  6. A.
    f1
    B.
    f2
    C.
    new inode will be used
    D.
    implementation dependent

  7. Any file's attribute information is stored in which structure on the disk
  8. A.
    Inode
    B.
    Data blocks
    C.
    File blocks
    D.
    Directory file

  9. By default if any regular file is created, the number of link is displayed as 1 ?
  10. A.
    True
    B.
    False
    C.
    Can't be determined

  11. How many links are created when we creat a directory file?
  12. A.
    1
    B.
    2
    C.
    3
    D.
    4

  13. A user creates a link to a file file1 using the following command "ln file1 file2. Which of the following is not true?
  14. A.
    file1 and file2 have the same inode numbers
    B.
    The number of links for file1 is displayed as 1
    C.
    The number of links for file1 is displayed as 2
    D.
    The number of links for file2 is displayed as 2

  15. There are two hard links to the "file1? say hl and h2 and a softlink sl. What happens if we deleted the "file1?
  16. A.
    We will still be able to access the file with hl and h2 but not with sl
    B.
    We will not be able to access the file with hl and h2 but with sl
    C.
    We will be able to access the file with any of hl, h2 and sl
    D.
    We will not be able to access the file with any of hl, h2 and sl

  17. If two files on same partition point to the same inode structure they are called
  18. A.
    Soft links
    B.
    Hard links
    C.
    Alias
    D.
    Special files

  19. Deleting a soft-link
  20. A.
    Deletes the destination file
    B.
    Deletes both the softlink and the destination file
    C.
    Deletes just the softlink
    D.
    backup of the destination is automatically created