Solved

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

Posted on 2016-08-31
2
48 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 17

Accepted Solution

by:
Garry-G earned 500 total points
Comment Utility
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
Comment Utility
Yes, Thank you
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

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…
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 (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…

744 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

13 Experts available now in Live!

Get 1:1 Help Now