亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

? ?? ? ???? ??? ?? ? ?? ?? Linux?? Find ??? ???? ??? ?? ??

Linux?? Find ??? ???? ??? ?? ??

Mar 15, 2019 pm 04:25 PM
find linux ?? ??

Linux Find ??? Linux ??? ???? ????? ?? ??? ?? ? ?????. ? ??? ???? ??? ?? ??? ???? ???? ??? ??? ???? ???? ???? ??? ????? ??? ? ????. ?? ????? ?? ??? ???? ??? ?????. ??? ??? ????.

Linux?? Find ??? ???? ??? ?? ??

Linux ?? ??

find ??? ???? ?? ??, ??, ??, ???, ?? ?? ???? ??? ?????. grep ?? sed? ?? ?? ??? ?? ???? ??? ??? ?? ??? ??? ?? ????.

find ?? ?? ??? ???? ?? ?? ?? ??:

find [options] [path...] [expression]

??:

● options ?? : ??? ?? ??, ??? ??, ??? ?? ?? ?????.

● Path... ??: find? ??? ??? ?? ????? ?????.

● ??? ??: "??", "?? ??", "???? ??? ??"?? ?????.

?? ?? ???????.

find  -L /home/projects/ -name "*.js" -exec chmod 644 {} \;

??: ? ???? ?? ?? -L(??)? ???? ????. ?? ?? find ??? ?? ??? ??? /home/projects/(path.path) ??? ?? ????? ??? ? ????. ..) ???? .js(expression)? ??? ?? ??? ?? ???? ?? ??? ??? 644? ?????.

???? ??? ?? ??? ??????

?? ?? ?? ??? ????? -type ?? ??? ???? ???.

?? ??? ?? ???? ???? ??? ? ????.

● f: ?? ??

●● d: ????

●●l: ??? ??

● c: ?? ??

● b: ?? ??

●● p: ??? ???(FIFO)

● s: ??

?:

?? ?? ?????? ?? ????? ???? ??? ??? ? ????.

find . -type d

?? ????? ??? ?????. ??? ??? ?? ??:

find / -type c

???? ??? ?? ??? ??????

???? ??? ?? ?? ??? find ??? ?? ???? ??? ????. ???? ??? ???? ????? ?? ??? ?? -name ??? ??????.

?:

/home/linuxize ?????? document.pdf?? ??? ????? ?? ??? ??? ? ????.

sudo find /home/linuxize -type f -name document.pdf

????? ???? ?? ??? ????? ?? ??? ??? ? ????. iname? ??? ????. ?? ?? ??:

sudo find /home/linuxize -type f -iname document.pdf

??: ? ??? Document.pdf, DOCUMENT.pdf..etc? ?????.

???? ??? ?? ??? ??????

???? ??? ???? ?? ???? ??? ???? ?? ????.

?:

.log.gzinside /var/log/nginx ????? ??? ?? ??? ???? ??? ??? ? ????.

find /var/log/nginx -type f -name '*.log.gz'

?? ??? ???? ?? ?? ??? ???? ???, *.log .gz? -not ????? ??? ? ????. ?? ?? *.log.gz? ??? ?? ?? ??? ???? ??? ?????.

find /var/log/nginx -type f -not -name '*.log.gz'

How to find files by size?

?? ??? ???? ??? ???? -? ???? ???. ?? ??? ??? ?? ????? ?? ?????. ?? ???? ???? ?? ??? ??? ? ????. b: 512??? ??(???) c: ???

● w: ?? ??? ??

● k: ????? M: ?????

● G: ?????

?? ?? :

/tmp ?????? ??? 1024???? ?? ??? ???? ?? ??? ??? ? ????.

find /tmp -type f -size 1024c

find ??? ???? ??? ??? ???? ??? ?? ??? ??? ?? ????. ?:

?? ?? ?????? 1MB ??? ?? ??? ??? ? ????. ?? ???? ?? ? ?? ?? ??? ???? ???.

find . -type f -size -1M

??? 1MB?? ? ??? ????? ??? ???? ???. ??? ?? +:

find . -type f -size +1M

?? ?? ?? ?? ??? ??? ? ????. ?? ??, ?? ??? 1MB?? 2MB ??? ?? ??? ????.

find . -type f -size +1M -size 21M

?? ???? ??? ?? ??? ??????

find ??? ??? ??, ??? ?? ?? ??? ???? ??? ??? ?? ????. ???? ??? ?? ????? ??? ? ?? ??? ???? ??? ?? ?? ??? ? ????.

?:

