recent

Section: User Commands (1)
Index Return to Main Contents
 

Name

recent - list files most recently modified  

Syntax

recent [-h] [/?] [-r] [-nn] [-{m|a|c}] [-u username] [directory...]

 

Description

Recent recursively scans directory for file dates, keeping track of the most recent files. At the end of the scan, it wites the time and file names of the most recent.

directory hierarchy.  

Arguments

-h     Usage text

/? Usage text (MSDOS mode)

-r Reverse the ordering, show the oldest rather than newest.

-m Use file modification date. (Default)

-c Use file status change date. (See stat(2)).

-a Use file access date.

-nn Limit the listing to the most recent nn files (200 is the default and maximum)

-d Don't print the date, just the filename.

-u user Restrict the search to files owned by 'user'

-g group Restrict the search to files owned by 'group'

-s Restrict search to the same file system as first directory.

-f Follow symbolic links

-t Enable debug tracing

directory Examine these directories. Several may be specified. Defaults to ".".  

Example

$ recent -5 
  24-Nov-93 16:51:29  ./recent
  24-Nov-93 16:41:46  ./ULTRIX/recent
  24-Nov-93 16:41:46  ./RISC/recent
  24-Nov-93 16:41:16  ./HPPA/recent
  24-Nov-93 16:41:16  ./9000/700/recent
 

See Also

stat(2)  

Environment

PATH=$PATH:/home/joppa/horton/bin/{HPPA,RISC}

MANPATH=$MANPATH:/home/joppa/horton/man  

Known Bugs

Rather than a complete history, only 200 files are reported. The internal constant can easily be increased, but the algorithms used are not particularly efficient, and are not currently structured towards dynamic extension.

Only regular files are considered. There is some ignorance of symbolic links.  

Author

David Horton - CiTR  

Copyright

Centre for Information Technology Research, 1993


 

Index

Name
Syntax
Description
Arguments
Example
See Also
Environment
Known Bugs
Author
Copyright

This document was created by man2html, using the manual pages.
Time: 23:34:46 GMT, September 27, 2019