Berkeley version bdf: combination of inode and file system usage


 
Thread Tools Search this Thread
Operating Systems Linux Berkeley version bdf: combination of inode and file system usage
# 1  
Old 12-24-2013
Berkeley version bdf: combination of inode and file system usage

hello,

i need a command like "bdf" of HP-UX. ( report number of free disk blocks (Berkeley version) ). it should report inode and file system usage in one line like bdf -i

manpage :
Man Page for bdf (all Section 1m) - The UNIX and Linux Forums

HP-UX command "
Quote:
bdf -i
" report inode and file system usage in one line:

Quote:
bdf -i /home


Filesystem kbytes used avail %used iused ifree %iuse Mounted on
/dev/vg00/lvol6 4194304 1927432 2251600 46% 12069 70811 15% /home

i didn't find in Linux a similar command ? command "df" hasn't combinations like "bdf -i" ,
alternative command's like "
Quote:
stat
" ? .

Quote:
df -i /home

Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/mapper/vg00-home 65536 1533 64003 3% /home

Quote:
df /home

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/vg00-home 1032088 95356 884304 10% /home

report should print in Linux the same informations like "
Quote:
bdf -i
"

example:
Filesystem 1K-blocks Used Available Use% Inodes IUsed IFree IUse% Mounted on
/dev/mapper/vg00-home 51032088 95356 884304 10% 65536 1533 64003 3% /home

---------- Post updated 12-24-13 at 10:58 AM ---------- Previous update was 12-23-13 at 11:09 AM ----------

hello,

do anybody use "
Quote:
di
" ? this report inode and filesystem usage in one line.

Quote:
di
:
301 Moved Permanently

manpage :
di Manual Page

Quote:
di -d k -f Sbuv2UFPM
( Example of HPUX "
Quote:
bdf -i
" ) reports the result for Linux !


Examples
Various
Quote:
df
equivalent format strings for System V release 4 are:
Quote:
/usr/bin/df -v di -P -f msbuf1
Quote:
/usr/bin/df -k di -dk -f sbcvpm
Quote:
/usr/ucb/df di -dk -f sbuv2m
GNU
Quote:
df
:
Quote:
df di -dk -f SbuvpM -w 10
Quote:
df -T di -dk -f STbuvpM -w 10
AIX
Quote:
df
:
Quote:
df di -d 512 -f Sbf1UPM -w 10
Quote:
df -I di -d 512 -f Sbuf1M
Quote:
df -I -M di -d 512 -f SMbuf1 -w 10
HP-UX
Quote:
bdf
:
Quote:
bdf di -d k -f Sbuv2M
Quote:
bdf -i di -d k -f Sbuv2UFPM
If you like your numbers to add up/calculate the percentage correctly,
try one of the following format strings:

Quote:
di -f SMbuf1T
Quote:
di -f SMbcvpT
Quote:
di -f SMBuv2T
regards

Last edited by bora99; 12-27-2013 at 04:01 AM..
# 2  
Old 12-24-2013
Hello,

It's a kind request please always add code tags for any code/command you are mentioning in a post as per fourm rules.
Kindly refer the fourm rules more for same.


Thanks,
R. Singh
# 3  
Old 12-27-2013
what do you mean with "a kind request" ?

i added now code tags for any code/command, hope better ?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

File system usage

Hi Experts, I am trying to write script to find the FS usage. My requirement is first i need to gather all the mountpoint details.like below. df -k 2> /dev/null | awk '{print "FS=" $1 "\tMP=" $6 "\tTOT(KB)=" $2 "\tUSED(KB)=" $3 }'Then I need to find which FS is using space >10GB.some thing... (1 Reply)
Discussion started by: navsan420
1 Replies

2. UNIX for Dummies Questions & Answers

Inode usage

Environment: O.S Version HP-UX B.11.31 U ia64 What is the recommended Inode free nodes? On our server Unix Sys Admin, have setup warning email alert when % of I-node usage is above or equal at 5%. Sample Email: --------------------------------------------------- Subject: WARNING:... (6 Replies)
Discussion started by: Siva SQL
6 Replies

3. UNIX for Dummies Questions & Answers

Reduce system inode count

I have lots of space on my system. linux-e30c:~ # df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 41G 3.4G 35G 9% / /dev/sda3 91G 36G 51G 42% /home /dev/sda2 99G 3.4G 91G 4% /usr But still somehow the inode count has almost finished... (3 Replies)
Discussion started by: rupeshkp728
3 Replies

4. UNIX for Dummies Questions & Answers

iNode Usage Identification

Hi My SunOS alps 5.10 Generic_125100-05 sun4v sparc SUNW,Sun-Fire-T200 appears to have reached 100% util on its iNodes. # df -F ufs -o i Filesystem iused ifree %iused Mounted on /dev/md/dsk/d0 4857202 14 100% / /dev/md/dsk/d20 1040 630640 ... (1 Reply)
Discussion started by: rob171171
1 Replies

5. Solaris

Inode Usage

Inode usage on one of my servers is up to 85% Whats the best way of finding which directories are storing loads of files? (1 Reply)
Discussion started by: JayC89
1 Replies

6. Red Hat

File system and its usage

HI all, Can anybody send me some useful links or explain about file system and its usage.As i want to know before using it. Actually, i am going to install linux and then planning to install oracle on it. OS -- Red hat linux 8.0 Regards, Willaim (2 Replies)
Discussion started by: William1482
2 Replies

7. UNIX and Linux Applications

The usage of mount file system of different servers

There is a file system in server1 which is mounted on different file system on server2. Filesystem kbytes used avail capacity Mounted on server1:/users/user1 7047581 5994192 982914 86% /u01 /data/datafiles/user1 The data in... (1 Reply)
Discussion started by: vamshikrishnab
1 Replies

8. Filesystems, Disks and Memory

why the inode index of file system starts from 1 unlike array index(0)

why do inode indices starts from 1 unlike array indexes which starts from 0 its a question from "the design of unix operating system" of maurice j bach id be glad if i get to know the answer quickly :) (0 Replies)
Discussion started by: sairamdevotee
0 Replies

9. HP-UX

How to reduce fil system size seen in bdf!

When i execute bdf, /home direcory seems 100% full. But when i check /home with 'du', total used memory is 30 MB in 1,4 Gb. how can I reduce this 100% to its real state? (11 Replies)
Discussion started by: akyuceisik
11 Replies

10. SuSE

Request:- Could some do a poll of Linux version usage?

I don't know nearly enough about what versions of Open/Free Linux are available. I was wondering if someone would create a new poll of all the major recent(ish) distros so we can see the percentage of people's preferred distro? I've only ever used Suse and have been very happy with it, but... (0 Replies)
Discussion started by: Mark Ward
0 Replies
Login or Register to Ask a Question