title: Writing txt file to disk in Airflow is not working
body: <p>I have been trying to write a simple text to a local <code>txt</code> file through a DAG script. Even though the task runs successfully. I cannot seem to find the file anywhere. Is it because I am using WSL on Windows?</p>
  <p>Here is my simple script:</p>
  <pre><code>import os
  
  from datetime import datetime, timedelta
  
  from airflow import DAG
  from airflow.operators.bash_operator import BashOperator
  from airflow.operators.python_operator import PythonOperator
  
  default_args = {
      &quot;owner&quot;: &quot;airflow&quot;,
      &quot;depends_on_past&quot;: False,
      &quot;start_date&quot;: datetime(2020, 12, 5),
      &quot;retries&quot;: 0,
  }
  
  
  dag = DAG(
      &quot;simple_dag&quot;,
      default_args=default_args,
      schedule_interval=&quot;@once&quot;,
  )
  
  t1 = BashOperator(
      task_id=&quot;print_file&quot;,
      bash_command='echo &quot;pipeline&quot; &gt; opDE.txt',
      dag=dag)
  
  
  
  t1 
  </code></pre>