Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in DevOps and Agile by (29.3k points)

Could someone tell me what is kubectl cp command?

1 Answer

0 votes
by (99k points)

The kubectl cp command is used for copying the files between the user machine or the instance (cloud) and containers. This command is used for copying files, and this is done through the creation of a tar file by the container inside, reproduces it to the network and finally with the help of kubectl user unpacks it in their machine or cloud instance.

The syntax for using the kubectl cp command is:

$ kubectl cp <file-spec-src> <file-spec-dest>

Aiming for a DevOps career? Then add a Kubernetes certification from Intellipaat. Certification from Intellipaat is accepted in well over 80+ MNC’s like Sony, Cisco, Cognizant, Standard Chartered, TCS, etc.

Also, if you wish to know more, then have a look at our YouTube video on Kubectl Basic Commands to get started.

Related questions

0 votes
1 answer
0 votes
1 answer
asked Dec 21, 2020 in DevOps and Agile by chandra (29.3k points)
0 votes
1 answer
asked Dec 21, 2020 in DevOps and Agile by chandra (29.3k points)
0 votes
1 answer
asked Dec 21, 2020 in DevOps and Agile by chandra (29.3k points)
0 votes
1 answer

Browse Categories

...