Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to change from MiB or GiB to MB and GB#1014

AnsweredbyJohRest
Joao-Schio asked this question inQ&A
Discussion options

Hello there, I was wondering how to change the unit of the memory and disk modules from MiB and GiB to MB and GB

You must be logged in to vote

To change the units from MiB/GiB to MB/GB in Fastfetch, you’ll want to adjust the binaryPrefix setting in your configuration. Here's how you can do it:

🛠️ Update Fastfetch Config to Use MB/GB Units

In your Fastfetch JSON config file (usually located at ~/.config/fastfetch/config.jsonc), find or add the following under the display section:

json "display": { "size": { "binaryPrefix": "jedec" } }

🔍 What This Does

  • Setting "binaryPrefix": "jedec" switches the unit system from IEC (MiB/GiB) to JEDEC (MB/GB).
  • This affects how memory and disk sizes are displayed—using base 10 (1 GB = 1000 MB) instead of base 2 (1 GiB = 1024 MiB).

You can also pass this directly via command line if you prefer:

b…

Replies: 3 comments 4 replies

Comment options

fastfetch -h binary-prefix

You must be logged in to vote
2 replies
@onefish2
Comment options

Hello,

Can you provide the details on what to add to the schema portion of the config file so I can see MB and GB instead of MiB and GiB?

@onefish2
Comment options

No need for "stat": true. That printed a bunch of info on the right side of the screen.

I just used "binaryPrefix": "jedec" and that worked.

Thank you!!

Comment options

Can you try this?

image

You must be logged in to vote
1 reply
@Joao-Schio
Comment options

Since this is the thread that is in the readme, do you mind adding the updated version of this config ?

Comment options

To change the units from MiB/GiB to MB/GB in Fastfetch, you’ll want to adjust the binaryPrefix setting in your configuration. Here's how you can do it:

🛠️ Update Fastfetch Config to Use MB/GB Units

In your Fastfetch JSON config file (usually located at ~/.config/fastfetch/config.jsonc), find or add the following under the display section:

json "display": { "size": { "binaryPrefix": "jedec" } }

🔍 What This Does

  • Setting "binaryPrefix": "jedec" switches the unit system from IEC (MiB/GiB) to JEDEC (MB/GB).
  • This affects how memory and disk sizes are displayed—using base 10 (1 GB = 1000 MB) instead of base 2 (1 GiB = 1024 MiB).

You can also pass this directly via command line if you prefer:

bash fastfetch --size-binary-prefix jedec

You must be logged in to vote
1 reply
@Joao-Schio
Comment options

Thank you

Answer selected byJoao-Schio
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
4 participants
@Joao-Schio@JohRest@CarterLi@onefish2

[8]ページ先頭

©2009-2025 Movatter.jp