4 added 13 characters in body
source | link

Try this,

Lets say you deleted the directory git from the path /usr/share/doc. Now run df -k / provided usr/share/doc is present on / partition.It might give you something like this:

    Filesystem                  1K-blocks    Used   Available Use%  Mounted on
/dev/mapper/centos_lvm-root   6813696      4533956   2279740  67%    /

Here 6813696 is the total number of blocks available out of which 2279740 are free. Each block size is of 1024 bytes.

Now your homework answer would be 2279740 blocks.

You can always run df -kh to see the disk space utilization in human readable terms like 1GB etc

But if you want block size to be 512 or somethng else, try this:

df --block-size=512 /

df --block-size=<your_block_size> <your_partition>

EDIT: To get the size in Mega bytes try this:

df -hm /

The number under Available would be your answer.

Assuming its 2279740 blocks each of 1024 byte size are free, the answer in Ms would be 2226.30859375M

Calculation : 2279740/1024 or

In bytes 2279740*1024 = 2334453760 bytes;

In KB: 2334453760/1024=2279740KB ;

In MB 2279740/1024=2226.30859375M ;

In G 2226.30859375/1024=2.174129486083984G

For more options of df , try man df or df --help

Try this,

Lets say you deleted the directory git from the path /usr/share/doc. Now run df -k / provided usr/share/doc is present on / partition.It might give you something like this:

    Filesystem                  1K-blocks    Used   Available Use%  Mounted on
/dev/mapper/centos_lvm-root   6813696      4533956   2279740  67%    /

Here 6813696 is the total number of blocks available out of which 2279740 are free. Each block size is of 1024 bytes.

Now your homework answer would be 2279740 blocks.

You can always run df -kh to see the disk space utilization in human readable terms like 1GB etc

But if you want block size to be 512 or somethng else, try this:

df --block-size=512 /

df --block-size=<your_block_size> <your_partition>

EDIT: To get the size in Mega bytes try this:

df -hm /

The number under Available would be your answer.

Assuming its 2279740 blocks each of 1024 byte size are free, the answer in Ms would be 2226.30859375M

For more options of df , try man df or df --help

Try this,

Lets say you deleted the directory git from the path /usr/share/doc. Now run df -k / provided usr/share/doc is present on / partition.It might give you something like this:

    Filesystem                  1K-blocks    Used   Available Use%  Mounted on
/dev/mapper/centos_lvm-root   6813696      4533956   2279740  67%    /

Here 6813696 is the total number of blocks available out of which 2279740 are free. Each block size is of 1024 bytes.

Now your homework answer would be 2279740 blocks.

You can always run df -kh to see the disk space utilization in human readable terms like 1GB etc

But if you want block size to be 512 or somethng else, try this:

df --block-size=512 /

df --block-size=<your_block_size> <your_partition>

EDIT: To get the size in Mega bytes try this:

df -hm /

The number under Available would be your answer.

Assuming its 2279740 blocks each of 1024 byte size are free, the answer in Ms would be 2226.30859375M

Calculation : 2279740/1024 or

In bytes 2279740*1024 = 2334453760 bytes;

In KB: 2334453760/1024=2279740KB ;

In MB 2279740/1024=2226.30859375M ;

In G 2226.30859375/1024=2.174129486083984G

For more options of df , try man df or df --help

3 added 13 characters in body
source | link

Try this,

Lets say you deleted the directory git from the path /usr/share/doc. Now run df -k / provided usr/share/doc is present on / partition.It might give you something like this:

    Filesystem                  1K-blocks    Used   Available Use%  Mounted on
/dev/mapper/centos_lvm-root   6813696      4533956   2279740  67%    /

Here 6813696 is the total number of blocks available out of which 2279740 are free. Each block size is of 1024 bytes.

Now your homework answer would be 2279740 blocks.

You can always run df -kh to see the disk space utilization in human readable terms like 1GB etc

But if you want block size to be 512 or somethng else, try this:

df --block-size=512 /

df --block-size=<your_block_size> <your_partition>

EDIT: To get the size in Mega bytes try this:

df -hm /

The number under Available would be your answer. 

Assuming its 2279740 blocks each of 1024 byte size are free, the answer in Ms would be 2226.30859375M

For more options of df , try man df or df --help

Try this,

