Solved

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

Posted on 2016-08-31
2
118 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

In the hope of saving someone else's sanity... About a year ago we bought a Cisco 1921 router with two ADSL/VDSL EHWIC cards to load balance local network traffic over the two broadband lines we have, but we couldn't get the routing to work consi…
There are two basic ways to configure a static route for Cisco IOS devices. I've written this article to highlight a case study comparing the configuration of a static route using the next-hop IP and the configuration of a static route using an outg…
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…
Suggested Courses
Course of the Month9 days, 10 hours left to enroll

624 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