Hi,
Thank you. First, take snapshot from your virtual machine.
You have to power off your virtual machine then increase hard disk capacity (Check the related datastore free space before that).

That won't detect by OS.
Then you need to do something within the Linux virtual machine or boot your virtual machine with boot disks and change your hard disk capacity by disk tool.
For example, Acronis disk director, GParted (Live Linux) and any other tools.
This link will help you: How to extend the root filesystem on CentOS/RedHat VMware virtual machine - Database Diver's Diary