title: Executing shell script commands in Ruby script
body: <p>I have a very basic question. I'm running a Ruby script to access the contents of a directory in Linux. The directory is passed through the command line when the ruby script is executed.</p>
  
  <p>My question is how would I use the command line argument in the command for ruby?</p>
  
  <p>I have it set like such:</p>
  
  <pre><code>usrDirectory = ARGV[0]
  lsCmd = `ls -l`
  </code></pre>
  
  <p>I need to use something like ls -l usrDirectory.
  Could I just insert it into the command like is?</p>