# Kubo CLI: Uniformistic CID generation for a directory on Windows and Linux

**URL:** <https://discuss.ipfs.tech/t/kubo-cli-uniformistic-cid-generation-for-a-directory-on-windows-and-linux/20055>\
**Category:** Help\
**Created:** [February 26, 2026, 11:49am UTC](https://discuss.ipfs.tech/t/kubo-cli-uniformistic-cid-generation-for-a-directory-on-windows-and-linux/20055 "2026-02-26T11:49:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![twdragon](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/twdragon/32/4073_2.png) [@twdragon](https://discuss.ipfs.tech/u/twdragon)\
**Post date:** [February 26, 2026, 11:49am UTC](https://discuss.ipfs.tech/t/kubo-cli-uniformistic-cid-generation-for-a-directory-on-windows-and-linux/20055/1 "2026-02-26T11:49:23Z")

</div>

I use the same (latest) version of Kubo on Linux and Windows to share a directory containing a bunch of files. I noticed that even if the same chunking and hashing algorithms are used, the Kubo backend produces **different CIDs** when I run `ipfs add` command with the same options, but on Linux, and then on Windows. From the same drive, on the same machine.

Does anyone know if it’s possible to generate the **same CID** for a directory containing the same data, first from Linux and then from Windows? It could be very useful for an ‘impostor node’ installed on the multiboot machine, sharing most of the settings.

---

<div class="post-metadata">

**Author:** ![Maureen](https://avatars.discourse-cdn.com/v4/letter/m/a4c791/32.png) [@Maureen](https://discuss.ipfs.tech/u/Maureen)\
**Post date:** [April 1, 2026, 7:31pm UTC](https://discuss.ipfs.tech/t/kubo-cli-uniformistic-cid-generation-for-a-directory-on-windows-and-linux/20055/2 "2026-04-01T19:31:00Z")

</div>

Hi @twdragon,

Yes, it _is_ possible to generate the same CID for identical directory data across Linux and Windows, but you need to make sure that **all metadata and filesystem differences are normalized**. The CID mismatch usually happens because of:

- Different file ordering

- Line ending differences (CRLF vs LF)

- File permission bits

- Timestamps (mtime)

- OS-specific filesystem metadata

### Things you can try:

1. Use the same **exact flags** on both systems:

2. Normalize line endings before adding files:

3. Archive first, then add:

If you’re exploring tools, tutorials, and technical walkthroughs, you can also **[visit](https://telenrquiztoday.pk/)** for related resources and guides.

Hope this helps, consistent CIDs across platforms are definitely achievable with the right setup!
