![]() ![]() I have a variety of Raspberry Pis that I use for various tasks like Note that it extracts it to the same directory tree but it will onlyĮxtract the file(s) specified on the command line. Now I can pass the full path and extract the file: $ tar zxvf. Since I don’t have the full path, I can just search for it: $ tar tf | grep 'file-7-30003.txt' Tar: file-7-30003.txt: Not found in archive Incorrect file specification: $ tar zxvf file-7-30003.txt Here is an example of the error you will get if you pass the If I know the name of the fileĪll I have to do is pass the file’s relative path that it is stored Suppose I have a tarball (.tar.gz file) which is large and I only $ kubectl cp file1.txt my-resource:file1.txt The cp parameter lets you copy files and directories to $ kubectl exec -it my-resource -n charts - /bin/bash The exec parameter allows you to exec into a The logs parameter displays the contents of the The describe parameter provides details of your ![]() The apply parameter allows you to apply configurations The delete parameter allows you to remove resources: The edit parameter allows you to update resources: $ kubectl create cj my-cronjob -image=alpine -schedule="*/15 * * * *" - echo "hi there" You can also use cj as an abreviation for $ kubectl create ns hello-world $ kubectl create cronjob my-cronjob -image=alpine -schedule="*/15 * * * *" - echo "hi there" $ kubectl get nodes $ kubectl get ns # ns is an abreviation for namespace $ kubectl get pods -n kube-system You can use it to query: * namespace * pod * node * The get parameter is a powerful way of discovering your
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |