Find usage, yum configuration

Source: Internet
Author: User

Find

Find Lookup Scope parameters

Example: Find/-name ' *.txt* '

1. Wildcard characters can be used;

2.-perm: Used to find files with a specific set of permissions;

Example: find-perm-004 (-represents matching each,/represents matching one of them)

3.-size: The representative knows the file size

Example: Find-size 10M (+ represents greater than,-represents less than)

4.-mmin: Plus minutes to represent time

Example: find-mmin-120(+ represents greater than,-represents less than)

5.-type: Representative type (f: File D: Directory L: Soft link B: Block device)

Example: Find/etc-type F

6.-links: Add a number on the option to find all files with a specific number of hard links

Example: Find/type f-links-1

7. Can add-exec adding operation

Example: Find/etc-name *.conf-exec cp {}/root/backup \;

(\; End format is fixed)

Case:

After you create a user delete user, you can no longer create;

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/89/D4/wKioL1gfHxuSK0L4AABeBMgM5Ro143.png-wh_500x0-wm_3 -wmp_4-s_2654388189.png "style=" Float:none; "title=" 1.png "alt=" Wkiol1gfhxusk0l4aabebmgm5ro143.png-wh_50 "/>


Into the/home/myuser found and did not delete clean;

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/89/D7/wKiom1gfHxzADj6-AAAdIxm0W7c020.png-wh_500x0-wm_3 -wmp_4-s_2091651613.png "style=" Float:none; "title=" 2.png "alt=" Wkiom1gfhxzadj6-aaadixm0w7c020.png-wh_50 "/>

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/89/D7/wKiom1gfHxzhJ6mmAAA3myQNXzc537.png-wh_500x0-wm_3 -wmp_4-s_202415540.png "style=" Float:none; "title=" 3.png "alt=" Wkiom1gfhxzhj6mmaaa3myqnxzc537.png-wh_50 "/>


The search is completely deleted by looking at the ID of MyUser;

Use command: Find/uid 1002-exec rm-rf {} \;

You can create it after you have completely deleted it.

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M02/89/D4/wKioL1gfHx3Qcg7TAABtq3Xjmdk570.png-wh_500x0-wm_3 -wmp_4-s_3151685639.png "style=" Float:none; "title=" 4.png "alt=" Wkiol1gfhx3qcg7taabtq3xjmdk570.png-wh_50 "/>


Yum Source (take the virtual machine on VMware as an example):

1.cd/etc/yum.repo.d

2.vim Myrepo.repo

[Reponame]

Name=my Repo

Baseurl=file:///mnt/cdrom

enabled=1

Gpgcheck=0(not checked)

(or you can generate it yourself by Yum-config-manager--add-repo=file:///mnt/cdrom, but you'll need to go inside the repo file to add the Gpgcheck option)

3.yum Clean All

4.yum Makecache (Clear Cache)

5.yum-y Install httpd (-y means no more queries during installation)

6.rpm-qa | grep httpd

7.RPM-E httpd (uninstall)


Attached:RPM package Format: httpd-2.4.6-7.el7.x86_64.rpm

HTTPD: Package Name

2.4.6:2: Major version number; 4: Minor version number (odd in development, even more stable); 6: Modified version

7: Internal revision, seventh time

EL7: Forget it.

X86_64: Architecture






This article is from the "11773640" blog, please be sure to keep this source http://11783640.blog.51cto.com/11773640/1870033

Find usage, yum configuration

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.