<p>I am new to Kubectl commands, I met</p>
<blockquote>
<p>kubectl -f -lapp=nginx</p>
</blockquote>
<p>As from <a href="https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#logs" rel="nofollow noreferrer">documentation</a>, and the command --help</p>
<blockquote>
<p>-f, --follow=false: Specify if the logs should be streamed.</p>
</blockquote>
<p>I want to confirm, if I use -f like above in command, does that mean:</p>
<pre><code>kubectl --follow=true -lapp=nginx
</code></pre>
<p>I am asking this because documentation said --follow=false is default, so if I use -f, in this case, it means --follow=true, is my understanding correct ?</p>

IcyBrk
<p>Yes, it will do the same thing for you. <code>--follow=true</code> and <code>-f</code> both are same.</p>
<p>here is an example of full command to show log with <code>-f</code> or <code>--follow=true</code>:</p>
<pre><code>kubectl --follow=true logs -n $Namespace pod_name -c container_name
</code></pre>
<pre><code>kubectl  logs -n $Namespace pod_name -c container_name -f
</code></pre>
