🖥️numfmt

➡️This is a command-line reference manual for commands and command combinations that you don’t use often enough to remember it. This cheatsheet explains the numfmt command with important options and switches using examples.

▁ ▂ ▃ ▄ ꧁ 🔴☠ COMMANDLINE-KUNGFU WITH CHEATSHEETS ☠🔴꧂▅ ▃ ▂ ▁

#                ███╗   ██╗██╗   ██╗███╗   ███╗███████╗███╗   ███╗████████╗
#                ████╗  ██║██║   ██║████╗ ████║██╔════╝████╗ ████║╚══██╔══╝
#                ██╔██╗ ██║██║   ██║██╔████╔██║█████╗  ██╔████╔██║   ██║   
#                ██║╚██╗██║██║   ██║██║╚██╔╝██║██╔══╝  ██║╚██╔╝██║   ██║   
#                ██║ ╚████║╚██████╔╝██║ ╚═╝ ██║██║     ██║ ╚═╝ ██║   ██║   
#                ╚═╝  ╚═══╝ ╚═════╝ ╚═╝     ╚═╝╚═╝     ╚═╝     ╚═╝   ╚═╝   
                                                                          
                

# Convert bytes to Human readable format
numfmt --to=iec --suffix=B --padding=7 1048576

numfmt --to=iec $[$(du -s /home/*/docs | cut -f 1 | paste -sd+)]
# Summing up numeric values using bash. For example to add up the disk usage at several disjoint locations. The $[..] is for arithmetic evaluation in bash. Alternatively pipe to the bc command.

#==============================##==============================#
# CMD NUMFMT						       #
#==============================##==============================#
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

  █║▌│║█║▌★ KALI ★ PARROT ★ DEBIAN 🔴 PENTESTING ★ HACKING ★ █║▌│║█║▌

              ██╗ ██╗ ██████╗  ██████╗ ██╗  ██╗███████╗██████╗
             ████████╗██╔══██╗██╔═══██╗╚██╗██╔╝██╔════╝██╔══██╗
             ╚██╔═██╔╝██║  ██║██║   ██║ ╚███╔╝ █████╗  ██║  ██║
             ████████╗██║  ██║██║   ██║ ██╔██╗ ██╔══╝  ██║  ██║
             ╚██╔═██╔╝██████╔╝╚██████╔╝██╔╝ ██╗███████╗██████╔╝
              ╚═╝ ╚═╝ ╚═════╝  ╚═════╝ ╚═╝  ╚═╝╚══════╝╚═════╝

               █║▌│║█║▌ WITH COMMANDLINE-KUNGFU POWER █║▌│║█║▌

░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░