TotalNET Advanced Server 5.2 Reference Manual

tnrm

This command removes files or directories and their corresponding TAS shadow file entries. To use this command, you must have privileges to remove files and directories.

Location

TNHOME/usr/bin

Usage

To remove a file:

tnrm [-f] [-i] file

To remove a directory and everything under it:

tnrm [-f] [-i] -R dir

Options

-f 

Remove a file or a directory and its corresponding shadow file without allowing it to print an error message or prompt for confirmation when it fails to remove the specified file or directory. If the file does not have the "write" permission, the system prompts for confirmation before removing the files and directories unless you specify the -f option. If you specify the -f option, you automatically confirm the file's removal, and the system permanently deletes the file without further confirmation.

-i 

Remove a file or directory and its corresponding shadow file and prompt for confirmation before each removal. This option overrides the -f option

file

Specify the file to remove. 

-R 

Remove a directory or directories along with everything under them and their respective shadow files. 

dir...

Specify the directory to remove. 

Examples

  1. Use the following command to remove the file system.ini:


    tnrm system.ini
  2. Use the following command to remove the directory sales, including all files and directories under sales:


    tnrm -R sales
  3. Use the following command to remove the files term.doc and pccode.doc without prompting for a confirmation message:


    tnrm -f term.doc pccode.doc
  4. Use the following command to remove the directory saleorders, including all files and directories under saleorders, and prompt for confirmation before deleting each file or directory:


    tnrm -i -R saleorders