05-23-2009
it would vary by the vendor (or distro...), and so there's not really a one size fits all approach to give. Top and Vmstat might offer some insight, but again they're not present on all systems...so you're going to need to roll your own.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi, I am new to Unix and I need to know how to find out how much Ram I have on my server.
I have Sun Solaris operating system with Sun Ulta 10 cpu. Could you please let me know the command to find the current Ram I have?
Thank you. (1 Reply)
Discussion started by: hollowayt
1 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I work in a production support environment. All our PROD machines SPARC machines and Solaris O/S. I want to know how to find out what the hard disk size, RAM size etc. of our PROD machines. Please let me know if there is any way to find out this (other than from system administrator).
... (2 Replies)
Discussion started by: ramaraju
2 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I am using SCO Unix 3.12 and Informix database. When we tried to use "du -a" command to check disk space, it showed:
342122 ./usr
30092 ./etc
6244 ./dev
4778 ./bin
2674 ./tcb
1234 ./lost+found
698 ./lib
532 ./shlib
46 ./tmp
6 ./messages
4 ./opt
4 ./var
2 ./mnt
2 ./install... (1 Reply)
Discussion started by: trinhnguyen
1 Replies
4. Shell Programming and Scripting
Hi Friends,
I am using sun Solaris .
I want to find the disk space (df -k) for the Unix box and the data has to be sent to an email id.
Can u please find me a code that checks the disk space 6 times a day, loads the data into an excel sheet and sends to an email id.
Can u also tell me how to... (2 Replies)
Discussion started by: sridharnr
2 Replies
5. Solaris
How swap is getting 12GB as its size as per the below output:
Filesystem size used avail capacity Mounted on
/dev/md/dsk/d0 7.9G 2.1G 5.7G 27% /
/devices 0K 0K 0K 0% /devices
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 12G 1.2M 12G 1%... (3 Replies)
Discussion started by: ramnagaraj
3 Replies
6. Programming
Suppose I have 3 gb of ram and 250 gb hard disk in my pc.
Now I wrote a simple C program having only one statement malloc() to allocate 4 gb of memory as 32 bit os can address 4gb address space then will the malloc succeed?
If yes then how it will get extra 1 gb of memory?
Does the process gets... (3 Replies)
Discussion started by: rupeshkp728
3 Replies
7. Shell Programming and Scripting
Hi,
I have to regularly monitor manually if my diskspace is close to 90% or not. I use to see this by firing df -k. I want to write a script which can run 24*7 hours and would me mail me whenever the disk space is 90% or more..It would be really great if someone can helo me on this. (1 Reply)
Discussion started by: sachin4shell
1 Replies
8. AIX
Hi All,
I was trying to know more about RAM disk concept in AIX. I found something on IBM site.
I was able to create and use/delete RAM disk as per IBM instructions.
But as you guys know, this RAM disk is a temporary storage. (*when ever we reboot the AIX LPAR, content/RAM disk will be... (4 Replies)
Discussion started by: System Admin 77
4 Replies
9. Shell Programming and Scripting
Hi Guys,
Is there any way I can write a script that sends DISK SPACE USAGE STATUS via email once a week?
Thanks, (5 Replies)
Discussion started by: g4v1n
5 Replies
LEARN ABOUT DEBIAN
fitsort
fitsort(1) General Commands Manual fitsort(1)
NAME
fitsort - sort FITS header information from a list of files
SYNOPSIS
dfits <FITS files...> | fitsort <FITS keywords...>
DESCRIPTION
fitsort extract keyword values from a set of FITS headers and outputs it in an ASCII table format, which is compatible with most data pro-
cessing software packages. It shall only be used in combination with the dfits utility.
The ASCII output is shown in columns. Columns are aligned with blank characters and also separated by tabulations. Blank alignment allows
human readers to visualize the output in a pretty format, tabulations are there for spreadsheet compatibility. If you want to load out fit-
sort output into any spreadsheet, specify that fields shall be separated by tabulations and entries separated by linefeeds.
Examples :
dfits *.fits | fitsort BITPIX NAXIS NAXIS1 NAXIS2
The output would look like:
FILE BITPIX NAXIS NAXIS1 NAXIS2
file0001.fits 16 2 128 128
file0002.fits 32 2 512 512
...
ESO specific features in the FITS header are also supported. To get values for 'HIERARCH ESO' keywords, just give the complete names within
double quotes. e.g.
dfits *.fits | fitsort "HIERARCH ESO INS LENS"
Another way of giving HIERARCH ESO keywords is to use the short FITS notation, the above example can be given as:
dfits *.fits | fitsort INS.LENS
Example: to retrieve the DPR keywords from an ESO FITS header, you would use:
dfits *.fits | fitsort To be completed... DPR.CATG DPR.TYPE DPR.TECH
This second way of requesting HIERARCH ESO keywords is not only shorter to type, it also avoids typing quotes or double-quotes on the com-
mand-line, making it easier to script with fitsort.
Notice that the keywords you give on the command-line are case-insensitive. The above line is equivalent to:
dfits *.fits | fitsort dpr.catg dpr.type dpr.tech
OPTIONS
-d Do not print out the first output line. This option is useful to get only the query results, without the top line (giving all column
names). This makes it easy to script fitsort from programs like awk or perl.
FILES
Input files to dfits shall all comply with FITS format. fitsort also supports HIERARCH ESO FITS format.
SEE ALSO
dfits (1)
25 Jun 2001 fitsort(1)