Yes, you can change the default subdomain directory in cPanel. Here are the steps to do so:
Step 1: Login into your Cpanel account.
Step 2: Navigate to the Domains section and click on Subdomains.
Step 3: In the Create a Subdomain section, locate the subdomain for which you want to change the directory and click on the Manage button next to it.
Step 4: Scroll down to the Document Root section, which displays the current directory path for the subdomain.
Step 5: Update the directory path to the desired location. You can either type in the full directory path or use the browse option to select the folder from the file manager.
Step 6: Click on the Save button to save the changes.
It is important to note that changing the default subdomain directory may affect any existing content or applications relying on the previous directory. Ensure that you backup any important files or make necessary adjustments to ensure the proper functioning of your website or application.