title: Resize file dimension in Linux
body: <p>I would like to resize a file in Linux, I need this:</p>
  
  <ul>
  <li><p>Duplicate file, my file now is 1gb and I want a 2gb file, so duplicate the numbers of rows.</p></li>
  <li><p>Truncate the file to a certain number of rows.</p></li>
  </ul>