Bird Brother Linux Private cuisine seventh chapter problem Solving

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.