size(1) General Commands Manual size(1)NAME
size - Prints the size of an object file and the sizes of its segments or sections
SYNOPSIS
size [-d-o-x-A-B-V] [file1 ...fileN]
OPTIONS
The size command accepts the following options: Prints size information in decimal (default), octal, and hexadecimal format, respectively.
Specifies System V-style output, which dumps size and address information for each section of the object file. By default, numbers are
printed in decimal. Specifies Berkeley (4.3BSD)-style output, which is the default for Tru64 UNIX systems. This output contains size
information for each segment and the size of the entire object file. By default, the segment size information is printed in decimal format
and the object file size is printed in hexadecimal and decimal formats. Prints the version of size that you are using.
DESCRIPTION
The size command prints information about the text, rdata, data, sdata, bss, and sbss sections of each file. The file can be an object or
an archive. If you do not specify a file, size uses a.out as the default.
[SVR4] By default, the size command displays its output as if the A option were used.
ENVIRONMENT VARIABLES
The following environment variables affect the behavior of size:
SEE ALSO
Programmer's Guide
size(1)
Check Out this Related Man Page
SIZE(1) General Commands Manual SIZE(1)NAME
size - print the size of the sections in an object file
SYNOPSIS
size [ option ... ] [ object ... ]
DESCRIPTION
Size (without the -m option) prints the (decimal) number of bytes required by the __TEXT, __DATA and __OBJC segments. All other segments
are totaled and that size is listed in the `others' column. The final two columns is the sum in decimal and hexadecimal. If no file is
specified, a.out is used.
The options to size(1) are:
- Treat the remaining arguments as name of object files not options to size(1).
-m Print the sizes of the Mach-O segments and sections as well as the total sizes of the sections in each segment and the total size of
the segments in the file.
-l When used with the -m option, also print the addresses and offsets of the sections and segments.
-x When used with the -m option, print the values in hexadecimal (with leading 0x's) rather than decimal.
-arch arch_type
Specifies the architecture, arch_type, of the file for size(1) to operate on when the file is a fat file. (See arch(3) for the cur-
rently know arch_types.) The arch_type can be "all" to operate on all architectures in the file. The default is to display only
the host architecture, if the file contains it; otherwise, all architectures in the file are shown.
SEE ALSO otool(1)BUGS
The size of common symbols can't be reflected in any of the numbers for relocatable object files.
Apple Computer, Inc. May 23, 2002 SIZE(1)
After rcp -rp from remote host, using du -k to verify the file size but total file size have different size. Check on individual file, file size is correct.
How can I confirm on the file size after ftp?
Pls advise.
Thank you. (15 Replies)
Hello experts,
I do -
$ ls -lhtr logs2007*
Is it possible that i can get the results of-
totals size in MB/KB for ALL "logs2007*"
note: in the same directory I have "logs2006*" & "logs2007*" files. (4 Replies)
I'm sure this is a simple one, but I'm new to UNIX and I can't figure it out.
How do I view file size in Megabytes? I have files in a directory and the size is 184710. I think this is in bytes but I'm not usre. How can I view this in MB.
Thanks. (4 Replies)
Ok, I am new to UNIX and Shell scripting and I am trying to do the following using a korn shell script:
I have a large data file that is loaded into a database, this data file is split into parts to make it more manageable based on a size parameter. The file contains many account records, the... (1 Reply)
Hi Guys,
I'm working on various platforms:
Solaris 8
HP Tru64
RH Linux
I'm on the HP Tru64 system and I've got to audit a particular directory for large files that are no longer being used.
If I do an ls -l I get to see the file size. I'd just like to be clear on what that file size... (4 Replies)
Hi
i increased the lv size using smit hacmp.
but, the new size is not reflecting.. why?.
the pp size is 512 MB. before it was 4 PP's. i increased to 10 PP's.
when i type df -m /xxx.. it is showing 2GB only.
see the info below..
root@db:/ > df -m /xxx/xxx
Filesystem MB blocks Free... (2 Replies)
hello sir,
I am trying to use the size command.I typed :-
It says that the format is not compatible.I am getting this error for any input file to this size command.I tried using the "-A" and "-B" options but still I couldnt solve it.
Can you please tell me the format of txt files.And how to... (6 Replies)
Hi All...
is the below command be modified in sucha way that i can get the file size along with the name and path of the file
the below command only gives me the file location which are more than 100000k...but I want the exact size of the file also..
find / -name "*.*" -size +100000k
... (3 Replies)
I have a circuit drawing built with KolourPaint which when printed is about 1/5 the size at which it was drawn on the screen.
Is there a secret squirrel trick to increase the size of the original by perhaps stretching the canvas or something like that without involving another application? (2 Replies)
If you have a look at this thread, you'll see that users have been posting the output a script which are numbers that range from 2 to 5 decimal places. If I dump this entire thread to txt file, how can I:
1) Delete everything except for numbers of the following formats (where 'x' is a digit and... (5 Replies)
Hi,
I have an issue converting decimal places of a particular column, i am using below script to get the output, but the output is not generating in desired format.
awk -F"," 'BEGIN{OFS=","}{if(NR==0)getline;if ($7 != "") {if ($7 > 0) $7=$7/100 ; {printf "%.2f"... (3 Replies)