Annotation of 43BSDTahoe/new/help/src/f77/disk_space, revision 1.1

1.1     ! root        1: .TI F77/DISK_SPACE "Sep. 4, 1985"
        !             2: Minimizing Use of Disk Space
        !             3: 
        !             4: You can save disk space by removing object ('.o') files, and
        !             5: executable modules ('a.out' files), and core dumps ('core' files)
        !             6: when they will no longer be used.
        !             7: 
        !             8: You can use the 'find' command to delete all core dumps in your
        !             9: account:
        !            10: 
        !            11:        find ~ -name core -exec /bin/rm {} \\;
        !            12: 
        !            13: Find can also be used to remove all '.o' files
        !            14: not accessed in the last week:
        !            15: 
        !            16:        find ~ -name '*.o' -atime +7 -exec /bin/rm {} \\;
        !            17: 
        !            18: In the following, it looks for modules and then removes them
        !            19: only if you say 'y' in response to a query:
        !            20: 
        !            21:        find ~ -name '*.out' -atime +7 -exec /bin/rm -i {} \\;
        !            22: 
        !            23: Change ``~'' to ``.'' to look only in the current directory
        !            24: and its subdirectories.
        !            25: See "man 1 find" for more information on 'find'.
        !            26: 
        !            27: If you don't use the debugger, then there is no point in ever saving
        !            28: core dumps in files; to prevent this, add:
        !            29: 
        !            30:        limit coredumpsize 0
        !            31: 
        !            32: in your .login file.  F77 does not produce dumps unless you use
        !            33: the '-g' flag, so this mainly eliminates dumps from other programs
        !            34: and utilites.
        !            35: If you do execute this, then you must execute:
        !            36: 
        !            37:        unlimit coredumpsize
        !            38: 
        !            39: if you want a dump with f77.
        !            40: 
        !            41: You can reduce the size of modules by stripping them:
        !            42: 
        !            43:        strip a.out
        !            44: 
        !            45: This typically saves 20-40% of the file size.  Use the strip command
        !            46: only on executable modules (a.out files), not on object ('.o') files.
        !            47: You can not use the debugger after stripping a module.
        !            48: 
        !            49: It is possible with other commands to strip local symbols from '.o' files;
        !            50: this is worthwhile mainly for libraries.
        !            51: See "help f77 biglibs" for details.
        !            52: 
        !            53: 
        !            54: Put temporary files in the directory /tmp.  E.g.:
        !            55: 
        !            56:        a.out > /tmp/myoutput
        !            57: 
        !            58: Although files in /tmp may disappear at any time, they usually last
        !            59: through the day.
        !            60: If you use /tmp, then your temporary files will disappear even if
        !            61: you forget about them.
        !            62: 
        !            63: The following commands will strip off the sequence field (cols 73-80)
        !            64: and any trailing blanks from all the .f files in a directory:
        !            65: 
        !            66: .nf
        !            67:        foreach i ( *.f )
        !            68:          colrm 73 < $i   |    sed -e 's/  *$//' > tmp
        !            69:          /bin/mv tmp $i
        !            70:        end
        !            71: .fi
        !            72: 
        !            73: Note there are two blanks before the asterisk in the sed command.
        !            74: 
        !            75: In rare circumstances, when tabs are used before the statement
        !            76: body field and the line contains part of a Hollerith, stripping
        !            77: trailing blanks is unsafe.  See "help f77 source" for an example.

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.