title: How to undo "mv file -" command in Ubuntu
body: <p>As far as you know, <code>-</code> has different usages for in combination with different commands in Linux. For example <a href="https://stackoverflow.com/questions/9740298/what-does-cd-stand-for">in combination with  <code>cd</code> command</a>, it means &quot;<em>Change directory to the previous location</em>&quot; and <a href="https://unix.stackexchange.com/questions/16357/usage-of-dash-in-place-of-a-filename">in combination <code>mv</code> or <code>cat</code> command</a> it means <code>stdin</code> or <code>stdout</code>.</p>
  <p>Unfortunately I wrongly used this character with <code>mv</code> command. I wanted to move my file to the previous location which I have been before the change directory but I moved it to <code>stdin</code> instead.</p>
  <p>Is there any way to recover my file?</p>
  <p>I run this command:</p>
  <pre><code># mv myfile -
  </code></pre>