How to find all files larger than 1GB size in Linux?

If your server is running multiple applications, it could be run out of space at one point. When your server shows you low disk space, you may be required to identify the larger files on your server that are occupying the large space of the server.

Following are some useful commands to find out the larger files.

  1. Find the files that are equal to or greater than 500 MB.
find / -type f -size +500M 
  1. Find the files that are greater than 1 GB.
find / -type f -size +1G 
  1. Search Files By Size and Extension.

If you are looking to find the files with a specific extension then you can run the below command. Using the below command, you can find all the log files that are greater than 1 GB in size.

find / -type f -name "*.log" -size +1G

Related Articles

Is it possible to take complete VPS backup in VPS itself?

Please note that, there is no provision to take backup of full VPS image in VPS itself. As an...

How to Check Bandwidth Usage from WHM Panel?

Within WHM (Web Host Manager), you can check the bandwidth usage of each website hosted. Here are...

HOW TO INSTALL NEXTCLOUD ON UBUNTU?

Nextcloud is an open-source and secure PHP-based content collaboration platform. It is used for...

How to Safely Change the Location of MySQL/MariaDB Data Directory on cPanel/WHM Servers?

You may require to change the MySQL data directory due to insufficient partition space on /var or...

How to enable Analytics Feature from cPanel ?

cPanel has launched the Interface Analytics plugin in WHM version 78. cPanel Analytics plugin...

  • 0 Users Found This Useful

Was this answer helpful?