Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Alphabetized DIR list of all subdirs of a user share's top-level directory

Featured Replies

I have a user share mounted as a Network drive within Win7 (Home Premium, 32-bit), i.e. Z:

 

If I enter the command:

 

Z:\> dir /S /OG /ON topdir1

 

I get the top-level dir (topdir1) files/dirs listed in alphabetical order (grouped by directories first), but the ordering of the subsequent subdirs seems to be all over the place (although files within each subdir are also alphabetically sorted & grouped). Perhaps this is due to the physical dispersement of the actual files/dirs across the real (physical) disks??

 

Yet the unRAID server console 'ls -laR /mnt/user/shareXX/topdir1' command yields fully sorted (nested) results properly.

Not only that, but the GnuWin32 'ls' win32 executable also works similarly - from the Win7 DOS command prompt.

 

Does anybody know why my native 'dir' command behaves this way, and if it is possible to construct a 'dir' command to fully alphabetize my listing (i.e. using only native DOS 'dir')?

Hi,

 

You van try to use the command tree  see more using

tree --help

 

For example tree -d -L 3, it goes 3 level directories deep

 

tree -d -L 3 > /boot/shares.txt , save output to a file

  • Author

interesting

 

the DOS variant of the tree command lists the dirs in the same (seemingly haphazard) order that the DOS dir command ends up recursing them...

 

something tells me I will be better off doing everything in shell-script from the tower itself :-)

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.