According to this answer global/system config files are generally stored under /etc
in linux. Is this also the case for WSL? If so where is the /etc
equivalent directory located, as I was unable to find it in the WSL installation directory shown below:
C:\Users\user\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu18.04onWindows_79rhkp1fndgsc
Read the warning by @josh3736 in the answers below and don't make the mistake I made. Look at this to edit WSL files correctly.