TotalNET Advanced Server 5.2 Reference Manual

macrm

This command, similar to the tnrm command, removes Macintosh files and directories and their corresponding shadow file entries.

This command exists for backward compatibility only and may not appear in future releases of TAS. Use the tnrm command instead for forward compatibility.

Location

TNHOME/usr/bin

Usage

macrm [-C] [-f] [-i] [-r] [-V] [-u] {file|dir}...

Options

-C

Display the program copyright message and execute the command. 

-f

Suppress error messages and messages about mode restrictions. 

-i

Prompt for confirmation before overwriting files. 

-r

Remove all files in all directories and subdirectories. 

-V

Display the program version number and execute the command. 

-u

Display the program usage message only. 

file

Specify the file. 

dir

Specify the directory. 

Examples

  1. Use the following command to remove the file letter from the home directory:


    macrm ~/letter
  2. Use the following command to remove all files ending in .tmp from the current directory and prompt for confirmation:


    macrm -i *.tmp
  3. Use the following command to recursively remove all subdirectories and files of /tmp/temp:


    macrm -r /tmp/temp