How to Check Free Space on Your VPS?

If you have a virtual private server (VPS), you’ll likely need to check how much free disk space you have left from time to time. Knowing this information is important to prevent filling up the entire disk and facing unforeseen consequences. In this article, we’ll show you several ways to find out how much space is remaining on your VPS.

1. Using the df command

One of the easiest ways to check the available space on your VPS is to use the df command. This command displays information about disk space, including the total size, used space, and available space. Simply open a terminal and enter the following command:

df -h

After running this command, you’ll see a list of partitions and the corresponding information about available space. Note that the -h parameter is used to display the results in a human-readable format.

2. Using the du command

Another way to find out how much space files and folders are taking up on your VPS is to use the du command. This command outputs information about the size of files and folders in the specified directory. To find out the size of all files and folders in the current directory, use the following command:

VPS Hosting

Virtual servers with guaranteed resources

Choose VPS

du -sh *

After running this command, you’ll get information about the size of all files and folders in the current directory. The -s and -h parameters are used to display the total size in a human-readable format.

3. Using the Web Management Interface

Often the best way to check information about free space on your VPS is using the web management interface from your hosting provider. Many companies provide such tools for monitoring resources and managing servers. Just log in to your hosting provider’s account and find the section that displays information about your VPS disk space.

Conclusion

In this article, we looked at several ways to check free space on your VPS. Use the suggested commands and tools to regularly monitor disk space and avoid problems associated with disk overflow. Pay attention to the free space on your server, and your VPS will work stably and without failures.