Файлы System/bin Android 12. Справочник.


  Все     Команда     Скрипт     Служба     Приложение  

find
Поиск каталогов для соответствующих файлов

Симлинк на: [ ToyBox ]

Тип файла: команда
  Рус  
Toybox 0.8.4-android multicall binary:  (see toybox --help) 
usage:  find [-HL] [DIR...] [<options>]


Search directories for matching files.
Default: search ".", match all, -print matches.

  • -H Follow command line symlinks -L Follow all symlinks Match filters:

  • -name PATTERN filename with wildcards (-iname case insensitive)

  • -path PATTERN path name with wildcards (-ipath case insensitive)

  • -user UNAME belongs to user UNAME -nouser user ID not known

  • -group GROUP belongs to group GROUP -nogroup group ID not known

  • -perm [-/]MODE permissions (-=min /=any) -prune ignore dir contents

  • -size N[c] 512 byte blocks (c=bytes) -xdev only this filesystem

  • -links N hardlink count -atime N[u] accessed N units ago

  • -ctime N[u] created N units ago -mtime N[u] modified N units ago

  • -newer FILE newer mtime than FILE -mindepth N at least N dirs down

  • -depth ignore contents of dir -maxdepth N at most N dirs down

  • -inum N inode number N -empty empty files and dirs

  • -type [bcdflps] type is (block, char, dir, file, symlink, pipe, socket)

  • -true always true -false always false

  • -context PATTERN security context -executable access(X_OK) perm+ACL

  • -newerXY FILE X=acm time > FILE's Y=acm time (Y=t: FILE is literal time) Numbers N may be prefixed by a - (less than) or + (greater than). Units for

  • -Xtime are d (days, default), h (hours), m (minutes), or s (seconds). Combine matches with: !, -a, -o, ( ) not, and, or, group expressions Actions:

  • -print Print match with newline -print0 Print match with null

  • -exec Run command with path -execdir Run command in file's dir

  • -ok Ask before exec -okdir Ask before execdir

  • -delete Remove matching file/dir -printf FORMAT Print using format string Commands substitute "{}" with matched file. End with ";" to run each file, or "+" (next argument after "{}") to collect and run with multiple files.

  • -printf FORMAT characters are \ escapes and: %b 512 byte blocks used %f basename %g textual gid %G numeric gid %i decimal inode %l target of symlink %m octal mode %M ls format type/mode %p path to file %P path to file minus DIR %s size in bytes %T@ mod time as unixtime %u username %U numeric uid %Z security context
  • [ ToyBox ]     [ ManLinux ]