Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

size(1) [bsd man page]

SIZE(1) 						      General Commands Manual							   SIZE(1)

NAME
size - size of an object file SYNOPSIS
size [ object ... ] DESCRIPTION
Size prints the (decimal) number of bytes required by the text, data, and bss portions, and their sum in hex and decimal, of each object- file argument. If no file is specified, a.out is used. SEE ALSO
a.out(5) 7th Edition April 29, 1985 SIZE(1)

Check Out this Related Man Page

SIZE(1) 						       GNU Development Tools							   SIZE(1)

NAME
size - list section sizes and total size. SYNOPSIS
size [-A|-B|--format=compatibility] [--help] [-d|-o|-x|--radix=number] [-t|--totals] [--target=bfdname] [-V|--version] [objfile...] DESCRIPTION
The GNU size utility lists the section sizes---and the total size---for each of the object or archive files objfile in its argument list. By default, one line of output is generated for each object file or each module in an archive. objfile... are the object files to be examined. If none are specified, the file "a.out" will be used. OPTIONS
The command line options have the following meanings: -A -B --format=compatibility Using one of these options, you can choose whether the output from GNU size resembles output from System V size (using -A, or --for- mat=sysv), or Berkeley size (using -B, or --format=berkeley). The default is the one-line format similar to Berkeley's. Here is an example of the Berkeley (default) format of output from size: $ size --format=Berkeley ranlib size text data bss dec hex filename 294880 81920 11592 388392 5ed28 ranlib 294880 81920 11888 388688 5ee50 size This is the same data, but displayed closer to System V conventions: $ size --format=SysV ranlib size ranlib : section size addr .text 294880 8192 .data 81920 303104 .bss 11592 385024 Total 388392 size : section size addr .text 294880 8192 .data 81920 303104 .bss 11888 385024 Total 388688 --help Show a summary of acceptable arguments and options. -d -o -x --radix=number Using one of these options, you can control whether the size of each section is given in decimal (-d, or --radix=10); octal (-o, or --radix=8); or hexadecimal (-x, or --radix=16). In --radix=number, only the three values (8, 10, 16) are supported. The total size is always given in two radices; decimal and hexadecimal for -d or -x output, or octal and hexadecimal if you're using -o. -t --totals Show totals of all objects listed (Berkeley format listing mode only). --target=bfdname Specify that the object-code format for objfile is bfdname. This option may not be necessary; size can automatically recognize many formats. -V --version Display the version number of size. SEE ALSO
ar(1), objdump(1), readelf(1), and the Info entries for binutils. COPYRIGHT
Copyright (c) 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled ``GNU Free Documentation License''. binutils-2.15.97 2005-04-20 SIZE(1)
Man Page

15 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

checking size of the first line in a log file

Hi My test.log file looks like this: 0 190_GSTV_HUX_003QISCGSK026_error070322_115331917.log 34 190_GSTV_HUX_003QISCGSK026_error070117_151311385.log 12 190_GSTV_HUX_003QISCGSK026_error070117_151230001.log 2 190_GSTV_HUX_003QISCGSK026_error070117_101010001.log 0... (19 Replies)
Discussion started by: kiran1112
19 Replies

2. Shell Programming and Scripting

size of directory

Hello again; I have a directories and subdirectories in my current directory and i wanna to find the directories( and subdirectories ) which are larger than what user enters as first parameter. find . -type d -size +"$1"c -print > directories.dat I used this command and i am not sure it is... (19 Replies)
Discussion started by: redbeard_06
19 Replies

3. Solaris

Want to expand Solaris 10_x86 root UFS partition

OS: Solaris 10_x86. Problem: Server needs to be patched, but root "/" is near full. /dev/dsk/c1t1d0s0 4.2G 3.9G 284M 94% / The /exports/home dir has a lot more space, and I'd like to either move root "/" to it, or delete it all together: /dev/dsk/c1t1d0s7 12G ... (20 Replies)
Discussion started by: b1f30
20 Replies

4. Shell Programming and Scripting

script to get file size

