Hi, I have a question like list info and save to a file. Could I edit the file l . . .

dxloader:
Hi, I have a question like list info and save to a file. Could I edit the file later if I found some error? Like question: create a busybox pod and run the command env , and save the output to envpod.txt file.
If I use
kubectl run busybox --image=busybox --rm --restart=Never -ti -- env > envpod.txt

the last line of this file will be :

pod “busybox” deleted

Can I edit the file to remove the last line?

Hi @dxloader,

–rm ensures the Pod is deleted when the shell exits.

To edit the file you can use a text editor like vim as below:

testdeletbusybox

Thanks,
KodeKloud Support