2 Replies Latest reply on Sep 19, 2014 9:26 AM by Rahul NameToUpdate

    NSH Vtree command to list directory tree

      Hello Friends,

       

      Could you please let me know NSH VTREE command to restrict output to only folders upto one level.

      Now I used -h # option but again the same information is being displayed irrespective of height specified.

       

      Thanks,

      Rahul

        • 1. Re: NSH Vtree command to list directory tree
          Bill Robinson

          seems to work for me:

           

          % vtree //blapp82-red5.demodrive.com/etc

          //blapp82-red5.demodrive.com/etc : 1633

             lvm : 19

                cache : 1

                archive : 0

                backup : 0

             xml : 2

             default : 3

             rc.d : 31

                rc2.d : 174

                rc6.d : 94

                init.d : 117

                rc1.d : 88

                rc0.d : 87

                rc4.d : 103

                rc3.d : 103

                rc5.d : 103

             mail : 166

             dev.d : 0

          ....

           

          % vtree -h 1 //blapp82-red5.demodrive.com/etc

          //blapp82-red5.demodrive.com/etc : 1633

          %

          • 2. Re: NSH Vtree command to list directory tree

            Hello Bill,

             

            Sorry for late reply.

             

                 I tried to use same command and it worked by setting -h option.  It showed me correct directory structure but not folder size. It showed 1 infront of Users folder which has 100 MB+ data.

                Is it the behavior of vtree command or is there any issue. I would like to get list of folders along with size information under specific drive.

             

            Thanks,

            Rahul