Solved

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

Posted on 2016-08-31
2
89 Views
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
0
Comment
Question by:eemoon
2 Comments
 
LVL 18

Accepted Solution

by:
Garry Glendown 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.
0
 

Author Closing Comment

by:eemoon
ID: 41783975
Yes, Thank you
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

While it is possible to put two routes in place with the secondary having a higher metric, this may not always work. In the event of a failure that does not bring down the physical interface on the router the primary route is not removed. There is a…
Getting hacked is no longer a matter or "if you get hacked" — the 2016 cyber threat landscape is now titled "when you get hacked." When it happens — will you be proactive, or reactive?
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), 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 (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), 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…

756 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