R studio server in wsl

it seems what you are looking for is /usr/lib64/R/rstudio-server/bin/rstudio-server
to get the command rstudio-server, execute the following

export PATH=$PATH:/usr/lib64/R/rstudio-server/bin/
echo 'export PATH=$PATH:/usr/lib64/R/rstudio-server/bin/'>>~/.bashrc

for fish:

set -Ux PATH $PATH  /usr/lib64/R/rstudio-server/bin/

you can also execute it directly with the full path name

2 Likes