search
HomeSystem TutorialLINUXHow to master disk usage in Ubuntu system

We want to check the hard disk usage in the system. How to check it in Ubuntu system? Let's take a look at the tutorial on checking the hard disk usage in Ubuntu system.

How to master disk usage in Ubuntu system

1. On the system, click on the lower left corner of the desktop, as shown in the picture.

How to master disk usage in Ubuntu system

2. In the system, click Utilities, as shown in the picture.

How to master disk usage in Ubuntu system

3. Click Disk Usage, as shown in the picture.

How to master disk usage in Ubuntu system

4. Then you can see the disk usage, that is, the disk in the middle is your computer’s hard disk, as shown in the picture. The small print below the disk is the usage.

How to master disk usage in Ubuntu system

5, or click the disk on the utility, as shown.

How to master disk usage in Ubuntu system

6. Then under the capacity, you can see the hard disk usage, as shown in the picture.

How to master disk usage in Ubuntu system

The following is the text version

Check disk usage:

df -h

The results are as follows:

Filesystem Size Used Avail Use% Mounted on
udev 3.9G 0 3.9G 0% /dev
tmpfs 799M 4.0M 795M 1% /run
/dev/vda1 50G 35G 12G 75% /
tmpfs 3.9G 480K 3.9G 1% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
/dev/vdb1 50G 29G 19G 62% /mnt
tmpfs 799M 0 799M 0% /run/user/0
none 50G 29G 19G 62% /mnt/docker/aufs/mnt/b90499886d3ff756daa538e07d0b901de9e53440dbaf4d217eb40625067dcb4d
shm 64M 0 64M 0% /mnt/docker/containers/bcc5c892e25b5d1afea9084e02dcea1f16d7e19b54042d60737f94f0af4e466f/shm
none 50G 29G 19G 62% /mnt/docker/aufs/mnt/043c3429c71f55538c8fafcd1109ee32d848c00550a98aee4d668847443f1d92
shm 64M 0 64M 0% /mnt/docker/containers/f72c337b0a09796c4d9efa857dea5902b01c3e2fc31af8424519883a00a41c5c/shm
none 50G 29G 19G 62% /mnt/docker/aufs/mnt/1a2451898f06be63e41d91fb3c2d15a6267158936ecaf22ab829dd8d0065c079
none 50G 29G 19G 62% /mnt/docker/aufs/mnt/4ea840ebad40c0fc980e32a57523d99dbf5dd785757e104578a1cd278a547586
shm 64M 0 64M 0% /mnt/docker/containers/ba712b6fafb07e74de4277a7d9e27c4e158dd5e9b578156537ba491e7706536b/shm
none 50G 29G 19G 62% /mnt/docker/aufs/mnt/52582751008b11d65bd37e9e2a2b5b192fc43f0cd03ee6f6720b148ec88fe8a3
shm 64M 0 64M 0% /mnt/docker/containers/83e024ee7d5c0804913f92df9b066c1666f7ecf8b3337520775c74455ba25d07/shm
shm 64M 0 64M 0% /mnt/docker/containers/c4f08555ce13120570cca0e6954b992d0059444a9b503e0ee6eda84f894a8dee/shm
none 50G 29G 19G 62% /mnt/docker/aufs/mnt/7daf0acc60832e43ae1a474d39fb5fcaca44d594d551e0a22142e817b9670630
shm 64M 0 64M 0% /mnt/docker/containers/d420cdad38ea325a06eba3e5ad26d5687be12d8ecf4bab3db5dbe3e72a512216/shm

The usage rate of my previous /dev/vdb1 reached 100%, which caused MongoDB to no longer be able to write files and enter the fail state.

Let’s start from the root directory /, check the files or folders that take up a lot of space step by step, and clean up the unused files

Enter / directory:

cd /

View the size of each file and folder

du -sh *

The results are as follows:

28K a.txt
28K a.txt.save
13M bin
96M boot
4.0K deploy.py
12Kdev
12K docker

