title: Command to find the sudo su jenkins occurences in a RHEL Linux box
body: <p>My requirement is to review the occurrences of <code>sudo su jenkins</code> command usage in a RHEL VM. I tried the below command and got permission denied error. Is there any other specific command which gives me the output of occurrences of the <code>sudo su jenkins</code> usage. I need to remove the <code>sudo su</code> and see the impact    </p>
  
  <p><strong>command:</strong></p>
  
  <pre><code>tail var/log/secure | grep jenkins    
  </code></pre>
  
  <p><strong>Error:</strong></p>
  
  <pre><code>Permission denied
  </code></pre>
  
  <p>I tried this command inside Jenkins user only</p>