fifth field of ls -l ?

Latest response

I can't seem to find an explanation as to what data the fifth field contains

-rw-r--r--+ 1 4294967294 4294967294 54713954961 Aug 16 18:00 mybackup.tar.gz

Can someone provide please

thank you.

Responses

after more search, it appears it is the size of the tar.gz'd file (50 GB)
then what is 4294967294 (4 GB) ?

thank you

Hi Joseph - I am a bit confused, as ls -l should display the username and groupname of the file in fields 3 and 4 - This typically happens when the user/group does not exist on that system (no match for the UID/GID shown) what is confusing to me is how big the value is.

However, field 5 does appear to be the size. Try running 'ls -lh'

[jradtke@rhvsrv01 ~]$ ls -l
total 8
-rwxr-xr-- 1 jradtke uucp 6926 Apr 10 18:31 heartbleed-test.py
[jradtke@rhvsrv01 ~]$ ls -l | awk '{ print $3 }'
jradtke
[jradtke@rhvsrv01 ~]$ ls -l | awk '{ print $4 }'
uucp
[jradtke@rhvsrv01 ~]$ ls -lh
total 8.0K
-rwxr-xr-- 1 jradtke uucp 6.8K Apr 10 18:31 heartbleed-test.py

it appears you have extended acls on that file as well.

That's a typical output on an AD-integrated system when the AD attributes aren't being cached.

James -
thank you - and yes, you're right.
I didn't take into account that the volume is an NFS mounted Nexenta volume, which has no idea of UID/GID on my server.

thank you.

Regards,
Joseph

Hi Joseph,

You can sort the sizes by the fifth column:

df -Ph | sort -nrk5

And the things that are the largest in size will rise to the top

You can make the size that is typically the fifth column go to the sixth column by adding the file system type:

df -PhT | column -t

The "column -t" forces the output to be "pretty output" in tidy columns. The addition of the "P" argument forces the output to one line. the "T" adds the filesystem type, forcing the size column to go to from the fifth column to the sixth column.

I can't immediately provide an example of these, but try them...

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.