You are not logged in.

#1 2012-05-25 10:08:44

xhc
Member
Registered: 2012-02-01
Posts: 113

[SOLVED] midnight commander - show size in MB or GB

mc displays size in KB .. can it show file size in MB or GB ?

Last edited by xhc (2012-05-25 22:01:20)


#Awesome window manager

Offline

#2 2012-05-25 17:01:35

bohoomil
Member
Registered: 2010-09-04
Posts: 2,376
Website

Re: [SOLVED] midnight commander - show size in MB or GB

The available size display option offers two modes:

man mc
Use  SI  size units.  If this option is enabled, Midnight Commander
       will use SI units (powers of 1000) when displaying any byte  sizes.
       The  suffixes  (k,  m  ...)  are  shown  in lowercase.  If disabled
       (default), Midnight Commander will  use  binary  units  (powers  of
       1024) and the suffixes are shown in upper case (K, M ...)

You can access the variable and change it in

Options -> Panel options ... -> Use SI size units

By default, MC will display K|k / M|m suffixes the following way:

279426K    file1.mp4

for a 279 MB file, and

1179M      file2.mp4

for a 1,18 GB file, in both cases calculating the size either using powers of 1000 (SI units), or 1024. The only approximate value in KB / MB / GB as well as the percent of free space left can be displayed in mini-status, if it is enabled.

Last edited by bohoomil (2012-05-25 17:02:54)


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#3 2012-05-25 20:38:34

xhc
Member
Registered: 2012-02-01
Posts: 113

Re: [SOLVED] midnight commander - show size in MB or GB

I turned on this SI units .. I have still size in KB in panels to all files .....

Last edited by xhc (2012-05-25 20:39:09)


#Awesome window manager

Offline

#4 2012-05-25 21:02:11

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: [SOLVED] midnight commander - show size in MB or GB

When the field is only 4 spaces big, it should display as you want it. (3 numbers + K, M or G)

Per panel you can change this in "Listing mode..."
"User defined"
[...] | size:4

Offline

#5 2012-05-25 21:35:13

xhc
Member
Registered: 2012-02-01
Posts: 113

Re: [SOLVED] midnight commander - show size in MB or GB

size:4 helps ... and if I would to have in panel "last change" - which magic word is it to write in this line of user defined?

EDIT: ok it is mtime

man mc

Last edited by xhc (2012-05-25 22:02:21)


#Awesome window manager

Offline

Board footer

Powered by FluxBB