dir

To list a file from the Cisco CDA server, use the dir command in the EXEC mode. To remove this function, use the no form of this command.

dir [word] [recursive]

Syntax Description

dir

The command to list files on a local system.

word

Directory name. Supports up to 80 alphanumeric characters. Requires disk:/ preceding the directory name.

recursive

Lists a local directory or filename recursively.

Defaults

No default behavior or values.

Command Modes

EXEC

Usage Guidelines

None.

Examples

Example 1

/admin# dir

 

Directory of disk:/

 

2034113 Aug 05 2010 19:58:39 ADElogs.tar.gz

4096 Jun 10 2010 02:34:03 activemq-data/

4096 Aug 04 2010 23:14:53 logs/

16384 Jun 09 2010 02:59:34 lost+found/

2996022 Aug 05 2010 19:11:16 mybackup-100805-1910.tar.gz

4096 Aug 04 2010 23:15:20 target/

4096 Aug 05 2010 12:25:55 temp/

 

Usage for disk: filesystem

8076189696 bytes total used

6371618816 bytes free

15234142208 bytes available

/admin#

Example 2

/admin# dir disk:/logs

 

0 Aug 05 2010 11:53:52 usermgmt.log

 

Usage for disk: filesystem

8076189696 bytes total used

6371618816 bytes free

15234142208 bytes available

/admin#

Example 3

/admin# dir recursive

 

Directory of disk:/

 

2034113 Aug 05 2010 19:58:39 ADElogs.tar.gz

2996022 Aug 05 2010 19:11:16 mybackup-100805-1910.tar.gz

4096 Aug 04 2010 23:14:53 logs/

4096 Aug 05 2010 12:25:55 temp/

4096 Jun 10 2010 02:34:03 activemq-data/

4096 Aug 04 2010 23:15:20 target/

16384 Jun 09 2010 02:59:34 lost+found/

 

Directory of disk:/logs

 

0 Aug 05 2010 11:53:52 usermgmt.log

 

Directory of disk:/temp

 

281 Aug 05 2010 19:12:45 RoleBundles.xml

6631 Aug 05 2010 19:12:34 PipDetails.xml

69 Aug 05 2010 19:12:45 GroupRoles.xml

231 Aug 05 2010 19:12:34 ApplicationGroupTypes.xml

544145 Aug 05 2010 19:12:35 ResourceTypes.xml

45231 Aug 05 2010 19:12:45 UserTypes.xml

715 Aug 05 2010 19:12:34 ApplicationGroups.xml

261 Aug 05 2010 19:12:34 ApplicationTypes.xml

1010 Aug 05 2010 19:12:34 Pdps.xml

1043657 Aug 05 2010 19:12:44 Groups.xml

281003 Aug 05 2010 19:12:38 Resources.xml

69 Aug 05 2010 19:12:45 GroupUsers.xml

2662 Aug 05 2010 19:12:44 RoleTypes.xml

79 Aug 05 2010 19:12:34 UserStores.xml

4032 Aug 05 2010 19:12:38 GroupTypes.xml

1043 Aug 05 2010 19:12:34 Organization.xml

58377 Aug 05 2010 19:12:46 UserRoles.xml

300 Aug 05 2010 19:12:45 Contexts.xml

958 Aug 05 2010 19:12:34 Applications.xml

28010 Aug 05 2010 19:12:45 Roles.xml

122761 Aug 05 2010 19:12:45 Users.xml

 

Directory of disk:/activemq-data

 

4096 Jun 10 2010 02:34:03 localhost/

 

Directory of disk:/activemq-data/localhost

 

0 Jun 10 2010 02:34:03 lock

4096 Jun 10 2010 02:34:03 journal/

4096 Jun 10 2010 02:34:03 kr-store/

4096 Jun 10 2010 02:34:03 tmp_storage/

 

Directory of disk:/activemq-data/localhost/journal

 

33030144 Aug 06 2010 03:40:26 data-1

2088 Aug 06 2010 03:40:26 data-control

 

Directory of disk:/activemq-data/localhost/kr-store

 

4096 Aug 06 2010 03:40:27 data/

4096 Aug 06 2010 03:40:26 state/

 

Directory of disk:/activemq-data/localhost/kr-store/data

 

102 Aug 06 2010 03:40:27 index-container-roots

0 Aug 06 2010 03:40:27 lock

 

Directory of disk:/activemq-data/localhost/kr-store/state

 

3073 Aug 06 2010 03:40:26 hash-index-store-state_state

51 Jul 20 2010 21:33:33 index-transactions-state

204 Aug 06 2010 03:40:26 index-store-state

306 Jun 10 2010 02:34:03 index-kaha

290 Jun 10 2010 02:34:03 data-kaha-1

71673 Aug 06 2010 03:40:26 data-store-state-1

0 Jun 10 2010 02:34:03 lock

 

Directory of disk:/activemq-data/localhost/tmp_storage

 

No files in directory

 

Directory of disk:/target

 

4096 Aug 04 2010 23:15:20 logs/

 

Directory of disk:/target/logs

 

0 Aug 04 2010 23:15:20 ProfilerPDP.log

2208 Aug 05 2010 11:54:26 ProfilerSensor.log

 

Directory of disk:/lost+found

 

No files in directory

 

Usage for disk: filesystem

8076189696 bytes total used

6371618816 bytes free

15234142208 bytes available

 

/admin#

Related Commands

Command

Description

delete

Deletes a file from the Cisco CDA server.