Hi guys quick question, whats the difference between “kubectl get po -A > pods.txt” and “kubectl get pod -A >> pods.txt”, what is the difference between “>” and “>>”?
“>” and “>>” are linux output redirection symbols.
“>” redirects the output of the command preceding it to a file, overwriting the file.
“>>” redirects the output of the command preceding it to a file appending the redirected output at the end.
got it… thanks @SK