Solved

by default

Posted on 2014-04-10
2
244 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Ubuntu 14.04.3 Cannot login via GUI, returns to GUI login prompt 26 99
Linux server cannot access samba share 12 90
LINUX CENTOS + APACHE 9 61
Virtualizing very old guest OS 4 79
The purpose of this article is to demonstrate how we can use conditional statements using Python.
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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.

911 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

26 Experts available now in Live!

Get 1:1 Help Now