How to remove files that are more than 100 MB inside the public_html folder in cPanel server ?

Please run the below command to find out the files that are more than 100 MB inside your cPanel server.

find /home/*/public_html/ -type f -size +100M -exec ls -lah {} \; | awk '{ print $9 ": " $5 }'

Once you run the above command you will get the files that are more than 100 MB inside the public_html file. However, in your case, you may need to find the files that are more than 100 MB other than the public_html folder and in that case, you just need to change the folder/directory path.

Once you get the list of files that are over 100 MB then you can run the rm -rf command to remove those files.

Related Articles

How To install Nginx on CentOS 7?

Nginx is a Web server that can be installed on Linux Server. You may have heard about Apache Web...

How to Disable SELinux on CentOS?

SELinux called Security-Enhanced Linux is a security module of Linux kernel which provides...

How to install Softaculous on Linux server with cPanel?

Ioncube loader should be installed and enabled on your Linux machine with cPanel before...

How To Install Docker on Ubuntu 18.04?

Docker is a container-based tool used to create, deploy, and run the applications by using...

How to add IP Address on Ubuntu 18.04 using netplan?

We can configure IP Address on ubuntu 18.04 using Netplan. It is a different method to add IP...

  • 0 Users Found This Useful

Was this answer helpful?