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

**URL:** <https://discuss.ipfs.tech/t/ls-command-to-list-files-how-to-get-roots-hash-value/3010>\
**Category:** Help\
**Created:** [May 23, 2018, 3:23pm UTC](https://discuss.ipfs.tech/t/ls-command-to-list-files-how-to-get-roots-hash-value/3010 "2018-05-23T15:23:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![canal](https://avatars.discourse-cdn.com/v4/letter/c/4bbf92/32.png) [@canal](https://discuss.ipfs.tech/u/canal)\
**Post date:** [May 23, 2018, 3:23pm UTC](https://discuss.ipfs.tech/t/ls-command-to-list-files-how-to-get-roots-hash-value/3010/1 "2018-05-23T15:23:15Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Mr0grog](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/mr0grog/32/2460_2.png) [@Mr0grog](https://discuss.ipfs.tech/u/Mr0grog)\
**Post date:** [May 24, 2018, 8:49pm UTC](https://discuss.ipfs.tech/t/ls-command-to-list-files-how-to-get-roots-hash-value/3010/2 "2018-05-24T20:49:15Z")

</div>

> 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.

---

<div class="post-metadata">

**Author:** ![canal](https://avatars.discourse-cdn.com/v4/letter/c/4bbf92/32.png) [@canal](https://discuss.ipfs.tech/u/canal)\
**Post date:** [May 25, 2018, 12:24am UTC](https://discuss.ipfs.tech/t/ls-command-to-list-files-how-to-get-roots-hash-value/3010/3 "2018-05-25T00:24:56Z")

</div>

oh thank you very much !
