title: linux - override max width of top command
body: <p>I want to write the output of <code>top</code> command into a file.</p>
  
  <p>By default, top command cuts the lines in the middle and not showing all the arguments.</p>
  
  <p>When I try to run </p>
  
  <pre><code>COLUMNS=1000 top -c -b -n 1 &gt; /tmp/output.txt
  </code></pre>
  
  <p>it doesn't work, I read that there is a limit of 512 columns.</p>
  
  <p>My question is - how can I properly override this number for only this command? or maybe set it in the system and revert it back after executing the command?</p>