{"id":3841,"date":"2022-07-16T21:26:55","date_gmt":"2022-07-16T21:26:55","guid":{"rendered":"https:\/\/reviewnprep.com\/blog\/?p=3841"},"modified":"2023-06-24T05:05:34","modified_gmt":"2023-06-24T05:05:34","slug":"cheat-sheet-kubernetes-and-linux-commands","status":"publish","type":"post","link":"https:\/\/reviewnprep.com\/blog\/cheat-sheet-kubernetes-and-linux-commands\/","title":{"rendered":"Cheat Sheet &#8211; Kubernetes and Linux Commands"},"content":{"rendered":"\n<p>If you are like most people, and you end up searching the internet for the commands for Kubernetes and Linux, this is the blog for you. <\/p>\n\n\n\n<p>By following some easy syntax rules, using kubectl is relatively straightforward. The CLI supports Windows, Mac and Linux operating systems; simply choose the appropriate install package to get started. Once the process is complete, you\u2019re free to use kubectl. The controls available through the GUI are somewhat limited, so the CLI is geared more toward power users.<\/p>\n\n\n\n<p>While learning Kubernetes, I ended up posting 14 or 15 sticky notes on my monitor to help me in those moments &#8211; but after a while, I could barely read what was on the screen. So finally, I created one small, easy-to-read piece of paper to reference when I or you &#8211; get stuck.<\/p>\n\n\n\n<p>At the end, you can download of this blog, you can download the pdf version of these commonly used commands. <\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_66_1 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69e8e1df0ab50\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69e8e1df0ab50\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/reviewnprep.com\/blog\/cheat-sheet-kubernetes-and-linux-commands\/#What_is_Kubernetes\" title=\"What is Kubernetes?\">What is Kubernetes?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/reviewnprep.com\/blog\/cheat-sheet-kubernetes-and-linux-commands\/#Take_a_Poll_to_See_How_You_Compare_With_Others\" title=\"Take a Poll to See How You Compare With Others\">Take a Poll to See How You Compare With Others<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/reviewnprep.com\/blog\/cheat-sheet-kubernetes-and-linux-commands\/#Kubernetes_Commonly_Used_Commands\" title=\"Kubernetes Commonly Used Commands\">Kubernetes Commonly Used Commands<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/reviewnprep.com\/blog\/cheat-sheet-kubernetes-and-linux-commands\/#Creating_and_Updating_a_Resource\" title=\"Creating and Updating a Resource\">Creating and Updating a Resource<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/reviewnprep.com\/blog\/cheat-sheet-kubernetes-and-linux-commands\/#Modifying_kubeconfig_Files\" title=\"Modifying kubeconfig Files\">Modifying kubeconfig Files<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/reviewnprep.com\/blog\/cheat-sheet-kubernetes-and-linux-commands\/#Listing_Resources\" title=\"Listing Resources\">Listing Resources<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/reviewnprep.com\/blog\/cheat-sheet-kubernetes-and-linux-commands\/#Deleting_Resources\" title=\"Deleting Resources\">Deleting Resources<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/reviewnprep.com\/blog\/cheat-sheet-kubernetes-and-linux-commands\/#Displaying_the_State_of_Resources\" title=\"Displaying the State of Resources\">Displaying the State of Resources<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/reviewnprep.com\/blog\/cheat-sheet-kubernetes-and-linux-commands\/#Executing_a_Command\" title=\"Executing a Command\">Executing a Command<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/reviewnprep.com\/blog\/cheat-sheet-kubernetes-and-linux-commands\/#Printing_Container_Logs\" title=\"Printing Container Logs\">Printing Container Logs<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/reviewnprep.com\/blog\/cheat-sheet-kubernetes-and-linux-commands\/#Linux_Commonly_Used_Commands\" title=\"Linux Commonly Used Commands\">Linux Commonly Used Commands<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/reviewnprep.com\/blog\/cheat-sheet-kubernetes-and-linux-commands\/#Basic_Linux_Commands\" title=\"Basic Linux Commands\">Basic Linux Commands<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/reviewnprep.com\/blog\/cheat-sheet-kubernetes-and-linux-commands\/#User_management_commands_of_linux\" title=\"User management commands of linux\">User management commands of linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/reviewnprep.com\/blog\/cheat-sheet-kubernetes-and-linux-commands\/#File_management\" title=\"File management\">File management<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/reviewnprep.com\/blog\/cheat-sheet-kubernetes-and-linux-commands\/#File_Permission_commands\" title=\"File Permission commands\">File Permission commands<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/reviewnprep.com\/blog\/cheat-sheet-kubernetes-and-linux-commands\/#Process_command\" title=\"Process command\">Process command<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/reviewnprep.com\/blog\/cheat-sheet-kubernetes-and-linux-commands\/#Networking_command\" title=\"Networking command\">Networking command<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/reviewnprep.com\/blog\/cheat-sheet-kubernetes-and-linux-commands\/#VI_Editing_Commands\" title=\"VI Editing Commands\">VI Editing Commands<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-19\" href=\"https:\/\/reviewnprep.com\/blog\/cheat-sheet-kubernetes-and-linux-commands\/#Environment_Variables_command\" title=\"Environment Variables command\">Environment Variables command<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-20\" href=\"https:\/\/reviewnprep.com\/blog\/cheat-sheet-kubernetes-and-linux-commands\/#Memory_and_Process\" title=\"Memory and Process\">Memory and Process<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-21\" href=\"https:\/\/reviewnprep.com\/blog\/cheat-sheet-kubernetes-and-linux-commands\/#Download_Free_PDF_Version_of_Commands\" title=\"Download Free PDF Version of Commands\">Download Free PDF Version of Commands<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_is_Kubernetes\"><\/span>What is Kubernetes?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Kubernetes is a platform for managing containerized workloads. Kubernetes orchestrates computing, networking and storage to provide a seamless portability across infrastructure providers. Confused? Check out Introduction to Kubernetes, our Kubernetes 101 crash course in all the fundamentals you need to know.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Take_a_Poll_to_See_How_You_Compare_With_Others\"><\/span>Take a Poll to See How You Compare With Others<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n<div class='bootstrap-yop yop-poll-mc'>\n\t\t\t\t\t\t\t<div class=\"basic-yop-poll-container\" style=\"background-color:#327bd6; border:0px; border-style:solid; border-color:#327bd6; border-radius:7px; padding:10px 10px;\" data-id=\"25\" data-temp=\"basic\" data-skin=\"minimal\" data-cscheme=\"black\" data-cap=\"0\" data-access=\"guest\" data-tid=\"\" data-uid=\"6f920c3138a74e8aad89f1571baa8279\" data-pid=\"3841\" data-resdet=\"percentages\" data-show-results-to=\"guest\" data-show-results-moment=\"after-vote\" data-show-results-only=\"false\" data-show-message=\"true\" data-show-results-as=\"bar\" data-sort-results-by=\"as-defined\" data-sort-results-rule=\"asc\"data-is-ended=\"0\" data-gdpr=\"no\" data-gdpr-sol=\"consent\" data-css=\".basic-yop-poll-container[data-uid] .basic-vote {\n\t\t\t\t\t\t\t\t\ttext-align: center;\n\t\t\t\t\t\t\t\t}\" data-counter=\"0\" data-load-with=\"1\" data-notification-section=\"top\"><div class=\"row\"><div class=\"col-md-12\"><div class=\"basic-inner\"><div class=\"basic-message hide\" style=\"border-left: 10px solid #008000; padding: 0px 10px;\" data-error=\"#ff0000\" data-success=\"#008000\"><p class=\"basic-message-text\" style=\"color:#000000; font-size:14px; font-weight:normal;\"><\/p><\/div><div class=\"basic-overlay hide\"><div class=\"basic-vote-options\"><\/div><div class=\"basic-preloader\"><div class=\"basic-windows8\"><div class=\"basic-wBall basic-wBall_1\"><div class=\"basic-wInnerBall\"><\/div><\/div><div class=\"basic-wBall basic-wBall_2\"><div class=\"basic-wInnerBall\"><\/div><\/div><div class=\"basic-wBall basic-wBall_3\"><div class=\"basic-wInnerBall\"><\/div><\/div><div class=\"basic-wBall basic-wBall_4\"><div class=\"basic-wInnerBall\"><\/div><\/div><div class=\"basic-wBall basic-wBall_5\"><div class=\"basic-wInnerBall\"><\/div><\/div><\/div><\/div><\/div><form class=\"basic-form\"><input type=\"hidden\" name=\"_token\" value=\"715a20286f\" autocomplete=\"off\"><div class=\"basic-elements\"><div class=\"basic-element basic-question basic-question-text-vertical\" data-id=\"25\" data-uid=\"74d588cc6f5cebe7329f9cd19e60918d\" data-type=\"question\" data-question-type=\"text\" data-allow-multiple=\"no\" data-min=\"1\" data-max=\"1\" data-display=\"vertical\" data-colnum=\"\" data-display-others=\"no\" data-others-color=\"\" data-others=\"\"><div class=\"basic-question-title\"><h5 style=\"color:#ffffff; font-size:14px; font-weight:normal; text-align:center;\">How would you rate yourself on Linux?<\/h5><\/div><ul class=\"basic-answers\"><li class=\"basic-answer\" style=\"padding:0px 0px;\" data-id=\"98\" data-type=\"text\" data-vn=\"15\" data-color=\"#000000\" data-make-link=\"no\" data-link=\"\"><div class=\"basic-answer-content basic-text-vertical\"><label for=\"answer[98]\" class=\"basic-answer-label\"><input type=\"radio\" id=\"answer[98]\" name=\"answer[25]\" value=\"98\"  autocomplete=\"off\"><span class=\"basic-text\" style=\"color: #ffffff; font-size: 14px; font-weight: normal;\">Novice (knows nothing about Linux)<\/span><\/label><\/div><\/li><li class=\"basic-answer\" style=\"padding:0px 0px;\" data-id=\"99\" data-type=\"text\" data-vn=\"23\" data-color=\"#000000\" data-make-link=\"no\" data-link=\"\"><div class=\"basic-answer-content basic-text-vertical\"><label for=\"answer[99]\" class=\"basic-answer-label\"><input type=\"radio\" id=\"answer[99]\" name=\"answer[25]\" value=\"99\"  autocomplete=\"off\"><span class=\"basic-text\" style=\"color: #ffffff; font-size: 14px; font-weight: normal;\">Beginner (Started learning and can execute few commands)<\/span><\/label><\/div><\/li><li class=\"basic-answer\" style=\"padding:0px 0px;\" data-id=\"100\" data-type=\"text\" data-vn=\"23\" data-color=\"#000000\" data-make-link=\"no\" data-link=\"\"><div class=\"basic-answer-content basic-text-vertical\"><label for=\"answer[100]\" class=\"basic-answer-label\"><input type=\"radio\" id=\"answer[100]\" name=\"answer[25]\" value=\"100\"  autocomplete=\"off\"><span class=\"basic-text\" style=\"color: #ffffff; font-size: 14px; font-weight: normal;\">Intermediate (Have more than basic knowledge)<\/span><\/label><\/div><\/li><li class=\"basic-answer\" style=\"padding:0px 0px;\" data-id=\"101\" data-type=\"text\" data-vn=\"6\" data-color=\"#000000\" data-make-link=\"no\" data-link=\"\"><div class=\"basic-answer-content basic-text-vertical\"><label for=\"answer[101]\" class=\"basic-answer-label\"><input type=\"radio\" id=\"answer[101]\" name=\"answer[25]\" value=\"101\"  autocomplete=\"off\"><span class=\"basic-text\" style=\"color: #ffffff; font-size: 14px; font-weight: normal;\">Pro at all things Linux<\/span><\/label><\/div><\/li><\/ul><\/div><div class=\"clearfix\"><\/div><\/div><div class=\"basic-vote\"><a href=\"#\" class=\"button basic-vote-button\" role=\"button\" style=\"background:#ffffff; border:1px; border-style: solid; border-color:#000000; border-radius:0px; padding:5px 10px; color:#000000; font-size:14px; font-weight:normal;\">Vote<\/a><\/div><\/form><\/div><\/div><\/div><\/div>\n\t\t\t\t\t\t<\/div>\n\n\n<div class='bootstrap-yop yop-poll-mc'>\n\t\t\t\t\t\t\t<div class=\"basic-yop-poll-container\" style=\"background-color:#327bd6; border:0px; border-style:solid; border-color:#327bd6; border-radius:7px; padding:10px 10px;\" data-id=\"26\" data-temp=\"basic\" data-skin=\"minimal\" data-cscheme=\"black\" data-cap=\"0\" data-access=\"guest\" data-tid=\"\" data-uid=\"3bca8640943b18d7e41ea17fdda68995\" data-pid=\"3841\" data-resdet=\"percentages\" data-show-results-to=\"guest\" data-show-results-moment=\"after-vote\" data-show-results-only=\"false\" data-show-message=\"true\" data-show-results-as=\"bar\" data-sort-results-by=\"as-defined\" data-sort-results-rule=\"asc\"data-is-ended=\"0\" data-gdpr=\"no\" data-gdpr-sol=\"consent\" data-css=\".basic-yop-poll-container[data-uid] .basic-vote {\n\t\t\t\t\t\t\t\t\ttext-align: center;\n\t\t\t\t\t\t\t\t}\" data-counter=\"0\" data-load-with=\"1\" data-notification-section=\"top\"><div class=\"row\"><div class=\"col-md-12\"><div class=\"basic-inner\"><div class=\"basic-message hide\" style=\"border-left: 10px solid #008000; padding: 0px 10px;\" data-error=\"#ff0000\" data-success=\"#008000\"><p class=\"basic-message-text\" style=\"color:#000000; font-size:14px; font-weight:normal;\"><\/p><\/div><div class=\"basic-overlay hide\"><div class=\"basic-vote-options\"><\/div><div class=\"basic-preloader\"><div class=\"basic-windows8\"><div class=\"basic-wBall basic-wBall_1\"><div class=\"basic-wInnerBall\"><\/div><\/div><div class=\"basic-wBall basic-wBall_2\"><div class=\"basic-wInnerBall\"><\/div><\/div><div class=\"basic-wBall basic-wBall_3\"><div class=\"basic-wInnerBall\"><\/div><\/div><div class=\"basic-wBall basic-wBall_4\"><div class=\"basic-wInnerBall\"><\/div><\/div><div class=\"basic-wBall basic-wBall_5\"><div class=\"basic-wInnerBall\"><\/div><\/div><\/div><\/div><\/div><form class=\"basic-form\"><input type=\"hidden\" name=\"_token\" value=\"dccb33b345\" autocomplete=\"off\"><div class=\"basic-elements\"><div class=\"basic-element basic-question basic-question-text-vertical\" data-id=\"26\" data-uid=\"e5b9c3af36233fbf1e5dd87ad403faec\" data-type=\"question\" data-question-type=\"text\" data-allow-multiple=\"no\" data-min=\"1\" data-max=\"1\" data-display=\"vertical\" data-colnum=\"\" data-display-others=\"no\" data-others-color=\"\" data-others=\"\"><div class=\"basic-question-title\"><h5 style=\"color:#ffffff; font-size:14px; font-weight:normal; text-align:center;\">How would you rate yourself on Kubernetes?<\/h5><\/div><ul class=\"basic-answers\"><li class=\"basic-answer\" style=\"padding:0px 0px;\" data-id=\"103\" data-type=\"text\" data-vn=\"21\" data-color=\"#000000\" data-make-link=\"no\" data-link=\"\"><div class=\"basic-answer-content basic-text-vertical\"><label for=\"answer[103]\" class=\"basic-answer-label\"><input type=\"radio\" id=\"answer[103]\" name=\"answer[26]\" value=\"103\"  autocomplete=\"off\"><span class=\"basic-text\" style=\"color: #ffffff; font-size: 14px; font-weight: normal;\">Novice (knows nothing about Kubernetes)<\/span><\/label><\/div><\/li><li class=\"basic-answer\" style=\"padding:0px 0px;\" data-id=\"104\" data-type=\"text\" data-vn=\"30\" data-color=\"#000000\" data-make-link=\"no\" data-link=\"\"><div class=\"basic-answer-content basic-text-vertical\"><label for=\"answer[104]\" class=\"basic-answer-label\"><input type=\"radio\" id=\"answer[104]\" name=\"answer[26]\" value=\"104\"  autocomplete=\"off\"><span class=\"basic-text\" style=\"color: #ffffff; font-size: 14px; font-weight: normal;\">Beginner (Started learning and can execute few commands)<\/span><\/label><\/div><\/li><li class=\"basic-answer\" style=\"padding:0px 0px;\" data-id=\"105\" data-type=\"text\" data-vn=\"10\" data-color=\"#000000\" data-make-link=\"no\" data-link=\"\"><div class=\"basic-answer-content basic-text-vertical\"><label for=\"answer[105]\" class=\"basic-answer-label\"><input type=\"radio\" id=\"answer[105]\" name=\"answer[26]\" value=\"105\"  autocomplete=\"off\"><span class=\"basic-text\" style=\"color: #ffffff; font-size: 14px; font-weight: normal;\">Intermediate (Have more than basic knowledge)<\/span><\/label><\/div><\/li><li class=\"basic-answer\" style=\"padding:0px 0px;\" data-id=\"106\" data-type=\"text\" data-vn=\"1\" data-color=\"#000000\" data-make-link=\"no\" data-link=\"\"><div class=\"basic-answer-content basic-text-vertical\"><label for=\"answer[106]\" class=\"basic-answer-label\"><input type=\"radio\" id=\"answer[106]\" name=\"answer[26]\" value=\"106\"  autocomplete=\"off\"><span class=\"basic-text\" style=\"color: #ffffff; font-size: 14px; font-weight: normal;\">Pro at all things Kubernetes<\/span><\/label><\/div><\/li><\/ul><\/div><div class=\"clearfix\"><\/div><\/div><div class=\"basic-vote\"><a href=\"#\" class=\"button basic-vote-button\" role=\"button\" style=\"background:#ffffff; border:1px; border-style: solid; border-color:#000000; border-radius:0px; padding:5px 10px; color:#000000; font-size:14px; font-weight:normal;\">Vote<\/a><\/div><\/form><\/div><\/div><\/div><\/div>\n\t\t\t\t\t\t<\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Kubernetes_Commonly_Used_Commands\"><\/span>Kubernetes Commonly Used Commands<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Creating_and_Updating_a_Resource\"><\/span>Creating and Updating a Resource<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table class=\"has-fixed-layout\"><thead><tr><th>Command Name<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>kubectl create namespace [namespace-name]<\/td><td>Create a new namespace<\/td><\/tr><tr><td>kubectl create \u2013f [filename]<\/td><td>Create a resource from a JSON or YAML file<\/td><\/tr><tr><td>kubectl apply -f [service-name].yaml<\/td><td>Create a new service with the definition contained in [service-name].yaml<\/td><\/tr><tr><td>kubectl apply -f [controller-name].yaml<\/td><td>Create a new replication controller with the definition contained in [controller-name].yaml<\/td><\/tr><tr><td>kubectl apply -f [directory-name]<\/td><td>Create the objects defined in any .yaml, .yml, or .json file in a directory<\/td><\/tr><tr><td>kubectl edit svc\/[service-name]<\/td><td>Edit a service<\/td><\/tr><tr><td>KUBE_EDITOR=\u201d[editor-name]\u201d kubectl edit svc\/[service-name]<\/td><td>Edit a service in a non-default editor<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Modifying_kubeconfig_Files\"><\/span>Modifying kubeconfig Files<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table class=\"has-fixed-layout\"><thead><tr><th><strong>Command Name<\/strong><\/th><th><strong>Description<\/strong><\/th><\/tr><\/thead><tbody><tr><td>kubectl config current-context<\/td><td>Display the current context<\/td><\/tr><tr><td>kubectl config set-cluster [cluster-name] &#8211;server= [server-name]<\/td><td>Set a cluster entry in kubeconfig<\/td><\/tr><tr><td>kubectl config unset [property-name]<\/td><td>Unset an entry in kubeconfig<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Listing_Resources\"><\/span>Listing Resources<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table class=\"has-fixed-layout\"><thead><tr><th><strong>Command Name<\/strong><\/th><th><strong>Description<\/strong><\/th><\/tr><\/thead><tbody><tr><td>kubectl get namespaces<\/td><td>Generate a plain-text list of all namespaces<\/td><\/tr><tr><td>kubectl get pods<\/td><td>Generate a plain-text list of all pods<\/td><\/tr><tr><td>kubectl get pods -o wide<\/td><td>Generate a detailed plain-text list of all pods<\/td><\/tr><tr><td>kubectl get pods &#8211;field-selector=spec.nodeName=[server-name]<\/td><td>Generate a list of all pods running on a particular node server<\/td><\/tr><tr><td>kubectl get replicationcontroller [replication-controllername]<\/td><td>List a specific replication controller in plain text<\/td><\/tr><tr><td>kubectl get replicationcontroller, services<\/td><td>Generate a plain-text list of all replication controllers and services<\/td><\/tr><tr><td>kubectl get deamonset<\/td><td>Generate a plain-text list of all daemon sets<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Deleting_Resources\"><\/span>Deleting Resources<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table class=\"has-fixed-layout\"><thead><tr><th><strong>Command Name<\/strong><\/th><th><strong>Description<\/strong><\/th><\/tr><\/thead><tbody><tr><td>kubectl delete -f pod.yaml<\/td><td>Remove a pod using the name and type listed in pod.yaml<\/td><\/tr><tr><td>kubectl delete pods,services -l [label-key]=[label-value]<\/td><td>Remove all the pods and services with a specific label<\/td><\/tr><tr><td>kubectl delete pods \u2013all<\/td><td>Remove all pods. The command will include uninitialized pods as well<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Displaying_the_State_of_Resources\"><\/span>Displaying the State of Resources<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table class=\"has-fixed-layout\"><thead><tr><th><strong>Command Name<\/strong><\/th><th><strong>Description<\/strong><\/th><\/tr><\/thead><tbody><tr><td>kubectl describe nodes [node-name]<\/td><td>See details about a particular node<\/td><\/tr><tr><td>kubectl describe pods [pod-name]<\/td><td>See details about a particular pod<\/td><\/tr><tr><td>Kubectl describe \u2013f pod.json<\/td><td>See details about a pod whose name and type are listed in pod.json<\/td><\/tr><tr><td>kubectl describe pods [replication-controller-name]<\/td><td>See details about all pods managed by a specific replication controller<\/td><\/tr><tr><td>kubectl describe pods<\/td><td>See details about all pods<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Executing_a_Command\"><\/span>Executing a Command<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table class=\"has-fixed-layout\"><thead><tr><th><strong>Command Name<\/strong><\/th><th><strong>Description<\/strong><\/th><\/tr><\/thead><tbody><tr><td>kubectl exec [pod-name] &#8211;[command]<\/td><td>Receive output from a command run on the first container in a pod<\/td><\/tr><tr><td>kubectl exec [pod-name] -c[container-name] &#8211;[command]<\/td><td>Receive output from a command run on a specific container in a pod<\/td><\/tr><tr><td>kubectl exec -ti [pod-name] &#8211;\/bin\/bash<\/td><td>Run \/bin\/bash from a specific pod. The output received comes from the first container<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Printing_Container_Logs\"><\/span>Printing Container Logs<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table class=\"has-fixed-layout\"><thead><tr><th><strong>Command Name<\/strong><\/th><th><strong>Description<\/strong><\/th><\/tr><\/thead><tbody><tr><td>kubectl logs [pod-name]<\/td><td>Print logs from a pod<\/td><\/tr><tr><td>kubectl logs -f [pod-name]<\/td><td>Stream logs from a pod<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<div class=\"wp-block-file\"><a href=\"https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/07\/Kubernetes-Cheat-Sheet.pdf\">Kubernetes Cheat Sheet PDF<\/a><a href=\"https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/07\/Kubernetes-Cheat-Sheet.pdf\" class=\"wp-block-file__button\" download>Download<\/a><\/div>\n\n\n\n<div class=\"wp-block-file\"><a href=\"https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/07\/Linux-Cheat-Sheet.pdf\">Linux Cheat Sheet PDF<\/a><a href=\"https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/07\/Linux-Cheat-Sheet.pdf\" class=\"wp-block-file__button\" download>Download<\/a><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Linux_Commonly_Used_Commands\"><\/span>Linux Commonly Used Commands<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Basic_Linux_Commands\"><\/span>Basic Linux Commands<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table class=\"has-fixed-layout\"><thead><tr><th><strong>Command Name<\/strong><\/th><th><strong>Description<\/strong><\/th><\/tr><\/thead><tbody><tr><td>ls<\/td><td>Lists all files and directories in the present working directory<\/td><\/tr><tr><td>ls -R<\/td><td>Lists files in sub-directories as well<\/td><\/tr><tr><td>ls -a<\/td><td>Lists hidden files as well<\/td><\/tr><tr><td>ls -al<\/td><td>Lists files and directories with detailed information like permissions,size, owner, etc.<\/td><\/tr><tr><td>cd or cd ~<\/td><td>Navigate to HOME directory<\/td><\/tr><tr><td>cd ..<\/td><td>Move one level up<\/td><\/tr><tr><td>cd<\/td><td>To change to a particular directory<\/td><\/tr><tr><td>cd \/<\/td><td>Move to the root directory<\/td><\/tr><tr><td>cat &gt; filename<\/td><td>Creates a new file<\/td><\/tr><tr><td>cat filename<\/td><td>Displays the file content<\/td><\/tr><tr><td>cat file1 file2 &gt; file3<\/td><td>Joins two files (file1, file2) and stores the output in a new file (file3)<\/td><\/tr><tr><td>mv file &#8220;new file path&#8221;<\/td><td>Moves the files to the new location<\/td><\/tr><tr><td>mv filename new_file_name<\/td><td>Renames the file to a new filename<\/td><\/tr><tr><td>sudo<\/td><td>Allows regular users to run programs with the security privileges of the superuser or root<\/td><\/tr><tr><td>rm filename<\/td><td>Deletes a file<\/td><\/tr><tr><td>man<\/td><td>Gives help information on a command<\/td><\/tr><tr><td>history<\/td><td>Gives a list of all past commands typed in the current terminal session<\/td><\/tr><tr><td>clear<\/td><td>Clears the terminal<\/td><\/tr><tr><td>mkdir directoryname<\/td><td>Creates a new directory in the present working directory or a at the specified path<\/td><\/tr><tr><td>rmdir<\/td><td>Deletes a directory<\/td><\/tr><tr><td>mv<\/td><td>Renames a directory<\/td><\/tr><tr><td>pr -x<\/td><td>Divides the file into x columns<\/td><\/tr><tr><td>pr -h<\/td><td>Assigns a header to the file<\/td><\/tr><tr><td>pr -n<\/td><td>Denotes the file with Line Numbers<\/td><\/tr><tr><td>lp -nc , lpr c<\/td><td>Prints \u201cc\u201d copies of the File<\/td><\/tr><tr><td>&nbsp;lp-d lp-P<\/td><td>Specifies name of the printer<\/td><\/tr><tr><td>apt-get<\/td><td>Command used to install and update packages<\/td><\/tr><tr><td>mail -s &#8216;subject&#8217;<br>-c &#8216;cc-address&#8217;<br>-b &#8216;bcc-address&#8217;<br>&#8216;to-address&#8217;<\/td><td>Command to send email<\/td><\/tr><tr><td>mail -s &#8220;Subject&#8221;<br>to-address &lt; Filename<\/td><td>Command to send email with attachment<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"User_management_commands_of_linux\"><\/span>User management commands of linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table class=\"has-fixed-layout\"><thead><tr><th><strong>Command Name<\/strong><\/th><th><strong>Description<\/strong><\/th><\/tr><\/thead><tbody><tr><td>sudo adduser username<\/td><td>To add a new user<\/td><\/tr><tr><td>sudo passwd -l &#8216;username&#8217;<\/td><td>To change the password of a user<\/td><\/tr><tr><td>sudo userdel -r &#8216;username&#8217;<\/td><td>To remove a newly created user<\/td><\/tr><tr><td>sudo usermod -a -G GROUPNAME USERNAME<\/td><td>To add a user to a group<\/td><\/tr><tr><td>sudo deluser USER GROUPNAME<\/td><td>To remove a user from a group<\/td><\/tr><tr><td>finger<\/td><td>Shows information of all the users logged in<\/td><\/tr><tr><td>finger username<\/td><td>Gives information of a particular user<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"File_management\"><\/span>File management<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table class=\"has-fixed-layout\"><thead><tr><th><strong>Command Name<\/strong><\/th><th><strong>Description<\/strong><\/th><\/tr><\/thead><tbody><tr><td>find<\/td><td>search for a file<\/td><\/tr><tr><td>ls -a -C -h<\/td><td>list content of directory<\/td><\/tr><tr><td>rm -r -f<\/td><td>remove files and directory<\/td><\/tr><tr><td>locate -i<\/td><td>find file, using updatedb(8) database<\/td><\/tr><tr><td>cp -a -R -i<\/td><td>copy files or directory<\/td><\/tr><tr><td>du -s<\/td><td>disk usage<\/td><\/tr><tr><td>file -b -i<\/td><td>identify the file type<\/td><\/tr><tr><td>mv -f -i<\/td><td>move files or directory<\/td><\/tr><tr><td>grep, egrep, fgrep -i -v<\/td><td>print lines matching pattern<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"File_Permission_commands\"><\/span>File Permission commands<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table class=\"has-fixed-layout\"><thead><tr><th><strong>Command Name<\/strong><\/th><th><strong>Description<\/strong><\/th><\/tr><\/thead><tbody><tr><td>ls -l<\/td><td>to show file type and access permission<\/td><\/tr><tr><td>r<\/td><td>read permission<\/td><\/tr><tr><td>w<\/td><td>write permission<\/td><\/tr><tr><td>x<\/td><td>execute permission<\/td><\/tr><tr><td>-=<\/td><td>no permission<\/td><\/tr><tr><td>Chown user<\/td><td>For changing the ownership of a file\/directory<\/td><\/tr><tr><td>Chown user:group filename<\/td><td>change the user as well as group for a file or directory<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Process_command\"><\/span>Process command<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table class=\"has-fixed-layout\"><thead><tr><th><strong>Command Name<\/strong><\/th><th><strong>Description<\/strong><\/th><\/tr><\/thead><tbody><tr><td>bg<\/td><td>To send a process to the background<\/td><\/tr><tr><td>fg<\/td><td>To run a stopped process in the foreground<\/td><\/tr><tr><td>top<\/td><td>Details on all Active Processes<\/td><\/tr><tr><td>ps<\/td><td>Give the status of processes running for a user<\/td><\/tr><tr><td>ps PID<\/td><td>Gives the status of a particular process<\/td><\/tr><tr><td>pidof<\/td><td>Gives the Process ID (PID) of a process<\/td><\/tr><tr><td>kill PID<\/td><td>Kills a process<\/td><\/tr><tr><td>nice<\/td><td>Starts a process with a given priority<\/td><\/tr><tr><td>renice<\/td><td>Changes priority of an already running process<\/td><\/tr><tr><td>df<\/td><td>Gives free hard disk space on your system<\/td><\/tr><tr><td>free<\/td><td>Gives free RAM on your system<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Networking_command\"><\/span>Networking command<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table class=\"has-fixed-layout\"><thead><tr><th><strong>Command Name<\/strong><\/th><th><strong>Description<\/strong><\/th><\/tr><\/thead><tbody><tr><td>SSH username@ip-address or hostname<\/td><td>login into a remote Linux machine using SSH<\/td><\/tr><tr><td>Ping hostname=&#8221;&#8221; or =&#8221;&#8221;<\/td><td>To ping and Analyzing network and host connections<\/td><\/tr><tr><td>dir<\/td><td>Display files in the current directory of a remote computer<\/td><\/tr><tr><td>cd &#8220;dirname&#8221;<\/td><td>change directory to \u201cdirname\u201d on a remote computer<\/td><\/tr><tr><td>put file<\/td><td>upload \u2018file\u2019 from local to remote computer<\/td><\/tr><tr><td>get file<\/td><td>Download \u2018file\u2019 from remote to local computer<\/td><\/tr><tr><td>quit<\/td><td>Logout<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"VI_Editing_Commands\"><\/span>VI Editing Commands<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table class=\"has-fixed-layout\"><thead><tr><th><strong>Command Name<\/strong><\/th><th><strong>Description<\/strong><\/th><\/tr><\/thead><tbody><tr><td>i<\/td><td>Insert at cursor (goes into insert mode)<\/td><\/tr><tr><td>a<\/td><td>Write after cursor (goes into insert mode)<\/td><\/tr><tr><td>A<\/td><td>Write at the end of line (goes into insert mode)<\/td><\/tr><tr><td>ESC<\/td><td>Terminate insert mode<\/td><\/tr><tr><td>u<\/td><td>Undo last change<\/td><\/tr><tr><td>U<\/td><td>Undo all changes to the entire line<\/td><\/tr><tr><td>o<\/td><td>Open a new line (goes into insert mode)<\/td><\/tr><tr><td>dd<\/td><td>Delete line<\/td><\/tr><tr><td>3dd<\/td><td>Delete 3 lines<\/td><\/tr><tr><td>D<\/td><td>Delete contents of line after the cursor<\/td><\/tr><tr><td>C<\/td><td>Delete contents of a line after the cursor and insert new text. Press ESC key to end insertion.<\/td><\/tr><tr><td>dw<\/td><td>Delete word<\/td><\/tr><tr><td>4dw<\/td><td>Delete 4 words<\/td><\/tr><tr><td>cw<\/td><td>Change word<\/td><\/tr><tr><td>x<\/td><td>Delete character at the cursor<\/td><\/tr><tr><td>r<\/td><td>Replace character<\/td><\/tr><tr><td>R<\/td><td>Overwrite characters from cursor onward<\/td><\/tr><tr><td>s<\/td><td>Substitute one character under cursor continue to insert<\/td><\/tr><tr><td>S<\/td><td>Substitute entire line and begin to insert at the beginning of the line<\/td><\/tr><tr><td>~<\/td><td>Change case of individual character<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Environment_Variables_command\"><\/span>Environment Variables command<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table class=\"has-fixed-layout\"><thead><tr><th><strong>Command Name<\/strong><\/th><th><strong>Description<\/strong><\/th><\/tr><\/thead><tbody><tr><td>echo $VARIABLE<\/td><td>To display value of a variable<\/td><\/tr><tr><td>env<\/td><td>Displays all environment variables<\/td><\/tr><tr><td>VARIABLE_NAME= variable_value<\/td><td>Create a new variable<\/td><\/tr><tr><td>Unset<\/td><td>Remove a variable<\/td><\/tr><tr><td>export Variable=value<\/td><td>To set value of an environment variable<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Memory_and_Process\"><\/span>Memory and Process<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table class=\"has-fixed-layout\"><thead><tr><th><strong>Command Name<\/strong><\/th><th><strong>Description<\/strong><\/th><\/tr><\/thead><tbody><tr><td>free -m<\/td><td>display free and used system memory<\/td><\/tr><tr><td>killall<\/td><td>stop all process by name<\/td><\/tr><tr><td>sensors<\/td><td>CPU temperature<\/td><\/tr><tr><td>top<\/td><td>display current processes, real time monitoring<\/td><\/tr><tr><td>kill -1 -9<\/td><td>send signal to process<\/td><\/tr><tr><td>service [start|stop|restart]<\/td><td>manage or run sysV init script<\/td><\/tr><tr><td>ps aux<\/td><td>display current processes, snapshot<\/td><\/tr><tr><td>dmesg -k<\/td><td>display system messages<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Download_Free_PDF_Version_of_Commands\"><\/span>Download Free PDF Version of Commands<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>PS: Don&#8217;t forget to take the <a href=\"https:\/\/reviewnprep.com\/blog\/cheat-sheet-kubernetes-and-linux-commands\/#Take_a_Poll_to_See_How_You_Compare_With_Others\">poll<\/a> and see how you compare with others. <\/p>\n\n\n\n<div class=\"wp-block-file\"><a href=\"https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/07\/Kubernetes-Cheat-Sheet.pdf\">Kubernetes Cheat Sheet PDF<\/a><a href=\"https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/07\/Kubernetes-Cheat-Sheet.pdf\" class=\"wp-block-file__button\" download>Download<\/a><\/div>\n\n\n\n<div class=\"wp-block-file\"><a href=\"https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/07\/Linux-Cheat-Sheet.pdf\">Linux Cheat Sheet PDF<\/a><a href=\"https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/07\/Linux-Cheat-Sheet.pdf\" class=\"wp-block-file__button\" download>Download<\/a><\/div>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>Further Reading: <a href=\"https:\/\/reviewnprep.com\/blog\/how-to-get-certified-kubernetes-application-developer-ckad\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to Prepare for CKAD Certification<\/a><\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>All the commonly used commands for Linux and Kubernetes at one place. Download the pdf version of most commonly used Kubernetes and Linux commands. <\/p>\n","protected":false},"author":1,"featured_media":3856,"comment_status":"open","ping_status":"open","sticky":true,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,242,81,76,3],"tags":[82,124],"class_list":["post-3841","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-devops","category-hashicorp","category-kubernetes","category-linux","category-reviewnprep","tag-kubernetes","tag-linux"],"_links":{"self":[{"href":"https:\/\/reviewnprep.com\/blog\/wp-json\/wp\/v2\/posts\/3841"}],"collection":[{"href":"https:\/\/reviewnprep.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/reviewnprep.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/reviewnprep.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/reviewnprep.com\/blog\/wp-json\/wp\/v2\/comments?post=3841"}],"version-history":[{"count":11,"href":"https:\/\/reviewnprep.com\/blog\/wp-json\/wp\/v2\/posts\/3841\/revisions"}],"predecessor-version":[{"id":4432,"href":"https:\/\/reviewnprep.com\/blog\/wp-json\/wp\/v2\/posts\/3841\/revisions\/4432"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/reviewnprep.com\/blog\/wp-json\/wp\/v2\/media\/3856"}],"wp:attachment":[{"href":"https:\/\/reviewnprep.com\/blog\/wp-json\/wp\/v2\/media?parent=3841"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/reviewnprep.com\/blog\/wp-json\/wp\/v2\/categories?post=3841"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/reviewnprep.com\/blog\/wp-json\/wp\/v2\/tags?post=3841"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}