/ls command to list files : how to get root's hash value?

Hello,
Newbie question again:

I suppose the /ls command needs to use the hash value of a folder to list the files and sub folders inside, a I correct ?

is so, how do I get the hash value of the root on my node ?

thanks
canal

the /ls command needs to use the hash value of a folder to list the files and sub folders inside, a I correct ?

Yes.

how do I get the hash value of the root on my node ?

There’s not really a concept of a “root” for your IPFS node (there is inside MFS, but that’s special). It’s better to think of your node as a giant, unstructured pile of every block you’ve ever loaded. Your IPFS node itself is not a block or a part of any hierarchy.

oh thank you very much !