Solved

by default

Posted on 2014-04-10
2
248 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Learn by Doing. Anytime. Anywhere.

Do you like to learn by doing?
Our labs and exercises give you the chance to do just that: Learn by performing actions on real environments.

Hands-on, scenario-based labs give you experience on real environments provided by us so you don't have to worry about breaking anything.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

729 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