<p>I'm using kubectl cp to copy a jar file from my local file system into a the home directory of a POD in my minikube environment. However, the only way I can confirm that the copy succeeded is to issue a new kubectl cp command to copy the file back to a temp directory and compare the checksums. Is there a way to view the copied files directly? </p>

<p>You can execute commands in a container using <code>kubectl exec</code> command.</p>

<p><strong>For example</strong>:</p>

<p>to check files in any folder:</p>

<pre><code>kubectl exec &lt;pod_name&gt; -- ls -la /
</code></pre>

<p>or to calculate <code>md5sum</code> of any file:</p>

<pre><code>kubectl exec &lt;pod_name&gt; -- md5sum /some_file
</code></pre>
