title: how to execute a terminal command in c#
body: <p>I read many post, from them there is this one</p>
  
  <p>c# - Opening the terminal process and pass commands?</p>
  
  <p>I do the exact same thing in my code</p>
  
  <pre><code>Process proc = new System.Diagnostics.Process ();
  proc.StartInfo.FileName = "/bin/bash";
  proc.StartInfo.Arguments = "-c \" " + command + " \"";
  proc.StartInfo.UseShellExecute = false; 
  proc.StartInfo.RedirectStandardOutput = true;
  proc.Start ();
  </code></pre>
  
  <p>where command = export DISPLAY=:0.0</p>
  
  <p>and it goes to my catch, "pplicationName='/bin/bash', CommandLine='-c " cd .. "', CurrentDirectory='', Native error= The system cannot find the file specified."</p>
  
  <p>what do I do differently? even if I try to juste set command = "cd .." it doesn't work</p>