10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I am trying to share a directory from a Solaris 10 m/c to another Solaris 10 m/c.But I am getting an error .Please let me know if I have missed anything
On Server 1
svcsadm -v enable -r network/nfs/server
share -F nfs -o rw /mount_point
In /etc/dfs/dfstab ------ share -F nfs -o rw... (5 Replies)
Discussion started by: Rossdba
5 Replies
2. Solaris
If I have a number of files in a directory, for example,
test.1
test.2
test.3
abc.1
abc.2
abc.3
and I need to find the total file size of all of the test.* files, I can use du -bc test.* in Linux.
However, in Solaris, du does not have the -c option. What can I do in Solaris to get... (11 Replies)
Discussion started by: learnix
11 Replies
3. Shell Programming and Scripting
Hello :
I need some help in writing a ksh script which will find a particular directory in all the file systems in a server and finally report the total size of the direcotry in all the file systems.
Some thing like this..
find /u*/app/oracle -type d -name "product" -prune
and then... (1 Reply)
Discussion started by: Sam1974
1 Replies
4. Shell Programming and Scripting
Hi All,
I am writing a script in which i need find the total size of all the directories that are present in a directory which are owned by a particular user.
I will explain in details
i have a dir DIR1 in which i have 5 dir's DIRA DIRB DIRC DIRD DIRE.
DIRA DIRC DIRE are owned by "eswar" i... (2 Replies)
Discussion started by: firestar
2 Replies
5. Solaris
Friends,
I have an 80 GB HDD, but I wish to know if there is a direct command in Solaris 10 to find out the size of my hard disk (similar to fdisk -l in Linux).
Thank you
saagar (3 Replies)
Discussion started by: saagar
3 Replies
6. Solaris
Guys,
How to find memory size on solaris zone? We have total 16 GB and have 3 zone, but not sure how to find memory size for each zone? Please help. (1 Reply)
Discussion started by: mokkan
1 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I'm newbie to Unix. I'd like to count the total size of those files in my directory by date. For example, files on this period 05/01/08 - 05/31/08. If possible can we count by byte instead of kb.
if I use $ du - ks , it will add up all files in the dir.
thanks,
Helen (5 Replies)
Discussion started by: helen008
5 Replies
8. Solaris
How do i find the MTU size on solaris, which file to look into.
Please help I'm a newbie to administration. (1 Reply)
Discussion started by: ramky79
1 Replies
9. Solaris
hi all,
in my server there are some specific application files which are spread through out the server... these are spread in folders..sub-folders..chid folders...
please help me, how can i find the total size of these specific files in the server... (3 Replies)
Discussion started by: abhinov
3 Replies
10. UNIX for Dummies Questions & Answers
Hello there,
I have a very basic question. It is so simple to find out all the information about system in windows environment. But I do not see any easy way to find it out in my Unix (Solaris 8) box.
All I want to find out how much RAM I have in my solaris 8 box.
Is there any command?
... (3 Replies)
Discussion started by: malikabid
3 Replies
size(1) User Commands size(1)
NAME
size - print section sizes in bytes of object files
SYNOPSIS
size [-f] [-F] [-n] [-o] [-V] [-x] filename...
DESCRIPTION
The size command produces segment or section size information in bytes for each loaded section in ELF object files. size prints out the
size of the text, data, and bss (uninitialized data) segments (or sections) and their total.
size processes ELF object files entered on the command line. If an archive file is input to the size command, the information for each
object file in the archive is displayed.
When calculating segment information, the size command prints out the total file size of the non-writable segments, the total file size of
the writable segments, and the total memory size of the writable segments minus the total file size of the writable segments.
If it cannot calculate segment information, size calculates section information. When calculating section information, it prints out the
total size of sections that are allocatable, non-writable, and not NOBITS, the total size of the sections that are allocatable, writable,
and not NOBITS, and the total size of the writable sections of type NOBITS. NOBITS sections do not actually take up space in the filename.
If size cannot calculate either segment or section information, it prints an error message and stops processing the file.
OPTIONS
The following options are supported:
-f Prints out the size of each allocatable section, the name of the section, and the total of the section sizes. If there is no section
data, size prints out an error message and stops processing the file.
-F Prints out the size of each loadable segment, the permission flags of the segment, then the total of the loadable segment sizes. If
there is no segment data, size prints an error message and stops processing the file.
-n Prints out non-loadable segment or non-allocatable section sizes. If segment data exists, size prints out the memory size of each
loadable segment or file size of each non-loadable segment, the permission flags, and the total size of the segments. If there is no
segment data, size prints out, for each allocatable and non-allocatable section, the memory size, the section name, and the total
size of the sections. If there is no segment or section data, size prints an error message and stops processing.
-o Prints numbers in octal, not decimal.
-V Prints the version information for the size command on the standard error output.
-x Prints numbers in hexadecimal, not decimal.
EXAMPLES
The examples below are typical size output.
Example 1 Producing size information
example% size filename
2724 + 88 + 0 = 2812
Example 2 Producing allocatable section size information
example% size -f filename
26(.text) + 5(.init) + 5(.fini) = 36
Example 3 Producing loadable segment size information
example% size -F filename
2724(r-x) + 88(rwx) + 0(rwx) = 2812 ... (If statically linked)
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWbtool |
+-----------------------------+-----------------------------+
SEE ALSO
as(1), cc(1B), ld(1), ar.h(3HEAD), a.out(4), attributes(5)
NOTES
Since the size of bss sections is not known until link-edit time, the size command will not give the true total size of pre-linked objects.
SunOS 5.11 16 Oct 1996 size(1)