What does the following shell command do in linux when issue

What does the following shell command do in linux when issued from the command line?

$ find somedir -exec chmod 755 {} \\; -print

a.) change permissions recursively for all files in somedir to executable

b.) make the first 755 files in somedir executable

c.) change permissions recursively for all files in somedir to non-executable

d.) change permissions recursively for all files in somedir

What is the correct answer?

Solution

option a it will recursivley change permisions for all files .

Permission Modes

The permission mode is computed by adding up the following values for the user, the file group, and for everyone else. The diagram shows how.

What does the following shell command do in linux when issued from the command line? $ find somedir -exec chmod 755 {} \\; -print a.) change permissions recursi

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site