Linux du DF ls

Source: Internet
Author: User

Du can see the size of files and folders, DF mainly look at the size of the database, see the partition of disk usage, LS can add-h parameter, so we see the file size

DF can view the first-level folder size, usage scale, file system and its hang-in points, but there is nothing to file.
Du can view the size of files and folders.

It works well with both. For example, use DF to see which level of directory is too large, and then use DF to view the folder or file size, so you can quickly determine the crux of the problem

[Email protected] eaccelerator]# df-h
Filesystem Size used Avail use% mounted on
/DEV/SDA1 20G 6.7G 12G 37%/
Tmpfs 506M 0 506M 0%/dev/shm
. host:/ 101G 96G 5.0G 96%/mnt/hgfs

[Email protected] eaccelerator]# du-h--max-depth=1/data/wwwroot/
11m/data/wwwroot/test

[Email protected] eaccelerator]# ls-l
Total 128
drwxrwxrwx root root 4096 Nov 6 07:42 0
drwxrwxrwx root root 4096 Nov 6 07:42 1
drwxrwxrwx root root 4096 Nov 6 07:42 2
drwxrwxrwx root root 4096 Nov 6 07:42 3
drwxrwxrwx root root 4096 Nov 6 07:42 4
drwxrwxrwx root root 4096 Nov 6 07:42 5
drwxrwxrwx root root 4096 Nov 6 07:42 6
drwxrwxrwx root root 4096 Nov 6 07:42 7
drwxrwxrwx root root 4096 Nov 6 07:42 8
drwxrwxrwx root root 4096 Nov 6 07:42 9
drwxrwxrwx root root 4096 Nov 6 07:42 A
drwxrwxrwx root root 4096 Nov 6 07:42 b
drwxrwxrwx root root 4096 Nov 6 07:42 C
drwxrwxrwx root root 4096 Nov 6 07:42 D
drwxrwxrwx root root 4096 Nov 6 07:42 E
drwxrwxrwx root root 4096 Nov 6 07:42 F
[Email protected] eaccelerator]# LS-LH
Total 128K
drwxrwxrwx root root 4.0K Nov 6 07:42 0
drwxrwxrwx root root 4.0K Nov 6 07:42 1
drwxrwxrwx root root 4.0K Nov 6 07:42 2
drwxrwxrwx root root 4.0K Nov 6 07:42 3
drwxrwxrwx root root 4.0K Nov 6 07:42 4
drwxrwxrwx root root 4.0K Nov 6 07:42 5
drwxrwxrwx root root 4.0K Nov 6 07:42 6
drwxrwxrwx root root 4.0K Nov 6 07:42 7
drwxrwxrwx root root 4.0K Nov 6 07:42 8
drwxrwxrwx root root 4.0K Nov 6 07:42 9
drwxrwxrwx root root 4.0K Nov 6 07:42 A
drwxrwxrwx root root 4.0K Nov 6 07:42 b
drwxrwxrwx root root 4.0K Nov 6 07:42 C
drwxrwxrwx root root 4.0K Nov 6 07:42 D
drwxrwxrwx root root 4.0K Nov 6 07:42 E
drwxrwxrwx root root 4.0K Nov 6 07:42 F

Linux du DF ls

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.