How can I make kubectl silent?
Solution 1:
Here is what worked in my case (after command execution output is completely silent):
kubectl port-forward pod-name 1234:1234 2>&1 >/dev/null &
which says send stderr
output to the same place where stdout
output which is /dev/null
Tested for:
Ubuntu 18.04
Kernel 5.4.0-70-generic
GNU bash, version 4.4.20(1)-release (x86_64-pc-linux-gnu)