Hi All, I have some requirement. i dont know if we can write some shell script to fulfill the requirement. Here is my requirement... I have some files under /var/opt/abc/xyz like below. -rw-r--r-- 1 root root 789222 Aug 14 11:03 big.sh -rw-r--r-- 1 root root 789222 Aug 14 11:03 big.txt... (25 Replies)
Discussion started by: s_linux
25 Replies

5. Filesystems, Disks and Memory

Installed memory ≠ usable size?

I was configuring my BIOS after installing 2 GB of RAM, and I saw this: System memory Installed size : 4096MB Usable size : 3584MBI have a 64-bit OS (Ubuntu 9.04 64-bit), so does that mean the motherboard (ASUS M3A78-T) doesn't support more than 4 GB of addressing? (23 Replies)
Discussion started by: CRGreathouse
23 Replies

6. Linux

Raid 0 stripe size

I have a PERC 5/i card. Im using with it 3 15k rpm HDD's (model: SEAGATE Savvio 15K ST936751SS). Im going to install debian on this array.. and im looking for performance... So what would be the stripe size that i should set this raid 0 into to give me the best performance? Thanks (22 Replies)
Discussion started by: supermiguel
22 Replies

7. UNIX for Dummies Questions & Answers

Size of swap partition during installation

Greetings. I've been into computers since the '80s, but this is my first attempt at Linux. I'm installing Debian Lenny on a PIII 733 with 10GB hard drive and 512MB Ram. I intend to use the machine primarily as a development server, with things like mySQL, Apache, php, etc. I don't really want... (22 Replies)
Discussion started by: fguy
22 Replies

8. Shell Programming and Scripting

Perl Script to check file date and size

Hi guys, i am new to perl. I started reading the perl documents and try to come up with some logic. I am trying to create a script that would go into a location, search for todays files, then searches for all .txt files from today. If todays not found, its an error If file size is less... (26 Replies)
Discussion started by: DallasT
26 Replies

9. Programming

help with data type sizes

i'm using a C program and running it on a linux server, i got 2 adressess of 2 variables, and 2 addresses of 2 chars, and compared it. and got the size of a int and the size of a char. why is a size of a int (4 bytes) bigger then the size of a char (1 byte)? also if i do &a-&b i get 1, but if i... (30 Replies)
Discussion started by: omega666
30 Replies

10. Shell Programming and Scripting

Folder level size monitoring

Hi All, I have a requirement to monitor the sub-directories under /home in a way that if the the folder size increases by 30 GB in a span of like an hour then it needs to send email alerts listing what as the actual size was and what's the current size which the subject listing the sub-directory... (25 Replies)
Discussion started by: Shailesh6
25 Replies

11. Red Hat

Difference in file sizes being copied by scp. HELP!

Hello All, I am transfering a gzipped file from LINUX to LINUX using scp -C comand. It is a nightly job, called by crontab. After copy finishes, the file sizes are different between source and destination. Say .gz file is 14782805941 bytes on source and 13496172544 bytes on destination. When I... (20 Replies)
Discussion started by: NotALinuxGirl
20 Replies

12. UNIX for Dummies Questions & Answers

Script to check for file size and then sftp

noted down (44 Replies)
Discussion started by: mirwasim
44 Replies

13. Shell Programming and Scripting

Get size of a file using ls on all UNIX OSes

to get the most granular size of a file, you can do so with: solaris hosts: ls -l /tmp/filea | awk '{print $4}' linux hosts: ls -l /tmp/filea | awk '{print $5}' Is there a more universal command that will give the file size? i'm leery of this ls command because the fields in... (21 Replies)
Discussion started by: SkySmart
21 Replies

14. AIX

AIX & TAR related stuff

This thread is about using tar & other compression utilities on AIX ; 1. Find out which version of tar you are using thanks to bakunin >what $(which tar) /usr/bin/tar: 61 1.14 src/bos/usr/ccs/lib/libc/__threads_init.c, libcthrd, bos53 0 7/11/00 12:04:14 10 ... (21 Replies)
Discussion started by: filosophizer
21 Replies

15. What is on Your Mind?

How Can We Increase the Size of Our Community?

Any suggestions on how to increase the number of posters and contributors? Please vote and write in your suggestions. Thank you! (72 Replies)
Discussion started by: Neo
72 Replies