You can use the do command to save time when you are working in any configuration mode and you want to run a command in privileged EXEC mode.
For example, if you are configuring an Ethernet interface and you want to execute a privileged EXEC mode command, such as the dir command, you would first have to exit the Interface configuration mode. By using the do command with the dir command, you can ignore the need to change configuration modes, as shown in the following example.
device(config-if-eth-1/2)# do dir total 32 drwxrwxr-x 3 21487 1011 4096 Mar 26 17:58 . drwxrwxr-x 3 21487 1011 4096 Mar 13 06:45 .. -rw-r--r-- 1 root sys 495 Mar 16 15:41 defaultconfig.cluster -rw-r--r-- 1 root sys 210 Mar 16 15:41 defaultconfig.standalone drwxrwxr-x 5 root sys 4096 Mar 26 17:57 flex-cli -rw-r--r-- 1 root root 11093 Mar 26 18:04 startup-config 16908197888 bytes total (8438681600 bytes free)