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

How to Install MySQL on CentOS 7.x?

MySQL is one of the popular database management systems. For now, MySQL is no longer within...

How to Enable Extended Logging in Exim?

Extended Exim log is helpful in troubleshooting Exim issues on Linux Server. It allows you to add...

How to Install SHOUTCast Radio Server on Linux VPS?

This tutorial will assist you to install SHOUTcast Distributed Network Audio Server (DNAS 2.0) in...

Can I purchase additional RAM, Disk space and Bandwidth for VPS?

Yes, you can purchase additional RAM(Our RAM Recommendation), DiskSpace, Bandwidth and vCPU...

How to configure 2FA on Magento 2.x Admin Panel using Google Authenticator?

Two-factor authentication is a proven security standard to add additional security to your login...

  • 0 Users Found This Useful

Was this answer helpful?