title: How to move file from one folder to different folder in linux
body: <p>How to move a particular file from one folder to another folder?</p>
  
  <p>What I have tried,</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main() {
      FILE *tFile;
      if (tFile != NULL)
          tFile = NULL;
      if ((tFile = fopen("TempFile.txt", "rw")) == NULL) {
          return -1;
      }
  
      mv("TempFile.txt", "../MST");
  
      printf("Done Succesfully\n");
      return 0;
  }
  </code></pre>
  
  <p>Error : </p>
  
  <pre><code>test.c:17:2: warning: no newline at end of file
  /tmp/ccKLWYNa.o(.text+0x5e): In function `main':
  : undefined reference to `mv'
  collect2: ld returned 1 exit status
  </code></pre>
  
  <p>Please guide me how can I do this.</p>