PrepAway - Latest Free Exam Questions & Answers

Which of the following commands will you execute to fix other writable files in your home directory?

Which of the following commands will you execute to fix other writable files in your home
directory?

PrepAway - Latest Free Exam Questions & Answers

A.
find -perm -002 -exec chmod o-w {} \;

B.
find /home -type d -ls

C.
find ~ -perm -002 -exec chmod o-w {} \;

D.
find ~ -perm -002 -exec chmod -w {} \;

Explanation:

You will use find ~ -perm -002 -exec chmod o-w {} \; command to fix other writable files in your
home directory.
Answer option B is incorrect. The find /home -type d -ls command is used to do an ls -l style listing
of all directories in /home/.

Answer options A and D are incorrect. There are no such commands in Linux.


Leave a Reply