Solved

by default

Posted on 2014-04-10
2
243 Views
Last Modified: 2014-04-10
By default the space in bytes or something

JUst to verify

df -k /appl/oracle/TSSUDALM/exp01/exp
Filesystem    1024-blocks      Free %Used    Iused %Iused Mounted on
/dev/ora_db01_exp_vg    35651584  30097928   16%     1067     1% /oracle/db01/exp01
0
Comment
Question by:tonydba
2 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 39991788
By default the space is shown in 512-byte blocks in systems adhering to POSIX, like AIX etc.

To get this behaviour in GNU/Linux you must set the environment variable "POSIXLY_CORRECT".

POSIXLY_CORRECT=1 df /appl/oracle/TSSUDALM/exp01/exp

With the "-k" flag as in your question it's shown in kilobytes, which is the default in GNU/Linux when POSIXLY_CORRECT is not set.

unset POSIXLY_CORRECT; df /appl/oracle/TSSUDALM/exp01/exp        # same as "df -k ..."

In your example the filesystem has a total of 35651584 KB which is roughly 34.8 GB.

There is (in GNU/Linux) also a "-h" flag ("human readable") and to actually get the values in bytes you can use "--block-size=1"

To make this your default you could create an alias

alias df='df --block-size=1'
0
 

Author Closing Comment

by:tonydba
ID: 39991863
Thank you
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now