?? ?? ???? ?? ??? ????? ?? ??? ???????. ?? 5? ?? ??? .conf? ??? /etc/dovecot/conf.d/ ????? ?? ??? ?? ???? ? ????.

find /etc/dovecot/conf.d -name "*.conf" -mtime 5

?? 30? ??? ??? / ? ????:

find /home -mtime +30 -daystart

???? ??? ?? ??? ??????

?? ??? ?? ??? ?????? -perm ??? ???? ???. ?:

要在/var/www/html目錄中查找權(quán)限為775的所有文件:

find /var/www/html -perm 644

還可以使用減號-或斜杠/為數(shù)字模式添加前綴。

當(dāng)斜杠/用作前綴時,至少一個類別(用戶,組或其他類別)必須至少為文件匹配設(shè)置相應(yīng)的位。

find . -perm /444

說明:搜索對用戶,組或其他人設(shè)置了讀權(quán)限的所有文件。

如果使用減號-作為前綴,則必須至少設(shè)置要匹配的文件。

find . -perm -664

說明:搜索對所有者和組具有讀寫權(quán)限的文件,并且其他用戶可以讀取。

如何按所有者查找文件?

要查找特定用戶或組擁有的文件,可以使用-user和-group選項。

例如,要搜索用戶擁有的所有文件和目錄linuxize,可以運行:

find / -user linuxize

這是更高級的示例,假設(shè)是希望查找用戶www-data擁有的所有文件,并將匹配文件的所有權(quán)從www-data更改為nginx:

find / -user www-data -type f  -exec chown nginx {} \;

相關(guān)視頻教程推薦:《linux教程

以上就是本篇文章的全部內(nèi)容,希望能對大家的學(xué)習(xí)有所幫助。更多精彩內(nèi)容大家可以關(guān)注php中文網(wǎng)相關(guān)教程欄目?。。?/p>

? ??? Linux?? Find ??? ???? ??? ?? ??? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? ????? ??
? ?? ??? ????? ???? ??? ??????, ???? ?????? ????. ? ???? ?? ???? ?? ??? ?? ????. ???? ??? ???? ???? ??? ?? admin@php.cn?? ?????.

? AI ??

Undresser.AI Undress

Undresser.AI Undress

???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover

AI Clothes Remover

???? ?? ???? ??? AI ?????.

Video Face Swap

Video Face Swap

??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

???

??? ??

???++7.3.1

???++7.3.1

???? ?? ?? ?? ???

SublimeText3 ??? ??

SublimeText3 ??? ??

??? ??, ???? ?? ????.

???? 13.0.1 ???

???? 13.0.1 ???

??? PHP ?? ?? ??

???? CS6

???? CS6

??? ? ?? ??

SublimeText3 Mac ??

SublimeText3 Mac ??

? ??? ?? ?? ?????(SublimeText3)

???

??? ??

??? ????
1597
29
PHP ????
1488
72
???
??? ??? Linux? Windows?? ??? ??? ?? ??? ??? Linux? Windows?? ??? ??? ?? Jun 09, 2025 am 12:17 AM

Linux? ??? ??? ????? Windows?? ????. 1) Linux? ???? ??? ???? ?? ?? ??? ???? ?? Windows? ???? ??? ?????. 2) Linux? ???? ?? ??? ?? ??? ??? ??? ?? ? ? ????. 3) Linux ????? ?? ?? ??? ??? ?? ?? ??? ?????. 4) Linux? ?? ???? ??? ??? ????. 5) Linux ?? ??? ????? Windows? ???? ????. ??? ?? ??? ??? ?????????.

I/O ??? ??? Linux? Windows?? ??? ??? ?? I/O ??? ??? Linux? Windows?? ??? ??? ?? Jun 07, 2025 am 12:06 AM

LinuxOftenOutferformswindowsini/OperformancedUeToitsCustomizableKernelandFilesystems, whileWindowsOfforiformanceAcreAcrossHardware.1) LinuxExcelswithCustOmizablei/OschedulerslikeCecfQanddeadline, Arthroughtopplinations? ??????

Windows (?? ??)? ?? Linux? ???? ??? ?????? Windows (?? ??)? ?? Linux? ???? ??? ?????? Jun 18, 2025 am 12:19 AM

Linux ? Windows? ?? ???? ???? ??? ?? ? ?? ?????. 1. ???? ???? ???? ?? ???? ???? ??? ??? ?? ?????. 2. Ventoy ?? Rufus? ???? Linux Boot USB ???? ??? Ubuntu? ??????. 3. ?? ?? "?? ???? ??"?? ???? ?????? ( /?? 20GB, ? ?? ??, ?? ?? ??); 4. ???? ??? ???? ?? ???? ??? ??????. 5. ?? ? Grub Boot ??? ???? ??? Boot-Repair? ???? ??? ????? BIOS ?? ???? ??? ? ????. ??? ???? ??? ???? ???? ? ?? ????? ???? ????.

