1. Find the file size from 50KB to 60KB under/etc, and list the permissions in full
The answer is Find/etc-size +50k-size-60k-exec ls-l {} \;
or write find/etc \ (-size +50k-and-size-60k \)-exec ls-l {} \;
2. Find the file size greater than 50KB and the file owner is not the root file name, and the permissions are fully listed
The answer is Find/etc-size +50k! -user root-exec ls-l {} \;
Here! For the "non" decision, which means that if the back is true, the output
3. Find files with capacity greater than 1500KB and capacity equal to 0 under/etc
As the complete output is not required, the simplest answer to this question is
Find/etc-size +1500k; Find/etc-size 0k
To display the output completely, you can also write this
Find/etc-size +1500k-exec ls-l {} \;; Find/etc-size 0k-exec ls-l {} \;
But it is too cumbersome, but this command can be seen, add not escape the different meanings
If you use the-o parameter for this question
This can be solved
FIND/ETC \ (-size +1500k-o-size 0k \)-exec ls-l {} \;
Here, you have to use an escape () to surround-O to get the desired effect.
This article is from the "Technology Growth Road" blog, please be sure to keep this source http://rukawawang.blog.51cto.com/10469252/1672708
Bird Brother Linux Private cuisine seventh chapter problem Solving