PREV NEXT INDEX

Avici Systems Inc.


dir


Displays all the files in the specified directory or for all storage devices.

Syntax: dir [device:][directory][all]

device:

Identifies the device whose files are to be displayed. Enter a letter to specify a disk drive followed by a colon. The colon (:) is required.

directory

Local directory.

Description: Use the dir command with no argument to display the contents of the current local directory.

Use the dir command with the device: argument to display the files on that device.

Use the dir all command to display information for all system storage devices: disk drives, flash memory, and RAM.

Factory Default: None.

Command Mode: Executive and privileged.

Example 1: The following example shows sample output from the dir device: command:

router#dir B:

size date time name

-------- ------ ------ --------

512 OCT-21-2003 17:10:04 TRASH <DIR>

512 OCT-21-2003 17:10:04 CRASH <DIR>

512 OCT-21-2003 17:10:04 TMP <DIR>

512 OCT-21-2003 17:10:04 LOG <DIR>

1560 DEC-18-2003 15:31:52 RUNNING.CFG

3608 bytes used (829312000 bytes free)



router#

Example 2: The following example shows sample output from the dir all command:

router#dir all

-------------- BootFlash Directory ------------------

Image 1 Name: B:\TMP\s25110.cmp

Size: 4054563 bytes

Free: 4334045 bytes

Image 2 Name: B:\TMP\s2605.cmp

Size: 4600755 bytes

Free: 3787853 bytes

-------------- Drive A: Directory ------------------

size date time name

-------- ------ ------ --------

512 OCT-21-2003 17:10:04 TRASH <DIR>

47536640 NOV-17-2003 11:44:00 R0501050.PKG

0 DEC-17-2003 16:08:48 PATHMGR.TXT

217 DEC-18-2003 15:30:48 AVTMP.CFH

.

.

.

    1343 DEC-18-2003 15:30:48 NNING.CFR

1560 DEC-18-2003 15:30:48 RUNNING.CFG

1560 DEC-18-2003 15:30:48 ALEKS.CFG

166084906 bytes used (282075136 bytes free)



-------------- Drive B: Directory ------------------

size date time name

-------- ------ ------ --------

512 OCT-21-2003 17:10:04 TRASH <DIR>

512 OCT-21-2003 17:10:04 CRASH <DIR>

512 OCT-21-2003 17:10:04 TMP <DIR>

512 OCT-21-2003 17:10:04 LOG <DIR>

1560 DEC-18-2003 15:31:52 RUNNING.CFG

3608 bytes used (829312000 bytes free)



router#



The following table describes the fields in the display:

Table 2-2. Fields Displayed by dir 
Field Description

image

Displays statistics for Flash memory images 1 and 2.

size

Size of the file in bytes.

date

Date the file was created.

time

Time file was created.

name

Name of file.

bytes free

Amount of free space available on this device.

Related Commands: cd
delete
erase
undelete
unerase


PREV NEXT INDEX

Copyright © 2005 Avici Systems Inc.
Avici® and TSR® is a registered trademark of Avici Systems Inc.
IPriori™, Composite Links™, SSR™, QSR, and NSR® are trademarks of Avici Systems Inc.

   Source File Name: ConfigFileMgrCmd.fm
    HTML File Name: ConfigFileMgrCmd7.html
    Last Updated: 02/25/05 at 14:26:17

Please email suggestions and comments to: doc@avici.com