Files or directories can be moved from one location to another.
The move command supports wildcards.
The move command recursively moves files and directories, and overwrites existing content without prompting for confirmation.
Use the following CLI syntax to move files:
# file>
— # move [source-url] string [destination-url] string [client-tls-profile string] [direct-http] [force] [proxy string]
The following example displays the command syntax:
A:node-2>file cf3:\ # dir
Volume in drive cf3 on slot A is TIMOS_VM_CF.
Volume in drive cf3 on slot A is formatted as FAT32
Directory of cf3:\
09/28/2021 11:42a 933 BOF.CFG
09/28/2021 11:42a 166 NVRAM.DAT
09/29/2021 03:51p 12831 bootlog.txt
09/29/2021 03:46p 12828 bootlog_prev.txt
04/16/2014 10:15a 0 config.cfg
09/29/2021 03:51p 318 nvsys.info
04/16/2014 10:15a <DIR> syslinux/
09/29/2021 03:55p 12831 test.txt
09/29/2021 03:54p <DIR> test_dir1/
04/16/2014 10:15a <DIR> timos/
7 File(s) 39907 bytes.
3 Dir(s) 14452736 bytes free.
A:node-2>file cf3:\ # move test.txt /test_dir1/test_dir2/test_dir3
Moving file cf3:\test.txt ... OK
cf3:\test.txt
A:node-2>file cf3:\ # dir
Volume in drive cf3 on slot A is TIMOS_VM_CF.
Volume in drive cf3 on slot A is formatted as FAT32
Directory of cf3:\
09/28/2021 11:42a 933 BOF.CFG
09/28/2021 11:42a 166 NVRAM.DAT
09/29/2021 03:51p 12831 bootlog.txt
09/29/2021 03:46p 12828 bootlog_prev.txt
04/16/2014 10:15a 0 config.cfg
09/29/2021 03:51p 318 nvsys.info
04/16/2014 10:15a <DIR> syslinux/
09/29/2021 03:54p <DIR> test_dir1/
04/16/2014 10:15a <DIR> timos/
6 File(s) 27076 bytes.
3 Dir(s) 14452736 bytes free.
A:node-2>file cf3:\ # dir test_dir1/test_dir2/test_dir3
Volume in drive cf3 on slot A is TIMOS_VM_CF.
Volume in drive cf3 on slot A is formatted as FAT32
Directory of cf3:\test_dir1\test_dir2\test_dir3
09/29/2021 03:54p <DIR> ./
09/29/2021 03:54p <DIR> ../
09/29/2021 03:55p 12831 test.txt
1 File(s) 12831 bytes.
2 Dir(s) 14452736 bytes free.
The following example displays a recursive move of the recursive1 directory to recursive3:
A:node-2>file cf3:\ # dir
Volume in drive cf3 on slot A is SROS VM.
Volume in drive cf3 on slot A is formatted as FAT32
Directory of cf3:\
09/19/2021 06:11p 196 BOF.CFG
09/19/2021 06:11p 0 CONFIG.CFG
09/19/2021 06:11p 101 NVRAM.DAT
09/19/2021 07:22p SUPPORT/
09/19/2021 06:11p SYSLINUX/
09/19/2021 06:11p TIMOS/
09/23/2021 09:03a 27459 bootlog.txt
09/20/2021 09:56a 27326 bootlog_prev.txt
09/23/2021 01:21p 319 nvsys.info
09/23/2021 02:42p recursive1/
09/23/2021 08:22a ssh/
7 File(s) 55402 bytes.
7 Dir(s) 612311040 bytes free.
A:node-2>file cf3:\ # dir recursive1
Volume in drive cf3 on slot A is SROS VM.
Volume in drive cf3 on slot A is formatted as FAT32
Directory of cf3:\recursive1
09/23/2021 02:42p ./
09/23/2021 02:42p ../
09/23/2021 02:42p 7 file1.txt
09/23/2021 02:42p recursive2/
1 File(s) 7 bytes.
3 Dir(s) 612311040 bytes free.
A:node-2>file cf3:\ # move recursive1 recursive4
Moving file cf3:\recursive1 ... OK
cf3:\recursive1
A:sros>file cf3:\ # dir
Volume in drive cf3 on slot A is SROS VM.
Volume in drive cf3 on slot A is formatted as FAT32
Directory of cf3:\
09/19/2021 06:11p 196 BOF.CFG
09/19/2021 06:11p 0 CONFIG.CFG
09/19/2021 06:11p 101 NVRAM.DAT
09/19/2021 07:22p SUPPORT/
09/19/2021 06:11p SYSLINUX/
09/19/2021 06:11p TIMOS/
09/23/2021 09:03a 27459 bootlog.txt
09/20/2021 09:56a 27326 bootlog_prev.txt
09/23/2021 01:21p 319 nvsys.info
09/23/2021 02:42p recursive4/
09/23/2021 08:22a ssh/
7 File(s) 55402 bytes.
7 Dir(s) 612311040 bytes free.
A:node-2>file cf3:\ # dir recursive4
Volume in drive cf3 on slot A is SROS VM.
Volume in drive cf3 on slot A is formatted as FAT32
Directory of cf3:\recursive4
09/23/2021 02:42p ./
09/23/2021 02:42p ../
09/23/2021 02:42p 7 file1.txt
09/23/2021 02:42p recursive2/
1 File(s) 7 bytes.
3 Dir(s) 612311040 bytes free.