


EXPUNGE(1)               USER COMMANDS                 EXPUNGE(1)



NAME
     expunge, purge - permanent removal of deleted files

SYNOPSIS
     expunge [ -r ] [ -i ] [ -f ] [ -t _n ] [ -n ] [ -v ] [ -l ] [
     -s ] [ -m ] [ -y ] [ -- ] [ filename [ ... ]]

     purge

DESCRIPTION
     _E_x_p_u_n_g_e and _p_u_r_g_e permanently remove files which  have  been
     marked  for  deletion  using  _d_e_l_e_t_e(1).  Files removed with
     _e_x_p_u_n_g_e or _p_u_r_g_e cannot be recovered, and care should there-
     fore be exercised in the use of these utilities.

     _P_u_r_g_e is a simple utility which takes no command-line  argu-
     ments.   When it is executed, it searches through the user's
     entire home directory and finds all  files  that  have  been
     marked  for  deletion.  It then displays a list of the files
     where are to be removed and  prompts  for  confirmation.   A
     response from the user starting with the letter _y will cause
     the files to be permanently expunged.

     Because _p_u_r_g_e searches through the user's entire home direc-
     tory,  it  can  take  quite  a while to complete its search.
     This is normal.

     The filenames passed to _e_x_p_u_n_g_e on the command-line  can  be
     directories  (deleted  or  not  deleted)  or  deleted files.
     Deleted files or directories are always completely expunged,
     while  the  treatment  of non-deleted directories depends on
     the -r command-line option (see below).  If no  command-line
     filenames  are  specified,  _e_x_p_u_n_g_e  defaults to the current
     working directory.

     For information about wildcard use with _e_x_p_u_n_g_e, please  see
     _u_n_d_e_l_e_t_e(1).

OPTIONS
     _E_x_p_u_n_g_e accepts the following command-line options:

     -r   When a non-deleted directory is passed to _e_x_p_u_n_g_e,  the
          -r  option  causes  the  directory to be searced recur-
          sively for deleted files.  If the recursive  option  is
          _n_o_t  specified,  only  the  direct children of the non-
          deleted directory are examined.  A recursive search  of
          a large directory can take quite a while.

     -i   The user is prompted for confirmation with the name  of
          the  file and its size in kilobytes before each file or
          directory is removed.




MIT Project AthenaLast change: January 27, 1988                 1






EXPUNGE(1)               USER COMMANDS                 EXPUNGE(1)



     -f   Used in conjunction with the  -l  option,  this  option
          prevents  _e_x_p_u_n_g_e from prompting for confirmation after
          listing all the files that are to be deleted.  Further-
          more, it prevents the printing of error messages.

     -t_n  Specifies the minimum age (in  days)  of  files  to  be
          expunged, measured as the length of time since the file
          was _d_e_l_e_t_ed.

     -n   No  file  expunges  are  performed.   Instead,  _e_x_p_u_n_g_e
          prints  to  the standard output the files that it would
          expunge were the -n option not specified.

     -v   Causes _e_x_p_u_n_g_e to report each file as it  is  expunged,
          as  well as the size of the file and a running total of
          the number of kilobytes expunged.

     -l   Causes _e_x_p_u_n_g_e to list all found files before expunging
          them, similar to the actions of _p_u_r_g_e.

     -s   Symbolic links are followed when searching for  deleted
          files.

     -m   Mount points are followed when  searching  for  deleted
          files.

     -y   The total number of kilobytes expunged is printed after
          _e_x_p_u_n_g_e is finished removing files.

     --   Two dashes indicate that all arguments following it are
          to  be treated as file names, even if they start with a
          dash.

SEE ALSO
     delete(1), undelete(1), lsdel(1), rm(1), rmdir(1)

AUTHOR
     Jonathan I. Kamens (MIT-Project Athena)

RESTRICTIONS
     Copyright (c) 1989 by the Massachusetts Institute  of  Tech-
     nology.  All rights reserved.  _D_e_l_e_t_e(1) specifies the terms
     and conditions for redistribution.












MIT Project AthenaLast change: January 27, 1988                 2



