Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
File name is different for all files.
Some examples:
h/ho/hoe/hoex/hoex0A2F822B01278BB82C8708AC
d/dj/djp/djpi/djpi0A2F822B01278BB82C87429F
k/ki/kid/kidj/kidj0A2F822B0127BD6B5EEE68B6
x/xj/xjr/xjrl/xjrl0A2F822B0127BD7AFC1DB935
v/vh/vhk/vhkk/vhkk0A2F822B0127DCC0F4864893
z/zi/zij/zijz/zijz0A2F822B01281534DC20F206
The files are arranged in the alphabetical order as shown above.
first 4 letter of file constitute the path
eg for file "hoex0A2F822B01278BB82C8708AC"
path is /usr/local/data/h/ho/hoe/hoex/hoex0A2F822B01278BB82C8708AC
You mean you want ls -l for all the files under <some directory> or do you mean only for the ones where the first 4 letters are the same as the name of the directory they are in?
Do you want the directory information stripped of and ignore directories?
ls -lR /usr/local/data | grep '^-'
This assumes you want to ignore links and device files as well.
That is an odd way to by organize files since
/usr/local/data/hoex/hoex0A2F822B01278BB82C8708AC
/usr/local/data/djpi/djpi0A2F822B01278BB82C87429F
etc., would result in the same number files per directory.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.