Solved

by default

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
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…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

809 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