Then I usually search for files starting with the largest ones and see if the files can be deleted, over
To delete the command, you must include the folder name, otherwise it will be deleted for you

rm -rf {file or folder name}

The above is the detailed content of How to master disk usage in Ubuntu system. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:脚本之家. If there is any infringement, please contact admin@php.cn delete
What are the main tasks of a Linux system administrator?What are the main tasks of a Linux system administrator?Apr 19, 2025 am 12:23 AM

The main tasks of Linux system administrators include system monitoring and performance tuning, user management, software package management, security management and backup, troubleshooting and resolution, performance optimization and best practices. 1. Use top, htop and other tools to monitor system performance and tune it. 2. Manage user accounts and permissions through useradd commands and other commands. 3. Use apt and yum to manage software packages to ensure system updates and security. 4. Configure a firewall, monitor logs, and perform data backup to ensure system security. 5. Troubleshoot and resolve through log analysis and tool use. 6. Optimize kernel parameters and application configuration, and follow best practices to improve system performance and stability.

Is it hard to learn Linux?Is it hard to learn Linux?Apr 18, 2025 am 12:23 AM

Learning Linux is not difficult. 1.Linux is an open source operating system based on Unix and is widely used in servers, embedded systems and personal computers. 2. Understanding file system and permission management is the key. The file system is hierarchical, and permissions include reading, writing and execution. 3. Package management systems such as apt and dnf make software management convenient. 4. Process management is implemented through ps and top commands. 5. Start learning from basic commands such as mkdir, cd, touch and nano, and then try advanced usage such as shell scripts and text processing. 6. Common errors such as permission problems can be solved through sudo and chmod. 7. Performance optimization suggestions include using htop to monitor resources, cleaning unnecessary files, and using sy

What is the salary of Linux administrator?What is the salary of Linux administrator?Apr 17, 2025 am 12:24 AM

The average annual salary of Linux administrators is $75,000 to $95,000 in the United States and €40,000 to €60,000 in Europe. To increase salary, you can: 1. Continuously learn new technologies, such as cloud computing and container technology; 2. Accumulate project experience and establish Portfolio; 3. Establish a professional network and expand your network.

What is the main purpose of Linux?What is the main purpose of Linux?Apr 16, 2025 am 12:19 AM

The main uses of Linux include: 1. Server operating system, 2. Embedded system, 3. Desktop operating system, 4. Development and testing environment. Linux excels in these areas, providing stability, security and efficient development tools.

Does the internet run on Linux?Does the internet run on Linux?Apr 14, 2025 am 12:03 AM

The Internet does not rely on a single operating system, but Linux plays an important role in it. Linux is widely used in servers and network devices and is popular for its stability, security and scalability.

What are Linux operations?What are Linux operations?Apr 13, 2025 am 12:20 AM

The core of the Linux operating system is its command line interface, which can perform various operations through the command line. 1. File and directory operations use ls, cd, mkdir, rm and other commands to manage files and directories. 2. User and permission management ensures system security and resource allocation through useradd, passwd, chmod and other commands. 3. Process management uses ps, kill and other commands to monitor and control system processes. 4. Network operations include ping, ifconfig, ssh and other commands to configure and manage network connections. 5. System monitoring and maintenance use commands such as top, df, du to understand the system's operating status and resource usage.

Boost Productivity with Custom Command Shortcuts Using Linux AliasesBoost Productivity with Custom Command Shortcuts Using Linux AliasesApr 12, 2025 am 11:43 AM

Introduction Linux is a powerful operating system favored by developers, system administrators, and power users due to its flexibility and efficiency. However, frequently using long and complex commands can be tedious and er

What is Linux actually good for?What is Linux actually good for?Apr 12, 2025 am 12:20 AM

Linux is suitable for servers, development environments, and embedded systems. 1. As a server operating system, Linux is stable and efficient, and is often used to deploy high-concurrency applications. 2. As a development environment, Linux provides efficient command line tools and package management systems to improve development efficiency. 3. In embedded systems, Linux is lightweight and customizable, suitable for environments with limited resources.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools