You can try to use Process and pass the appropriate Linux commands like the method in the link below.
Finding available space for a directory in C# on Linux
I don't have a Linux environment so I haven't tested it. You can try it.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.