This two-day learning of Simple Linux commands

Source: Internet
Author: User

1. Timed execution of commands to view the interface of the command

Ten Get pods-n kube-ops

Every 10 seconds check the command run interface

2. Background mode running Jenkins the current window close does not affect the execution result.

Nohup Java-jar Jenkins.war &

3. Xargs parameters This one needs to learn slowly, only to learn a simple command.

should be the result of the previous command passed in as a parameter to the next command.

get pods-n kube-ops |grep Error |awk '{print $} ' |xargs kubectl Delete pod-n kube-ops

4. Simple commands for k8s operation

Kubectl describe pods podname-n namespacename describes pod related information such as recent error messages
Kubectl logs Podsname-n namespacename The log of the pod shows a detailed description of the cause of the problem.
namespace go inside the pod to see the appropriate information

This two-day learning of Simple Linux commands

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.