Epel (Enterprise Linux ? ?? ???) ?????? ????? ??? ?????? Epel (Enterprise Linux ? ?? ???) ?????? ????? ??? ?????? Jun 17, 2025 am 09:15 AM

Epel ?????? ????? ?? ??? ??? ?? ??? ?? ??? ???? ????. ?? ??? ?? ? ??? ???? ?? Cat/etc/os ???? ???? ??? ????. ??, Centos/Rockylinux?? dnfinstallepel reelease? ?? Epel? ????? 8 ? 9 ?? ??? ?????. ??, ?? ??? .repo ??? ???? ?????? RHEL? ???????. ??, ??? ??? ? GPG ?? ?? ??? ? ????. ?? ??? ???? ?? ? ??? Epel-Next? ???? ??? ???? ?? ?? ??? ?? ????. ?? ??? ?? ? ? dnfrepolist? ???? Epel ???? ????? ?????? ??????.

Linux? ? ?? ????? Windows? ?? ??? ?????? Linux? ? ?? ????? Windows? ?? ??? ?????? Jun 08, 2025 am 12:18 AM

Linux? ????? ?? ???, ??? ?? ? ?? ?? ???? ???? ?? ? ?? ???? ? ? ?????. 1) Linux ??? ??? ? Epoll ? Kqueue? ?? ????? ?? ?? ????? ????? ????. 2) Linux? CGroups? ?? ??? ?? ?? ??? ?????. 3) ?? ?? ????? Linux ??? ????? ????? Nginx? ?? ?? ??? ? ??? Linux?? ?????. ?????, Windows? ASP.NET ?? ????? ?? ? ? ? ???? ? ?? ?? ?? ? ??? ??? ?????.

?????? Linux ???? ???? ??? ?????? ?????? Linux ???? ???? ??? ?????? Jun 19, 2025 am 12:09 AM

??? ???? Linux ??? ??? ? ?? ?? ?? ??? ????????. 1. ?? ???? ?? Ubuntu ?? Linuxmint? ??????. ????? ? ??? Manjaro ?? Fedora? ?????. ??? ??? Lubuntu ? ?? ?? ???? ??????. ?? ??? ???? Centostream ?? Debian? ?????. 2. ?? ?? ???? ???? ?????. ??? ??? ????? Arch ?? Manjaro? ??? ? ????. 3. ???? ?? ???? Ubuntu? Linuxmint? ??? ???? ?? ??? ????? ??????. 4. ?? ??? ???? Ubuntu? Linuxmint? ??? ???? ??? ???? ????? ????? ?????. ?? ??? ?? ???? ?? ????.

Linux? ? ???? ???? ?? Linux? ? ???? ???? ?? Jun 27, 2025 am 12:15 AM

Linux ???? ? ?? ???? ???? ??? ??? ????. 1. ?? ???? ???? LSBLK ?? FDISK-L? ???? ??????. 2. fdisk/dev/sdb? ?? fdisk ?? ?? ? ???? ???? ?? ? ??; 3. mkfs.ext4/dev/sdb1? ?? ?? ?????? ??? ??; 4. MOUNT/DEV/SDB1/MNT/DATA? ?? ?? ???? MOUND ??? ??????. 5. ????? ?? ???? ????? /etc /fstab? ???? ?? ???? ????? ???? ?????. ???? ?? ??? ??? ?? ?? ?? ??? ??? ??????.

Windows Google Chrome?? ?? ??? ??? ??????. Windows Google Chrome?? ?? ??? ??? ??????. Jul 08, 2025 pm 02:33 PM

Chrome? ??? ????? ? ??? ????? ??? ???? ?? ? ????. ??? ???? ????? ?? ????? ??? ?? ?? ???? ??? ??? ??? ???? ??? ?? ??? ????? ?????. ??? ?? ???? Windows PC? Chrome?? ?? ???? ?? ??? ? ????. ???? ????? ??? ????? ?? ?? Windows Google Chrome?? ??? ??? ? ??? ?? ??? ?? ? ?? ?? ????. 1. ?? ?? ?? ?? ?? ??? ?? Universal Repair?? ???? ??? ?? ? ?? ???? ??? ?? ?? ?? ????. ??? ?? ?? ?? : ??? ??

See all articles