title: About running mysqldump command in centos
body: <pre><code>mysqldump -uroot -p'passwd' --database databasename &gt; /home/www/test.com/test.sql
  </code></pre>
  
  <p>When I run command above, it have no problem.</p>
  
  <p>But when I change the test.com folder, for example:</p>
  
  <pre><code>mysqldump -uroot -p'passwd' --database databasename &gt; /home/www/test2.com/test.sql
  </code></pre>
  
  <p>It shows the error:</p>
  
  <pre><code>bash: /home/www/test2.com/test.sql: No such file or directory
  </code></pre>
  
  <p>The path was correct, why?</p>