![]() ![]() Searchable (in a file name resolution sense). Matches files which are executable and directories which are Based on file Typeįind file empty file whicg is a regular file or a directory and not special device files which zero byte files.įind -empty find 0 byte files in the current dir. any fractional part is ignored.įind -ctime 2 finds files whose status was changed 48 hrs ago ( 2*24 )įind files whose status changed time n minutes ago.įind -cmin 8 finds files whose status was changed 8 minutes ago.įile was last accessed n days after its status was last changed.įind -used 1 finds file accessed after a day of its status change. Using File Status Change timeįile’s status Change time is newer than its modified timeįinds files where file’s status Change time is newer than its modified time, for symbolic link the access time of the file it points to is used.įind -cnewer server.xml lists files whose status( permissions/owner/group) was changed after server.xml in the current dir.įind files whose status changed time in last n*24 ago. any fractional part is ignored, so to match -atime +1( More than 24 hrs ) a file has to have been accessed at least two days ago.įind -atime 3 finds files acccessed 72 hrs ago ( 3*24 ) 5. Using last accessed time :įind file which was last accessed n minutes ago where access time is newer then modified time.įind /home/james -amin 5 file was accessed 5 minutes ago in /home/james dir.įinds files where Access time is newer then modified time,for symbolic link the access time of the file it points to is used.įind -anewer find files accessed after nf file.įinds files which were accessed in last n*24 ago. Symbolic link the modification time of the file it points to is used.įind -newer test.log finds files which were updated/modified after test.log file in the current dir. no fractional calculation, a +1 or 2 means 24 hrs ago.įind files which was modified more recently than file.for įind -nogroups find files in current dir which does not belong to any known group.įind files where file was last modified n minutes ago.įind /tmp -mmin 2 finds files modified 2 minutes ago in /tmp dir.įind files where file was last modified n*24 hours agoįind -mtime 1 finds files modified 24 hours ago in current dir. No group corresponds to file’s numeric group ID.įile does not belong to any configured groups. No user corresponds to file’s numeric user ID.įile does not belong to any configured users.įind files where file’s numeric group ID matches n.įind files where file’s group name or ID matches with gname.įind /var -group admins find file with group name name admin in /var dir.įind /var -group 2002 find files with group id 2002 in /var dir. Using User/group identificationįind /home -uid 2001 finds files belonging to user id 2001 įile is owned by user uname (numeric user ID allowed).įind /home -user james find files with user jamesįind /home -user 112 Find files with uid 112 ![]() Case sensitive match.įind /var/log -name myserver*.log finds all files beginning with myserver and anything after that and ending in. ![]() Searches the base file names by removing directory names and slashes.įind /var/log -name myserver*.log finds all files beginning with myserver and anything after that and ending in. This is the most common test in find command where full or partial file name is known. Here are the 15 Ways to find files in Unix and Linux 1.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |