Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.

Unit 3 MCQs Linux File System and File Management

CSE105 — Creative Engineering Workshop 60 questions. Pick an option to check it.

Read the notes Subjective questions

0 of 60 answered 0 right 0 wrong , 60 left

  1. Question 1 of 60 Linux File System Hierarchy Easy

    In Linux, the entire file system starts from a single top-level directory. What is this directory called?

  2. Question 2 of 60 Important Linux Directories (/bin, /sbin, /home, /etc, /usr, /var, /tmp, /opt, /lib) Easy

    Which directory typically stores the personal files and subdirectories of regular users?

  3. Question 3 of 60 Important Linux Directories (/bin, /sbin, /home, /etc, /usr, /var, /tmp, /opt, /lib) Easy

    Which directory is used to store system-wide configuration files?

  4. Question 4 of 60 Important Linux Directories (/bin, /sbin, /home, /etc, /usr, /var, /tmp, /opt, /lib) Easy

    The /tmp directory is primarily used to store which type of files?

  5. Question 5 of 60 Important Linux Directories (/bin, /sbin, /home, /etc, /usr, /var, /tmp, /opt, /lib) Easy

    Which directory commonly contains variable data such as log files, spool files, and mail?

  6. Question 6 of 60 Important Linux Directories (/bin, /sbin, /home, /etc, /usr, /var, /tmp, /opt, /lib) Easy

    Which directory mainly holds essential user command binaries like ls, cp, and cat?

  7. Question 7 of 60 Important Linux Directories (/bin, /sbin, /home, /etc, /usr, /var, /tmp, /opt, /lib) Easy

    The /sbin directory typically stores binaries intended mainly for which type of user?

  8. Question 8 of 60 Absolute and Relative Paths Easy

    Which of the following is an example of an absolute path?

  9. Question 9 of 60 Absolute and Relative Paths Easy

    In a relative path, what does the symbol .. represent?

  10. Question 10 of 60 pwd Easy

    What does the pwd command display?

  11. Question 11 of 60 cd Easy

    Which command is used to change the current working directory?

  12. Question 12 of 60 ls Easy

    Which command lists the contents of a directory?

  13. Question 13 of 60 mkdir Easy

    Which command is used to create a new directory?

  14. Question 14 of 60 rmdir Easy

    The rmdir command is used to remove a directory only when the directory is:

  15. Question 15 of 60 touch Easy

    What is the most common use of the touch command?

  16. Question 16 of 60 cat Easy

    Which command is commonly used to display the contents of a text file on the screen?

  17. Question 17 of 60 cp Easy

    Which command is used to copy files from one location to another?

  18. Question 18 of 60 mv Easy

    Besides moving files, the mv command is also commonly used to:

  19. Question 19 of 60 rm Easy

    Which command is used to delete (remove) files in Linux?

  20. Question 20 of 60 clear Easy

    What does the clear command do in the terminal?

  21. Question 21 of 60 Important Linux Directories (/bin, /sbin, /home, /etc, /usr, /var, /tmp, /opt, /lib) Medium

    A system administrator needs to store a third-party application that is not part of the default distribution. Which directory is conventionally intended for such optional add-on software packages?

  22. Question 22 of 60 Important Linux Directories (/bin, /sbin, /home, /etc, /usr, /var, /tmp, /opt, /lib) Medium

    Log files, mail spools, and print queues that constantly change in size are typically found under which directory?

  23. Question 23 of 60 Absolute and Relative Paths Medium

    You are currently in /home/user/projects. Which command uses a relative path to move to /home/user/documents?

  24. Question 24 of 60 Absolute and Relative Paths Medium

    Which of the following is an example of an absolute path?

  25. Question 25 of 60 rmdir Medium

    A user runs rmdir myfolder but receives the error Directory not empty. What is the most appropriate reason?

  26. Question 26 of 60 cp Medium

    Which command correctly copies an entire directory data along with all its subdirectories into /backup?

  27. Question 27 of 60 mv Medium

    In a single directory, a user runs mv report.txt summary.txt where summary.txt does not yet exist. What is the result?

  28. Question 28 of 60 ls Medium

    Which ls command lists all files including hidden ones in a long, detailed format?

  29. Question 29 of 60 File Searching using find Medium

    Which command finds all files ending in .log within /var and its subdirectories?

  30. Question 30 of 60 Disk Management Commands (du, df) Medium

    You want a human-readable report of free and used space on all mounted filesystems. Which command is best?

  31. Question 31 of 60 Disk Management Commands (du, df) Medium

    Which command estimates the total disk space consumed by a specific directory called photos?

  32. Question 32 of 60 touch Medium

    A user runs touch notes.txt on a file that already exists. What happens?

  33. Question 33 of 60 cat Medium

    Which command displays the contents of file1.txt and file2.txt combined into one output stream?

  34. Question 34 of 60 history command Medium

    Which command re-executes the command that was numbered 45 in your shell history?

  35. Question 35 of 60 su Medium

    A regular user wants to switch to the root account with root's full environment loaded. Which command is correct?

  36. Question 36 of 60 Directory Visualization using tree Medium

    Which tree command displays the directory structure limited to only 2 levels of depth?

  37. Question 37 of 60 mkdir Medium

    Which command creates the nested directory path project/src/main in one step, even if the parent directories do not exist?

  38. Question 38 of 60 rm Medium

    Which command forcibly deletes a directory oldapp and everything inside it without prompting?

  39. Question 39 of 60 Root Directory Structure Medium

    In the Linux filesystem hierarchy, what does the single character / at the very top represent?

  40. Question 40 of 60 read Medium

    In a shell script, what does the command read name do when executed?

  41. Question 41 of 60 Important Linux Directories (/bin, /sbin, /home, /etc, /usr, /var, /tmp, /opt, /lib) Hard

    A system administrator notices that /var is filling up rapidly on a busy web server. Which combination of contents is most likely responsible for this growth?

  42. Question 42 of 60 Absolute and Relative Paths Hard

    The current working directory is /home/user/projects. After running cd ../../etc, then cd ./network, what is the resulting absolute path (assuming it exists)?

  43. Question 43 of 60 rm Hard

    A user runs rm -rf /tmp/data / (with an accidental space before the final /). Assuming no protection flags are active, what is the intended target versus the actual danger?

  44. Question 44 of 60 Disk Management Commands (du, df) Hard

    You run df -h and see / at 100% full, but du -sh / reports far less than the disk capacity. What is the most likely explanation?

  45. Question 45 of 60 File Searching using find Hard

    Which find command correctly locates all regular files under /var/log modified in the last 24 hours and larger than 10 MB, then deletes them?

  46. Question 46 of 60 cp Hard

    You want to copy directory src to dest while preserving all attributes (permissions, timestamps, ownership, symlinks) and recursing into subdirectories. Which single option achieves this most completely?

  47. Question 47 of 60 mv Hard

    In directory /data containing files a.txt and b.txt, you run mv a.txt b.txt. What happens?

  48. Question 48 of 60 rmdir Hard

    You attempt rmdir /project/build but get Directory not empty. The directory contains only empty subdirectories a/, b/, and c/. Which command removes the whole tree using rmdir semantics?

  49. Question 49 of 60 ls Hard

    Which ls command lists all entries (including hidden), sorts by modification time with newest last, and shows sizes in human-readable form in long format?

  50. Question 50 of 60 su Hard

    What is the key behavioral difference between su user and su - user?

  51. Question 51 of 60 history command Hard

    A user wants to re-execute the command that was run 3 commands ago in the current session. Which shell shortcut does this correctly in bash?

  52. Question 52 of 60 Directory Visualization using tree Hard

    Which tree command displays only directories (no files), limited to 2 levels of depth, including hidden directories?

  53. Question 53 of 60 read Hard

    In a bash script, the line read -p "Name: " -t 5 name behaves how?

  54. Question 54 of 60 cat Hard

    Which command uses cat with a here-document to write two lines into file.txt, overwriting any existing content?

  55. Question 55 of 60 Root Directory Structure Hard

    According to the Filesystem Hierarchy Standard (FHS), which directory is intended to be mountable read-only and shareable across multiple hosts because it contains no host-specific or variable data?

  56. Question 56 of 60 touch Hard

    You run touch -t 202401011200.30 report.log on an existing file. What is the effect?

  57. Question 57 of 60 mkdir Hard

    Which command creates the nested path /app/config/db in one step even if /app and /app/config do not yet exist, and sets permissions to 755?

  58. Question 58 of 60 pwd Hard

    A directory /data/real has a symlink /data/link pointing to it. You cd /data/link then run pwd and pwd -P. What do they output respectively?

  59. Question 59 of 60 Disk Management Commands (du, df) Hard

    Which command reports the total apparent size (not disk-allocated blocks) of a directory /backup in a single summarized human-readable line?

  60. Question 60 of 60 Linux File System Hierarchy Hard

    During early boot before /usr is mounted, the system must run essential recovery and administrative binaries. Which pair of directories was historically kept on the root filesystem specifically to guarantee these binaries are available at that stage?

That's unit 3

Answer a few questions and your score shows up here.