title: How can I run GCC into WSL?
body: <p>So, Windows System on Linux seems to be an inovative light-weight substitute for a virtual machine, especially when it comes to learning Linux. Nevertheless, for me WSL seems to have a little more complicated organization from a VM when it comes to file management. For example, in WSL the data are stored in</p>
  <pre><code>C:\Users\&lt;username&gt;\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu20.04onWindows_79rhkp1fndgsc\LocalState\rootfs\usr\
  
  </code></pre>
  <p>as shown <a href="https://superuser.com/questions/1185033/what-is-the-home-directory-on-windows-subsystem-for-linux">here</a>.
  Of course my first try to install GCC was to type in:</p>
  <pre><code>sudo apt install gcc
  </code></pre>
  <p>,but after typing</p>
  <pre><code>gcc --version
  </code></pre>
  <p>the output was :</p>
  <pre><code>Command 'gcc' not found, but can be installed with:
  
  sudo apt install gcc
  </code></pre>
  <p>After that, I tried installing GCC using the following commands as shown <a href="https://stackoverflow.com/questions/62215963/how-to-install-gcc-and-gdb-for-wslwindows-subsytem-for-linux">here</a> :</p>
  <pre><code>$ sudo apt-get update &amp;&amp; sudo apt-get upgrade -y
  $ sudo apt autoremove -y
  $ sudo apt-get install gcc -y
  </code></pre>
  <p>but I end up getting the same output.
  On the other hand, I already had installed TDM GCC on Windows and used sudo in VM to install it also there (successfully:).
  Like a lot of people, I want to substitute the use of my virtual machine with  WSL in order to be able to develop in C without overloading my RAM  my questions are :</p>
  <li>Can you count out for me how many times have I downloaded GCC files?
  <li>Why the folder that I was supposed to be downloading the gcc files in is shown to be empty?
  <li>Where are the downloaded files being stored? 
  <li>How can get gcc fired up? 
   <li> Is there any way to use the gcc  I had on Windows to compile C using the WSL terminal? <br><br>
  I think these questions come from the fact that I cannot understand how WSL file system interacts with Windows. They are a bit more generic on purpose because I want you to have a lot of "answering" freedom.
  Please help me out of this one!  I don't want to be forced to use a virtual machine and run out of RAM almost every time!