TotalNET Advanced Server 5.2 Reference Manual

tnmv

This command moves a source file or a directory and its corresponding TAS shadow file information to a destination file or directory. For more information, refer to the UNIX mv man page.

Location

TNHOME/usr/bin

Usage

tnmv [-f] [-i] file1 file2
tnmv [-f] [-i] file... dir2
tnmv [-f] [-i] dir1 dir2

Options

(no options) 

Behave as if you specified the -f option.

-f 

Conduct a move without asking for confirmation even when overwriting an existing file or directory. If you specify both the -f and the -i options, the -f option overrides the -i option.

-i 

Prompt for confirmation before overwriting an existing target file or directory. If you specify both the -i and the -f options, the -f option overrides the -i option.

file1

Specify a source file to move.  

file2

Specify a destination file or new file name. 

file

Specify a source file to move. 

dir2

Specify a destination directory or new directory name to which the source file or directory can move. 

dir1

Specify a source directory to move to a destination directory. 

Note

This command does not support files moving across the mount point. In that case, use tncp and tnrm instead.

Examples

  1. Use the following command to move the file phone.doc to the file call.doc without prompting for confirmation even if call.doc already exists:


    tnmv -f phone.doc call.doc
  2. Use the following command to move the file intro.ppt to the file preface.ppt and prompt for confirmation before overwriting:


    tnmv -i intro.ppt preface.ppt
  3. Use the following command to move the file sample.html to the file main.html:


    tnmv sample.html main.html
  4. Use the following command to move the files project1.ps and project2.ps to the directory projects97:


    tnmv project1.ps project2.ps projects97
  5. Use the following command to move the directory documents to the directory worddocs:


    tnmv documents worddocs