Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

how to make parted to print size in MiB size instead of MB

Is there any way to ask parted to print partition sizes in MiB unit instead of MB unit?

Yes:

parted <<<'unit MiB print all'

or

printf %s\\n 'unit MiB print list' | parted

or

parted <<\IN                             
unit MiB print list
IN

Same in interactive mode: launch parted and then enter unit MiB print list

Tags:

Parted

Related

Keep only the lines containing exact number of delimiters What is the purpose of the uucico shell on HP-UX, Solaris, and possibly other Unix varieties? How can I rotate my display using some GUI tool, in LXDE? How to implement "generators" like $RANDOM? What is the difference between Docker, LXD, and LXC Set awk array on command line? split a string into path and application What does armel stand for? Run same command with different parameters xdotool: How to search for window by title and class with different patterns (similar to AutoHotkey) What does [[.ch.]] mean in a regex? MBR size is 440 bytes or 512 bytes

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy