Linux Check Disk Space Command

magicandre1981

Member
Registered
Joined
Aug 4, 2016
Messages
15
Points
3
I recently switched from a Windows hosting to a Linux hosting operating system. I am using Ubuntu OS. I want to know how much disk space I am having on my package, which command to use?
 

MooseLucifer

Well-known member
Registered
Joined
May 20, 2016
Messages
149
Points
28
Check the following commands in Linux to know your disk space usage:

df command
Shows the amount of disk space used and available on Linux file systems.
Code:
root@myvps1 [~]# df
Sample outputs
Code:
root@myvps1 [~]# df
Filesystem     1K-blocks     Used Available Use% Mounted on
/dev/sda3       99926320 74325616  20586160  79% /
tmpfs            1474392        0   1474392   0% /dev/shm
/usr/tmpDSK      3792768    74980   3525124   3% /tmp

du command
Display the amount of disk space used by the specified files and for each subdirectory.

Sample outputs
Code:
root@myvps1 [~]# du
8       ./.cpobjcache/rim_bis_ipblocks
8       ./.cpobjcache/rim_bis_whitelist
20      ./.cpobjcache
4       ./bin
8       ./.pyzor
68      ./.razor
4       ./etc
4       ./public_ftp
40      ./.ssh
4       ./perl5/bin
4       ./perl5/lib/perl5/5.10.1/x86_64-linux-thread-multi
8       ./perl5/lib/perl5/5.10.1
4       ./perl5/lib/perl5/5.10.0
4       ./perl5/lib/perl5/x86_64-linux-thread-multi
20      ./perl5/lib/perl5
24      ./perl5/lib
32      ./perl5
4       ./public_html/cgi-bin
8       ./public_html
288     ./.cpanel/comet/channels/%2faddon_securityadvisor%2f1413347758606/messages
8       ./.cpanel/comet/channels/%2faddon_securityadvisor%2f1413347758606/feed
300     ./.cpanel/comet/channels/%2faddon_securityadvisor%2f1413347758606
304     ./.cpanel/comet/channels
8       ./.cpanel/comet/subscriber_channel_positions/gwSF5k42zkprIfjU
12      ./.cpanel/comet/subscriber_channel_positions
4       ./.cpanel/comet/subscriptions/gwSF5k42zkprIfjU/%2faddon_securityadvisor%2f1413347758606
8       ./.cpanel/comet/subscriptions/gwSF5k42zkprIfjU
16      ./.cpanel/comet/subscriptions
336     ./.cpanel/comet
540     ./.cpanel/datastore
4440    ./.cpanel/caches/dynamicui
4444    ./.cpanel/caches
5324    ./.cpanel
20      ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/t/lib/Test/Builder/IO
28      ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/t/lib/Test/Builder
156     ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/t/lib/Test
20      ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/t/lib/MakeMaker/Test/Setup
40      ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/t/lib/MakeMaker/Test
44      ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/t/lib/MakeMaker
212     ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/t/lib
4       ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/t/testdata/reallylongdirectoryname/arch1
4       ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/t/testdata/reallylongdirectoryname/arch2
12      ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/t/testdata/reallylongdirectoryname
16      ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/t/testdata
4       ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/t/liblist/win32/dir
4       ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/t/liblist/win32/lib/CORE
8       ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/t/liblist/win32/lib
4       ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/t/liblist/win32/libpath
4       ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/t/liblist/win32/di r
4       ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/t/liblist/win32/vc
28      ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/t/liblist/win32
32      ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/t/liblist
636     ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/t
32      ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/bundled/CPAN-Meta-YAML/CPAN/Meta
36      ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/bundled/CPAN-Meta-YAML/CPAN
40      ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/bundled/CPAN-Meta-YAML
16      ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/bundled/Parse-CPAN-Meta/Parse/CPAN
20      ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/bundled/Parse-CPAN-Meta/Parse
24      ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/bundled/Parse-CPAN-Meta
32      ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/bundled/ExtUtils-Manifest/ExtUtils
36      ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/bundled/ExtUtils-Manifest
8       ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/bundled/Scalar-List-Utils/Scalar/Util
20      ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/bundled/Scalar-List-Utils/Scalar
8       ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/bundled/Scalar-List-Utils/List/Util
20      ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/bundled/Scalar-List-Utils/List
44      ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/bundled/Scalar-List-Utils
72      ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/bundled/ExtUtils-Install/ExtUtils
76      ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/bundled/ExtUtils-Install
80      ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/bundled/File-Temp/File
84      ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/bundled/File-Temp
8       ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/bundled/JSON-PP/JSON/PP
96      ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/bundled/JSON-PP/JSON
100     ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/bundled/JSON-PP
36      ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/bundled/CPAN-Meta-Requirements/CPAN/Meta
40      ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/bundled/CPAN-Meta-Requirements/CPAN
44      ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/bundled/CPAN-Meta-Requirements
164     ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/bundled/CPAN-Meta/CPAN/Meta
200     ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/bundled/CPAN-Meta/CPAN
204     ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/bundled/CPAN-Meta
660     ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/bundled
32      ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/my
12      ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/bin
16      ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/inc/Parse/CPAN
20      ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/inc/Parse
32      ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/inc/ExtUtils
56      ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/inc
12      ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/lib/ExtUtils/Command
28      ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/lib/ExtUtils/Liblist
36      ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/lib/ExtUtils/MakeMaker/version
92      ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/lib/ExtUtils/MakeMaker
616     ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/lib/ExtUtils
620     ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/lib
4       ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/blib/bin
12      ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/blib/meta
16      ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/blib/lib/Parse/CPAN
20      ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/blib/lib/Parse
4       ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/blib/lib/auto/ExtUtils/MakeMaker
8       ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/blib/lib/auto/ExtUtils
12      ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/blib/lib/auto
12      ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/blib/lib/ExtUtils/Command
28      ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/blib/lib/ExtUtils/Liblist
36      ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/blib/lib/ExtUtils/MakeMaker/version
92      ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/blib/lib/ExtUtils/MakeMaker
644     ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/blib/lib/ExtUtils
680     ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/blib/lib
344     ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/blib/man3
4       ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/blib/arch/auto/ExtUtils/MakeMaker
8       ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/blib/arch/auto/ExtUtils
12      ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/blib/arch/auto
16      ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/blib/arch
8       ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/blib/man1
12      ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/blib/script
1080    ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14/blib
3312    ./.cpanm/work/1462283208.4526/ExtUtils-MakeMaker-7.14
8       ./.cpanm/work/1462283208.4526/Try-Tiny-0.24/t/lib
68      ./.cpanm/work/1462283208.4526/Try-Tiny-0.24/t
36      ./.cpanm/work/1462283208.4526/Try-Tiny-0.24/xt/author
24      ./.cpanm/work/1462283208.4526/Try-Tiny-0.24/xt/release
64      ./.cpanm/work/1462283208.4526/Try-Tiny-0.24/xt
24      ./.cpanm/work/1462283208.4526/Try-Tiny-0.24/lib/Try
28      ./.cpanm/work/1462283208.4526/Try-Tiny-0.24/lib
4       ./.cpanm/work/1462283208.4526/Try-Tiny-0.24/blib/bin
52      ./.cpanm/work/1462283208.4526/Try-Tiny-0.24/blib/meta
24      ./.cpanm/work/1462283208.4526/Try-Tiny-0.24/blib/lib/Try
4       ./.cpanm/work/1462283208.4526/Try-Tiny-0.24/blib/lib/auto/Try/Tiny
8       ./.cpanm/work/1462283208.4526/Try-Tiny-0.24/blib/lib/auto/Try
12      ./.cpanm/work/1462283208.4526/Try-Tiny-0.24/blib/lib/auto
40      ./.cpanm/work/1462283208.4526/Try-Tiny-0.24/blib/lib
24      ./.cpanm/work/1462283208.4526/Try-Tiny-0.24/blib/man3
4       ./.cpanm/work/1462283208.4526/Try-Tiny-0.24/blib/arch/auto/Try/Tiny
8       ./.cpanm/work/1462283208.4526/Try-Tiny-0.24/blib/arch/auto/Try
12      ./.cpanm/work/1462283208.4526/Try-Tiny-0.24/blib/arch/auto
16      ./.cpanm/work/1462283208.4526/Try-Tiny-0.24/blib/arch
4       ./.cpanm/work/1462283208.4526/Try-Tiny-0.24/blib/man1
4       ./.cpanm/work/1462283208.4526/Try-Tiny-0.24/blib/script
148     ./.cpanm/work/1462283208.4526/Try-Tiny-0.24/blib
8       ./.cpanm/work/1462283208.4526/Try-Tiny-0.24/maint
520     ./.cpanm/work/1462283208.4526/Try-Tiny-0.24
8       ./.cpanm/work/1462283208.4526/Test-Simple-1.001014/t/xt
8       ./.cpanm/work/1462283208.4526/Test-Simple-1.001014/t/lib/Dev
68      ./.cpanm/work/1462283208.4526/Test-Simple-1.001014/t/lib/Test/Simple/sample_tests
76      ./.cpanm/work/1462283208.4526/Test-Simple-1.001014/t/lib/Test/Simple
8       ./.cpanm/work/1462283208.4526/Test-Simple-1.001014/t/lib/Test/Builder
88      ./.cpanm/work/1462283208.4526/Test-Simple-1.001014/t/lib/Test
120     ./.cpanm/work/1462283208.4526/Test-Simple-1.001014/t/lib
80      ./.cpanm/work/1462283208.4526/Test-Simple-1.001014/t/subtest
48      ./.cpanm/work/1462283208.4526/Test-Simple-1.001014/t/Tester
8       ./.cpanm/work/1462283208.4526/Test-Simple-1.001014/t/Simple
112     ./.cpanm/work/1462283208.4526/Test-Simple-1.001014/t/Builder
672     ./.cpanm/work/1462283208.4526/Test-Simple-1.001014/t
12      ./.cpanm/work/1462283208.4526/Test-Simple-1.001014/xt
12      ./.cpanm/work/1462283208.4526/Test-Simple-1.001014/examples
20      ./.cpanm/work/1462283208.4526/Test-Simple-1.001014/lib/Test/Tester
8       ./.cpanm/work/1462283208.4526/Test-Simple-1.001014/lib/Test/use
8       ./.cpanm/work/1462283208.4526/Test-Simple-1.001014/lib/Test/Builder/Tester
20      ./.cpanm/work/1462283208.4526/Test-Simple-1.001014/lib/Test/Builder/IO
52      ./.cpanm/work/1462283208.4526/Test-Simple-1.001014/lib/Test/Builder
248     ./.cpanm/work/1462283208.4526/Test-Simple-1.001014/lib/Test
256     ./.cpanm/work/1462283208.4526/Test-Simple-1.001014/lib
4       ./.cpanm/work/1462283208.4526/Test-Simple-1.001014/blib/bin
12      ./.cpanm/work/1462283208.4526/Test-Simple-1.001014/blib/meta
4       ./.cpanm/work/1462283208.4526/Test-Simple-1.001014/blib/lib/auto/Test/Simple
8       ./.cpanm/work/1462283208.4526/Test-Simple-1.001014/blib/lib/auto/Test
12      ./.cpanm/work/1462283208.4526/Test-Simple-1.001014/blib/lib/auto
20      ./.cpanm/work/1462283208.4526/Test-Simple-1.001014/blib/lib/Test/Tester
8       ./.cpanm/work/1462283208.4526/Test-Simple-1.001014/blib/lib/Test/use
8       ./.cpanm/work/1462283208.4526/Test-Simple-1.001014/blib/lib/Test/Builder/Tester
20      ./.cpanm/work/1462283208.4526/Test-Simple-1.001014/blib/lib/Test/Builder/IO
52      ./.cpanm/work/1462283208.4526/Test-Simple-1.001014/blib/lib/Test/Builder
248     ./.cpanm/work/1462283208.4526/Test-Simple-1.001014/blib/lib/Test
268     ./.cpanm/work/1462283208.4526/Test-Simple-1.001014/blib/lib
184     ./.cpanm/work/1462283208.4526/Test-Simple-1.001014/blib/man3
4       ./.cpanm/work/1462283208.4526/Test-Simple-1.001014/blib/arch/auto/Test/Simple
8       ./.cpanm/work/1462283208.4526/Test-Simple-1.001014/blib/arch/auto/Test
12      ./.cpanm/work/1462283208.4526/Test-Simple-1.001014/blib/arch/auto
16      ./.cpanm/work/1462283208.4526/Test-Simple-1.001014/blib/arch
4       ./.cpanm/work/1462283208.4526/Test-Simple-1.001014/blib/man1
4       ./.cpanm/work/1462283208.4526/Test-Simple-1.001014/blib/script
496     ./.cpanm/work/1462283208.4526/Test-Simple-1.001014/blib
1572    ./.cpanm/work/1462283208.4526/Test-Simple-1.001014
148     ./.cpanm/work/1462283208.4526/HTTP-Tiny-0.056/t
16      ./.cpanm/work/1462283208.4526/HTTP-Tiny-0.056/xt/author
28      ./.cpanm/work/1462283208.4526/HTTP-Tiny-0.056/xt/release
48      ./.cpanm/work/1462283208.4526/HTTP-Tiny-0.056/xt
76      ./.cpanm/work/1462283208.4526/HTTP-Tiny-0.056/lib/HTTP
80      ./.cpanm/work/1462283208.4526/HTTP-Tiny-0.056/lib
272     ./.cpanm/work/1462283208.4526/HTTP-Tiny-0.056/corpus
4       ./.cpanm/work/1462283208.4526/HTTP-Tiny-0.056/blib/bin
16      ./.cpanm/work/1462283208.4526/HTTP-Tiny-0.056/blib/meta
76      ./.cpanm/work/1462283208.4526/HTTP-Tiny-0.056/blib/lib/HTTP
4       ./.cpanm/work/1462283208.4526/HTTP-Tiny-0.056/blib/lib/auto/HTTP/Tiny
8       ./.cpanm/work/1462283208.4526/HTTP-Tiny-0.056/blib/lib/auto/HTTP
12      ./.cpanm/work/1462283208.4526/HTTP-Tiny-0.056/blib/lib/auto
92      ./.cpanm/work/1462283208.4526/HTTP-Tiny-0.056/blib/lib
32      ./.cpanm/work/1462283208.4526/HTTP-Tiny-0.056/blib/man3
4       ./.cpanm/work/1462283208.4526/HTTP-Tiny-0.056/blib/arch/auto/HTTP/Tiny
8       ./.cpanm/work/1462283208.4526/HTTP-Tiny-0.056/blib/arch/auto/HTTP
12      ./.cpanm/work/1462283208.4526/HTTP-Tiny-0.056/blib/arch/auto
16      ./.cpanm/work/1462283208.4526/HTTP-Tiny-0.056/blib/arch
4       ./.cpanm/work/1462283208.4526/HTTP-Tiny-0.056/blib/man1
4       ./.cpanm/work/1462283208.4526/HTTP-Tiny-0.056/blib/script
172     ./.cpanm/work/1462283208.4526/HTTP-Tiny-0.056/blib
16      ./.cpanm/work/1462283208.4526/HTTP-Tiny-0.056/eg
876     ./.cpanm/work/1462283208.4526/HTTP-Tiny-0.056
6996    ./.cpanm/work/1462283208.4526
7000    ./.cpanm/work
7004    ./.cpanm
96      ./.gem/specs/rubygems.org%80/quick/Marshal.4.8
100     ./.gem/specs/rubygems.org%80/quick
8336    ./.gem/specs/rubygems.org%80
8       ./.gem/specs/api.rubygems.org%443/quick/Marshal.4.8
12      ./.gem/specs/api.rubygems.org%443/quick
6232    ./.gem/specs/api.rubygems.org%443
14572   ./.gem/specs
432     ./.gem/ruby/1.8/cache
436     ./.gem/ruby/1.8
440     ./.gem/ruby
15016   ./.gem
28      ./.HttpRequest
4       ./sbin
20      ./.mc
40      ./.gnupg
4       ./cpanel3-skel/public_ftp
4       ./cpanel3-skel/public_html
12      ./cpanel3-skel
4       ./.pki/nssdb
8       ./.pki
76      ./rpmbuild/SOURCES/hv/include/linux
16      ./rpmbuild/SOURCES/hv/include/asm
96      ./rpmbuild/SOURCES/hv/include
64      ./rpmbuild/SOURCES/hv/tools
4       ./rpmbuild/SOURCES/hv/.tmp_versions
30640   ./rpmbuild/SOURCES/hv
31188   ./rpmbuild/SOURCES
12      ./rpmbuild/SPECS
31204   ./rpmbuild
2952    ./tmp/pear/cache
4       ./tmp/pear/temp
1352    ./tmp/pear/download
4316    ./tmp/pear
4320    ./tmp
2404    ./.spamassassin/sa-compile.cache
2408    ./.spamassassin
96      ./maldetect-1.5/files/internals
4       ./maldetect-1.5/files/sess
20      ./maldetect-1.5/files/clean
8       ./maldetect-1.5/files/sigs/appver
2584    ./maldetect-1.5/files/sigs
16      ./maldetect-1.5/files/service
2764    ./maldetect-1.5/files
2888    ./maldetect-1.5
24      ./.MirrorSearch/myip.cpanel.net/pingtimes
32      ./.MirrorSearch/myip.cpanel.net
428     ./.MirrorSearch/httpupdate.cpanel.net/pingtimes
436     ./.MirrorSearch/httpupdate.cpanel.net
12      ./.MirrorSearch/search.cpan.org/pingtimes
20      ./.MirrorSearch/search.cpan.org
24      ./.MirrorSearch/eaconfig.cpanel.net/pingtimes
32      ./.MirrorSearch/eaconfig.cpanel.net
28      ./.MirrorSearch/cabundle.cpanel.net/pingtimes
36      ./.MirrorSearch/cabundle.cpanel.net
28      ./.MirrorSearch/cpanmetadb.cpanel.net/pingtimes
36      ./.MirrorSearch/cpanmetadb.cpanel.net
596     ./.MirrorSearch
5328900 .

