The correct answer is B. find ~ -type d -exec chmod 700 {} ; because it recursively targets all directories within the current user’s home directory and sets their permissions to 700, which restricts access exclusively to the owner.
In Linux permission notation, 700 means:
Owner: read (r), write (w), execute (x)
Group: no permissions
Others: no permissions
This ensures that only the user can access, modify, and traverse the directories, which is a common security requirement for protecting personal or sensitive data. The find ~ -type d portion ensures that only directories (not files) within the user’s home directory are selected. The -exec chmod 700 {} ; part applies the permission change to each directory found.
Option A is incorrect because it applies permissions 777 (full access to everyone) and targets files across the entire filesystem, which is a major security risk.
Option C is incorrect because it sets permissions to 750, which still allows group access. Additionally, it targets all directories under /home, not just the current user’s home directory.
Option D is incorrect because 755 allows read and execute permissions to group and others, meaning directories are not restricted to the user only.
From a Linux+ security perspective, properly managing file and directory permissions is critical to maintaining system confidentiality and integrity. Using chmod 700 ensures strict access control, and combining it with find allows administrators to efficiently enforce secure permissions across directory structures.