"show bootflash" and "dir bootflash"  are same?

Posted on 2016-08-31
Last Modified: 2016-09-04
Why we get different output between "show bootflash" and "dir bootflash" in ask1006? The two command looks to function differently. I thought they were the same. Thank you
Question by:eemoon
LVL 17

Accepted Solution

Garry-G earned 500 total points
ID: 41779421
They are more or less the same, except that the show-command lists all files recursively (including subdirectory contents), while the dir-command only shows the directory content you want to see, so:

core-gw#dir bootflash:
Directory of bootflash:/

   11  drwx       16384  Nov 23 2011 03:42:41 +01:00  lost+found
308257  drwx        4096  Dec 15 2011 03:26:39 +01:00  core
97345  drwx        4096  Jul 13 2014 12:03:32 +02:00  .prst_sync
811201  drwx        4096  Dec 15 2011 03:27:02 +01:00  .rollback_timer
   12  -rw-           0  Dec 15 2011 03:27:17 +01:00  tracelogs.567
502945  drwx        8192   Sep 1 2016 10:22:55 +02:00  tracelogs

The contents of all the directories isn't shown, you have to supply the appropriate name/path in order to get the content, much like it is for any regular OS.

core-gw#dir bootflash:/tracelogs
Directory of bootflash:/tracelogs/

502949  -rwx        1030   Sep 1 2016 09:42:40 +02:00  inst_cleanup_R0-0.log.8292.20160901094240
502948  -rwx        1031   Sep 1 2016 10:07:49 +02:00  inst_cleanup_R0-0.log.29251.20160901100749

Whereas the show command does not allow you to just show a subdirectory, but will always only use a device path (flash, nvram, bootflash etc.) and just dump everything in there ... also, show will not display things like the nvram. Just understand the "show" command as a higher-level command, while the "dir" command is more low-level access.

Author Closing Comment

ID: 41783975
Yes, Thank you

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Comms between vlans via router 2 34
Move configuration from Cisco 3560 to 3750X 6 41
URL question:  WWW versus WWW1 in address line 4 33
Interface VLAN dependencies 6 29
Hello , This is a short article on how would you go about enabling traceoptions on a Juniper router . Traceoptions are similar to Cisco debug commands but these traceoptions are implemented in Juniper networks router . The following demonstr…
Tired of waiting for your show or movie to load?  Are buffering issues a constant problem with your internet connection?  Check this article out to see if these simple adjustments are the solution for you.
After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

943 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

4 Experts available now in Live!

Get 1:1 Help Now