fifth field of ls -l ?
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
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.
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...
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
