1833454 Members
3225 Online
110052 Solutions
New Discussion

FILE SIZE

 
Syed Shaffat Ali
Occasional Advisor

FILE SIZE

when i list the contents of a directory the file size is shown as 64 0x040065.
I would like to calculate the size in bytes
Pls. Suggest me how to know the size in bytes?
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: FILE SIZE

Those files you see are special character or block files.

They are most likely part of /dev/dsk or /dev/vg00 or some other volume groups.

They don't take up much space, and are quite important, so don't go deleting them.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Robert-Jan Goossens
Honored Contributor

Re: FILE SIZE

Hi,

To add a bit of information to Steven's good answer, try this command to search for file larger than 1mb,

# find /filesystem -type F -size +1000 -xdev -exec ls -l {} \;

Hope it helps,

Robert-Jan.
twang
Honored Contributor

Re: FILE SIZE

how about summarizing the file system usage:
cd /dir
du -s
Bill Hassell
Honored Contributor

Re: FILE SIZE

All the files in /dev are device files which are not really files with data at all, but pointers to the driver and options for the driver to use. The 64 is the driver number (called the major number) and the 0x040065 is the driver options (called the minor number). The ll command simply reports the two values. To decode what these values mean, use the lssf command.


Bill Hassell, sysadmin
Caesar_3
Esteemed Contributor

Re: FILE SIZE

Hello!

The device file take one inode in FS
and the size depend on the parameters,
but it's something small.

Caesar
V. V. Ravi Kumar_1
Respected Contributor

Re: FILE SIZE

Hi,
Probabily you are looking in /dev or in /dev/ directories. 64 is the major number and 0x040065 is the minor number of a device file, which is either character special device or block special device. Deleting them will cuase mall functioning of devices.

Regards
Never Say No