Next / Previous / Index / ITC Help System / Publications / Site map / NM Tech homepage

How to run the Python oldfiles script

Tech Computer Center logo

To run the oldfiles script, you must have a copy of it and the associated pathinfo.py source file in your path.

To get a listing of all the files in or under some directory path p, type:

    oldfiles p
The argument can be omitted if you want a report starting in the current working directory:
    oldfiles

The script produces a listing of all the files in a given directory tree, in descending order by size. Here are a few lines from an example of the output:

1995-07-21 13:08:16    7992892 ./xvdocs.ps
1995-05-20 11:46:40    3732116 ./sgml/dsssl.ps
1995-04-30 23:49:07    2123685 ./slip/screenshots/mosaic.ps

The date and time that the file was last modified appears at the front of each line in year-month-date format, followed by the size of the file and its pathname. The files will be listed in descending order by file size.


Next: How the Python oldfiles script works
See also: oldfiles: Where are my oldest files?
Site map
Index: Keyword index to help pages
Help: New Mexico Tech Information Technology and Communications: Help System
ITC Publications
To report a problem: File a ticket
Send mail to the User consultant on duty or call them at 575-835-5437
Home: About New Mexico Tech

John Shipman, john@nmt.edu
Last updated: 2004/03/07 01:40:56 UT
URL: http://www.nmt.edu/tcc/help/lang/python/oldhow.html
QR two-dimensional bar code