4 dir – CANOGA PERKINS 9175 Command Reference User Manual

Page 656

Advertising
background image

CanogaOS Command Reference

39-3


Examples

The following example deletes the file named test from the flash:

Switch# delete flash:/test

Are you sure to delete flash:/test? [yes/no]:y

Switch#


Related Commands

copy

39.4 dir

To display a list of files on a file system, use the dir command in EXEC mode.


Command Syntax

dir [flash:][directory-name][file-name]

flash:

The

flash

system.

directory-name The directory in flash:

file-name

The file name.


Command Mode

EXEC


Default

The default file system is specified by the cd command.


Usage

Use the show (Flash file system) command to display flash information.


Examples

The following is sample output from the dir command:

Switch# dir

Directory of flash:/

total 42

drwxr-xr-x 2 0 Jul 30 15:42 boot

drwxr-xr-x 3 0 Jan 1 1970 conf

drwxr-xr-x 2 0 Jan 1 1970 log

-rw-r----- 1 1020 Jul 29 19:18 startup-config.conf

-rw-r--r-- 1 10270 Jul 30 10:10 syslog

-rw-r--r-- 1 6886 Jul 29 23:59 syslog.1.gz

63.0M bytes total (30.4M bytes free)

Switch#

Advertising