df qustion

df qustion

Post by yeah » Mon, 05 Jun 2000 04:00:00



Hey everyone...

I'm currently working on a few scripts for
people to run when they get in in the mornings
just a few standard checks and stuff.

What I need to know - and it's a dippy question is:

I've got this so far

case os
 HP-UX) bdf -l | sort -r -k5
 AIX) df -k | sort -r -k4
etc

just a sorted list

it works fine, just I'm not sure for sun_os. I want to give this script
to some guys running sunos - but I don't have access to a sunos box
which column should I be sorting on for a df under sunos?

I know - dumb question - but I can't remember. :)

Ta Scott.

 
 
 

df qustion

Post by Phi » Mon, 05 Jun 2000 04:00:00



Quote:>Hey everyone...

>I'm currently working on a few scripts for
>people to run when they get in in the mornings
>just a few standard checks and stuff.

>What I need to know - and it's a dippy question is:

>I've got this so far

>case os
> HP-UX) bdf -l | sort -r -k5
> AIX) df -k | sort -r -k4
>etc

>just a sorted list

>it works fine, just I'm not sure for sun_os. I want to give this script
>to some guys running sunos - but I don't have access to a sunos box
>which column should I be sorting on for a df under sunos?

>I know - dumb question - but I can't remember. :)

# uname -a
SunOS apu 5.8 Generic sun4m sparc SNUW, SPARCstation-20
# df -k
Filesystem          kbytes   used   avail capacity Mounted on
/dev/dsk/c0t3d0s0   103023   61470  31251 67%      /
<snip>
Phil.

 
 
 

df qustion

Post by yeah » Tue, 06 Jun 2000 04:00:00



:>Hey everyone...
:>
:>
:>I'm currently working on a few scripts for
:>people to run when they get in in the mornings
:>just a few standard checks and stuff.
:>
:>What I need to know - and it's a dippy question is:
:>
:>I've got this so far
:>
:>case os
:> HP-UX) bdf -l | sort -r -k5
:> AIX) df -k | sort -r -k4
:>etc
:>
:>just a sorted list
:>
:>it works fine, just I'm not sure for sun_os. I want to give this script
:>to some guys running sunos - but I don't have access to a sunos box
:>which column should I be sorting on for a df under sunos?
:>
:>I know - dumb question - but I can't remember. :)

: # uname -a
: SunOS apu 5.8 Generic sun4m sparc SNUW, SPARCstation-20
: # df -k
: Filesystem          kbytes   used   avail capacity Mounted on
: /dev/dsk/c0t3d0s0   103023   61470  31251 67%      /
: <snip>
: Phil.

Excellent - thanks heaps :)

 
 
 

df qustion

Post by Paul Pfar » Fri, 23 Jun 2000 04:00:00


Good question, but I have one similar.

BSD. Want to find the files in a directory that are the largest and sort
them by size, large to small.
I know that <du -a |sort ??>  is close, but I want to list all the files in
all directories from where I am at (/usr).

Any help would be great.


> Hey everyone...

> I'm currently working on a few scripts for
> people to run when they get in in the mornings
> just a few standard checks and stuff.

> What I need to know - and it's a dippy question is:

> I've got this so far

> case os
>  HP-UX) bdf -l | sort -r -k5
>  AIX) df -k | sort -r -k4
> etc

> just a sorted list

> it works fine, just I'm not sure for sun_os. I want to give this script
> to some guys running sunos - but I don't have access to a sunos box
> which column should I be sorting on for a df under sunos?

> I know - dumb question - but I can't remember. :)

> Ta Scott.

--
Paul A. Pfarr II
(360)428-4236 (H)
http://www.ncia.com/~pfarr/resume1.html
 
 
 

1. df -v versus df -vf

Why would a df -v report usage greater than df -vf would?

# df -v
Mount Dir  Filesystem              blocks      used      free   %used
/          /dev/root               470978    466828      4150   100%

# df -vf
Mount Dir  Filesystem              blocks      used      free   %used
/          /dev/root               470978    408284     62694    87%

--


2. Compiling mod_perl

3. Difference between df -k and df -b

4. can not telnet?

5. Qustion: Any owner of STB Volocity 64 2mb VRAM?

6. why would I want Linux?

7. ADSL connection qustion

8. Would Linux run well on my system?

9. help thread qustion

10. LimeWire Part 2 (newbie qustion)

11. Some Basic Sys Admin Qustions, Please help...

12. X programming newbie qustion

13. FastTrack Server and ErrorLog Qustion ???