Lantronix MSS User Manual

Page 65

Advertising
background image

Command Reference

Disk

2-56

Rm

Removes files and/or directories from the MSS RAM and Flash disks. The
possible flags are:

Rmdir

Removes a directory from the specified disks. The command can only be used
if the directory is empty. If the directory is full, you must add the DISK RM -
rf
command.

Sync

Forces the MSS to write files to flash immediately. Normally, when the MSS
is rewriting files to the Flash disk, it will buffer data before initiating a write
sequence. Write sequences are automatically written after 5 seconds of disk
inactivity.

Tail

Outputs the end of a file.

Test

Evaluates a file (true or false). The possible flags that will be returned are:

Touch

Creates an empty disk file.

Examples

Local>> DISK CHMOD 755 /PCCARD1/index.txt

Local>> DISK FORMAT /PCCARD1

Local>> DISK LS -l /PCCARD1/

Local>> DISK TEST /PCCARD1/add.exe

-i

Prompts for a Y (yes) or N (no) before the file is removed.

-r

Removes an entire directory and all of its subdirectories.

-d

True if file exists and is a directory.

-e

True if file exists (regardless of type).

-f

True if file exists and is a regular file.

-l

True if file exists and is a symbolic link.

-r

True if file exists and is readable.

-w

True if file exists and is writable. True indicates only that
the write flag is on. The file is not writable on a read-only
file system even if this test indicates true.

-x

True if file exists and is executable. True indicates only
that the execute flag is on. If the file is a directory, true
indicates that the file can be searched.

Advertising