You also use df command to show all file system on your hosting
Pass the -a or --all option to the df command to include in its output filesystems that have a size of zero blocks, run this command:

Code:
df -a
Sample outputs
Code:
root@myvps1 [~]# df -a
Filesystem     1K-blocks     Used Available Use% Mounted on
/dev/sda3       99926320 74325568  20586208  79% /
proc                   0        0         0    - /proc
sysfs                  0        0         0    - /sys
devpts                 0        0         0    - /dev/pts
tmpfs            1474392        0   1474392   0% /dev/shm
none                   0        0         0    - /proc/sys/fs/binfmt_misc
/usr/tmpDSK      3792768    74980   3525124   3% /tmp
/tmp             3792768    74980   3525124   3% /var/tmp


Getting more help about the df command
Pass the --help option see a brief help message:
Code:
root@myvps1 [~]# df --help

Summarize disk usage for given directory name

Code:
du -s /etc/
Sample outputs
Code:
root@myvps1 [~]# du -s /etc/
33548   /etc/
Hope it helps!
 

LJSHost

Well-known member
Hosting Provider
Registered
Joined
Jul 5, 2016
Messages
1,031
Points
63
Excellent post Moose. Just to add a couple of other useful commands.

find / -size +5M

Will show you all files larger than 5MB, useful if your trying to track down whats eating space.
Also you can add the -h argument to the du and df commands for a more human readable output.
 
Newer Threads
Replies
13
Views
4,830
fwh
Replies
6
Views
4,839
Replies
6
Views
4,738
Replies
14
Views
5,690
Latest Threads
Replies
1
Views
26
Replies
0
Views
188
Replies
1
Views
40
Replies
2
Views
83

Latest postsNew threads

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top