What is the difference between internal command and external command in Linux?

What is the difference between using the command du and df in Linux to find disk space?

Sushant Hiray at Quora Visit the source

Was this solution helpful to you?

Other answers

This is the easiest method I have found to date to find large files!Here is a example if your root mount is full / (mount /root) Example:cd / (so you are in root)ls | xargs du -hsExample Output:9.4M bin63M boot4.0K cgroup680K dev31M etc6.3G home313M lib32M lib6416K lost+found61G media4.0K mnt113M optdu: cannot access `proc/6102/task/6102/fd/4': No such file or directory0 proc19M root840K run19M sbin4.0K selinux4.0K srv25G store26M tmpthen you would notice that store is large do a cd /storeand run againls | xargs du -hsExample output:109M backup358M fnb4.0G iso8.0K ks16K lost+found47M root11M scripts79M tmp21G vmsin this case the vms directory is the space hog.

Nikky

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.