Shell Commands Reference

Identifies the available shell commands, their settings and options.

Shell commands

The shell commands are shown here.

ATTRIB

Displays or changes file attributes.

attrib [drive:][path][filename] [+R | -R] [+H |-H] [+S | -S] [+A | -A] [/p]

Settings:

Options:

  • /p - Pause after each screen of information.

CD

Change the current directory for a drive.

cd [path] [/d]

Options:

/d - Change drive

CHKDEPS

Check the dependencies of an executable or a Dll (ARM only).

chkdeps [Filename].[EXE | DLL]

CHKDSK

Check disk for corruption.

chkdsk [drive:] [/s][/f|/u]

Options:

/s - start ScanDrive instead of CheckDisk

/f - finalise drive

/u - unfinalise drive

COPY

Copy one (or more) file(s).

copy source [destination]

DEL

Delete one file.

del [drive:][path][filename]

DIR

Show directory contents.

dir [drive:][path][filename] [/p][/w]

Options:

/p - Pause after each screen of information

/w - Wide format

FORMAT

Format a disk.

format

GOBBLE

Create a file.

gobble [filename] size [/e]

Options:

/e - create an empty file, without writing any data

HEXDUMP

Display the contents of a file in hexadecimal.

hexdump [drive:][path][filename] [/p]

Options:

/p - Pause after each screen of information

Hit ESC (escape key) to exit from hexdump

LABEL

Set or return the volume label.

label [newlabel]

MD

Make a new directory.

md name

MOVE

Move files.

move name [destination]

PS

Display information about processes.

ps

RENAME

Rename a file.

rename oldfilename newfilename

RD

Delete one directory.

rd [drive:][path]directoryname

START

Run a program in a separate window.

start filename[.exe]

TIME

Display the system time.

time

TRACE

Set the debug trace mask.

trace [mask value in hex] [index] [/S/L/F/T/I/N/M/O/C/H]

  • /S - tracing active in file server code

    KFSERV

  • /L - tracing active in the loader code

    KFLDR

  • /F - tracing active in file system code

    KFSYS

  • /T - tracing active in LFFS code

    KLFFS

  • /I - tracing active in ISO9660 code

    KISO9660

  • /N - tracing active in NTFS code

    KNTFS

  • /M - tracing active in concurrent file system code

    KTHRD

  • /O - tracing active in ROFS code

    KROFS

  • /C - tracing is to be active in CompositeFS code

    KCOMPFS </p>

  • /H - Cache

    KCACHE

TREE

Graphically display the directory structure.

tree [drive:][path] [/f][/p]

Options:

/f - Show files

/p - Pause after each screen of information

TYPE

Display the contents of a text file.

type [drive:][path]filename [/p]

Options:

/p - Pause after each screen of information

VNAME

Check whether a filename is valid.

vname [drive:][path]filename

Return any invalid character

LOCK

Lock a password-enabled media drive.

lock [drive-number] cur-pswd new-pswd [/s]

UNLOCK

Unlock a locked password-enabled media drive.

unlock [drive-number] cur-pswd [/s]

CLEAR

Clear password from password-enabled media drive.

clear [drive-number] cur-pswd

SETSIZE

Set size of a file.

setsize [filename] size

DEBUGPORT

Set or get debug port.

debugport [port]

PLUGIN

Manage Plugins.

plugin [name][/A][/R][/M][/D]

DRVINFO

Print information about present drive(s) in the system.

drvinfo [DriveLetter:[\\]] [/p]

Options:

/p - pause after each drive

SYSINFO

Print information about system features and status.

sysinfo

Related information
Text Shell (eshell)