I have installed modelsim 2020.1 on my windows machine. I want to run commands like vlib and vcom on the Linux shell that I have enabled using some options within Windows(procedure link given above). I was looking for some help in this regard, as the windows bash shell doesn't seem to be recognizing these commands.
I ran the same commands on Cygwin, Windows Powershell, and Windows command line. These three interfaces are recognising Modelsim Batch mode commands.
How may I run my already installed Modelsim that is installed on Windows machine, on the Linux that is also installed on the same Windows machines(After enabling Windows System for Linux)?
ModelSim TCL commands will run the same way for Windows and Linux. They are just TCL commands and have nothing to do with the OS.
You can just create a TCL file or DO file with your collection of ModelSim commands and run that file both in Win or Linux.
However due to the wierd nature of your tool environment, be careful on how you are specifying the paths to the ModelSim executables.
A better solution in my opinion is to use an Ubuntu Docker Image on Windows and install all your EDA tools under the Docker image.
WSL is a barebones virtual machine running Linux.
You can't run Windows programs using the Linux kernel, the programs have to be compiled to run on Linux itself.
If you want to take advantage of the shell scripting of Linux then install the Linux version of Modelsim on WSL.