Lets say you deleted the directory git from the path /usr/share/doc. Now run df -k / provided usr/share/doc is present on / partition.It might give you something like this:

    Filesystem                  1K-blocks    Used   Available Use%  Mounted on
/dev/mapper/centos_lvm-root   6813696      4533956   2279740  67%    /

Here 6813696 is the total number of blocks available out of which 2279740 are free. Each block size is of 1024 bytes.

Now your homework answer would be 2279740 blocks.

You can always run df -kh to see the disk space utilization in human readable terms like 1GB etc

But if you want block size to be 512 or somethng else, try this:

df --block-size=512 /

df --block-size=<your_block_size> <your_partition>

EDIT: To get the size in Mega bytes try this:

df -hm /

The number under Available would be your answer. Assuming its 2279740 blocks each of 1024 byte size, the answer in Ms would be 2226.30859375M

For more options of df , try man df or df --help

Try this,

Lets say you deleted the directory git from the path /usr/share/doc. Now run df -k / provided usr/share/doc is present on / partition.It might give you something like this:

    Filesystem                  1K-blocks    Used   Available Use%  Mounted on
/dev/mapper/centos_lvm-root   6813696      4533956   2279740  67%    /

Here 6813696 is the total number of blocks available out of which 2279740 are free. Each block size is of 1024 bytes.

Now your homework answer would be 2279740 blocks.

You can always run df -kh to see the disk space utilization in human readable terms like 1GB etc

But if you want block size to be 512 or somethng else, try this:

df --block-size=512 /

df --block-size=<your_block_size> <your_partition>

EDIT: To get the size in Mega bytes try this:

df -hm /

The number under Available would be your answer. 

Assuming its 2279740 blocks each of 1024 byte size are free, the answer in Ms would be 2226.30859375M

For more options of df , try man df or df --help

2 added 117 characters in body
source | link

Try this,

Lets say you deleted the directory git from the path /usr/share/doc. Now run df -k / provided usr/share/doc is present on / partition.It might give you something like this:

    Filesystem                  1K-blocks    Used   Available Use%  Mounted on
/dev/mapper/centos_lvm-root   6813696      4533956   2279740  67%    /

Here 6813696 is the total number of blocks available out of which 2279740 are free. Each block size is of 1024 bytes.

Now your homework answer would be 2279740 blocks.

You can always run df -kh to see the disk space utilization in human readable terms like 1GB etc

But if you want block size to be 512 or somethng else, try this:

df --block-size=512 /

df --block-size=<your_block_size> <your_partition>

EDIT: To get the size in Mega bytes try this:

df -hm /

The number under Available would be your answer. Assuming its 2279740 blocks each of 1024 byte size, the answer in Ms would be 2226.30859375M

For more options of df , try man df or df --help

Try this,

Lets say you deleted the directory git from the path /usr/share/doc. Now run df -k / provided usr/share/doc is present on / partition.It might give you something like this:

    Filesystem                  1K-blocks    Used   Available Use%  Mounted on
/dev/mapper/centos_lvm-root   6813696      4533956   2279740  67%    /

Here 6813696 is the total number of blocks available out of which 2279740 are free. Each block size is of 1024 bytes.

Now your homework answer would be 2279740 blocks.

You can always run df -kh to see the disk space utilization in human readable terms like 1GB etc

But if you want block size to be 512 or somethng else, try this:

df --block-size=512 /

df --block-size=<your_block_size> <your_partition>

Try this,

Lets say you deleted the directory git from the path /usr/share/doc. Now run df -k / provided usr/share/doc is present on / partition.It might give you something like this:

    Filesystem                  1K-blocks    Used   Available Use%  Mounted on
/dev/mapper/centos_lvm-root   6813696      4533956   2279740  67%    /

Here 6813696 is the total number of blocks available out of which 2279740 are free. Each block size is of 1024 bytes.

Now your homework answer would be 2279740 blocks.

You can always run df -kh to see the disk space utilization in human readable terms like 1GB etc

But if you want block size to be 512 or somethng else, try this:

df --block-size=512 /

df --block-size=<your_block_size> <your_partition>

EDIT: To get the size in Mega bytes try this:

df -hm /

The number under Available would be your answer. Assuming its 2279740 blocks each of 1024 byte size, the answer in Ms would be 2226.30859375M

For more options of df , try man df or df --help

1
source | link