{"id":7795,"date":"2019-07-23T10:17:10","date_gmt":"2019-07-23T10:17:10","guid":{"rendered":"https:\/\/www.milesweb.in\/hosting-faqs\/?p=7795"},"modified":"2026-02-27T15:16:22","modified_gmt":"2026-02-27T09:46:22","slug":"learn-to-access-the-command-line","status":"publish","type":"post","link":"https:\/\/www.milesweb.in\/hosting-faqs\/learn-to-access-the-command-line\/","title":{"rendered":"Learn to Access the Command Line"},"content":{"rendered":"<h3>Overview<\/h3>\n<p>Though several administration tasks are automated by cPanel &amp; WHM, knowing the Linux command line would prove to be useful for both WHM and cPanel users. With this documentation, you will learn to access the command line.<\/p>\n<div style=\"background-color: #e0ffff; padding: 10px;\">\n<p><strong>Note:<\/strong><\/p>\n<ul>\n<li>For this, the cPanel &amp; WHM need the root user to use <strong>BASH<\/strong> by default. It is possible for the system administrators to modify the shell for other users.<\/li>\n<li>In <strong>cPanel &amp; WHM version 72<\/strong> and later, you can use cPanel&#8217;s Terminal interface <strong>(cPanel &gt;&gt; Home &gt;&gt; Advanced &gt;&gt; Terminal)<\/strong> or WHM&#8217;s Terminal interface <strong>(WHM &gt;&gt; Home &gt;&gt; Advanced &gt;&gt; Terminal)<\/strong> to access the command line from within the interface.<\/li>\n<\/ul>\n<\/div>\n<h3>Steps to Access the Command Line<\/h3>\n<p>If you want to access your cPanel &amp; WHM server from the command line, perform the below steps:<\/p>\n<p>1. Below are the correct methods for your computer&#8217;s operating system to open the command line interface (CLI):<\/p>\n<ul>\n<li><strong>Microsoft Windows\u00ae \u2014<\/strong>In <strong>Windows<\/strong> <strong>OS<\/strong>, open the <strong>Command<\/strong> <strong>Prompt<\/strong> program. First click on <strong>Start<\/strong> and enter <strong>Command Prompt<\/strong> in the <strong>Search<\/strong> text box. Double-click <strong>Command<\/strong> <strong>Prompt<\/strong> in the list that appears.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/07\/command-prompt-run-min-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7808\" src=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/07\/command-prompt-run-min-1.png\" alt=\"\" width=\"399\" height=\"485\" srcset=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/07\/command-prompt-run-min-1.png 399w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/07\/command-prompt-run-min-1-247x300.png 247w\" sizes=\"auto, (max-width: 399px) 100vw, 399px\" \/><\/a><\/p>\n<ul>\n<li><strong>MacOS\u00ae \u2014<\/strong> Open the <strong>Terminal<\/strong> program. First click on the <strong>Applications<\/strong> icon in the dock then click the <strong>Utilities<\/strong> icon, and then click the <strong>Terminal<\/strong> icon.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/07\/macros-min-1-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7818\" src=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/07\/macros-min-1-2.png\" alt=\"\" width=\"762\" height=\"467\" srcset=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/07\/macros-min-1-2.png 762w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/07\/macros-min-1-2-300x184.png 300w\" sizes=\"auto, (max-width: 762px) 100vw, 762px\" \/><\/a><\/p>\n<ul>\n<li><strong>Ubuntu \u2014<\/strong> Open the <strong>Terminal<\/strong> program. First, press the <strong>Ctrl+Alt+T<\/strong> keys.<\/li>\n<\/ul>\n<p>2. The <strong>CLI<\/strong> program opens by accessing the local computer. Make sure you use <strong>SSH<\/strong> to access the <strong>cPanel &amp; WHM<\/strong> server. For this, enter the below command and press <strong>Enter<\/strong>:<\/p>\n<pre class=\"lang:default decode:true \">ssh username@hostname<\/pre>\n<p>Here, the username means your account&#8217;s username, and hostname means the server&#8217;s hostname. For example, for logging in as the root user on the example.com server, run the below command:<\/p>\n<pre class=\"lang:default decode:true \">ssh root@example.com<\/pre>\n<p>3. The CLI will ask you for the account&#8217;s password. Enter it and press <strong>Enter<\/strong>.<\/p>\n<p>4. The CLI&#8217;s display will look same as the below example:<\/p>\n<pre class=\"lang:default decode:true \">Last login: Fri Feb 6 12:50:38 on ttys000\r\nMyComputer:~ myname$ ssh username@example.com\r\nPassword:\r\nLast login: Fri Feb 6 12:52:33 2015 from 10.1.4.202\r\nusername@example [~]#<\/pre>\n<p>Now, you can navigate the server&#8217;s file system and execute commands, within your account&#8217;s permissions\u2019 limit on the server.<\/p>\n<div style=\"background-color: #e0ffff; padding: 10px;\"><strong>Note:<\/strong><br \/>\nIn case you get an error message that looks similar to the below example, you won\u2019t have SSH privileges enabled on the server.<\/p>\n<pre class=\"lang:default decode:true \">ssh: connect to host example.com port 22: Connection refused<\/pre>\n<p>You can contact your hosting provider or system administrator for more information. Since command line access (shell access) has certain security allegations, many web hosting providers restrict this access.<\/p>\n<\/div>\n<p>In this way, you can access the command line.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview Though several administration tasks are automated by cPanel &amp; WHM, knowing the Linux command line would prove to be useful for both WHM and cPanel users. With this documentation, you will learn to access the command line. Note: For this, the cPanel &amp; WHM need the root user to use BASH by default. It [&hellip;]<\/p>\n","protected":false},"author":16,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3056],"tags":[],"class_list":["post-7795","post","type-post","status-publish","format-standard","placeholder-for-hentry","category-other"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Learn to Access the Command Line in Simple Steps<\/title>\n<meta name=\"description\" content=\"The article describes the steps to access the command line.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.milesweb.in\/hosting-faqs\/learn-to-access-the-command-line\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Learn to Access the Command Line in Simple Steps\" \/>\n<meta property=\"og:description\" content=\"The article describes the steps to access the command line.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.in\/hosting-faqs\/learn-to-access-the-command-line\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"article:published_time\" content=\"2019-07-23T10:17:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-27T09:46:22+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/07\/command-prompt-run-min-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"399\" \/>\n\t<meta property=\"og:image:height\" content=\"485\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Pallavi Godse\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Pallavi Godse\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/learn-to-access-the-command-line\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/learn-to-access-the-command-line\/\"},\"author\":{\"name\":\"Pallavi Godse\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945\"},\"headline\":\"Learn to Access the Command Line\",\"datePublished\":\"2019-07-23T10:17:10+00:00\",\"dateModified\":\"2026-02-27T09:46:22+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/learn-to-access-the-command-line\/\"},\"wordCount\":405,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/learn-to-access-the-command-line\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/07\/command-prompt-run-min-1.png\",\"articleSection\":[\"Other\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.milesweb.in\/hosting-faqs\/learn-to-access-the-command-line\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/learn-to-access-the-command-line\/\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/learn-to-access-the-command-line\/\",\"name\":\"Learn to Access the Command Line in Simple Steps\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/learn-to-access-the-command-line\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/learn-to-access-the-command-line\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/07\/command-prompt-run-min-1.png\",\"datePublished\":\"2019-07-23T10:17:10+00:00\",\"dateModified\":\"2026-02-27T09:46:22+00:00\",\"author\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945\"},\"description\":\"The article describes the steps to access the command line.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/learn-to-access-the-command-line\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.milesweb.in\/hosting-faqs\/learn-to-access-the-command-line\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/learn-to-access-the-command-line\/#primaryimage\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/07\/command-prompt-run-min-1.png\",\"contentUrl\":\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/07\/command-prompt-run-min-1.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/learn-to-access-the-command-line\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.milesweb.in\/hosting-faqs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Learn to Access the Command Line\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#website\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.milesweb.in\/hosting-faqs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945\",\"name\":\"Pallavi Godse\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/3602d0ac1ab89332aea8205dcf474af4ff4eb319cfd584544038908cd5e4c966?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/3602d0ac1ab89332aea8205dcf474af4ff4eb319cfd584544038908cd5e4c966?s=96&d=blank&r=g\",\"caption\":\"Pallavi Godse\"},\"description\":\"Pallavi is a Digital Marketing Executive at MilesWeb and has an experience of over 4 years in content development. She is interested in writing engaging content on business, technology, web hosting and other topics related to information technology.\",\"sameAs\":[\"https:\/\/www.milesweb.in\"],\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/author\/pallavi\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Learn to Access the Command Line in Simple Steps","description":"The article describes the steps to access the command line.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.milesweb.in\/hosting-faqs\/learn-to-access-the-command-line\/","og_locale":"en_US","og_type":"article","og_title":"Learn to Access the Command Line in Simple Steps","og_description":"The article describes the steps to access the command line.","og_url":"https:\/\/www.milesweb.in\/hosting-faqs\/learn-to-access-the-command-line\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2019-07-23T10:17:10+00:00","article_modified_time":"2026-02-27T09:46:22+00:00","og_image":[{"width":399,"height":485,"url":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/07\/command-prompt-run-min-1.png","type":"image\/png"}],"author":"Pallavi Godse","twitter_misc":{"Written by":"Pallavi Godse","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/learn-to-access-the-command-line\/#article","isPartOf":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/learn-to-access-the-command-line\/"},"author":{"name":"Pallavi Godse","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945"},"headline":"Learn to Access the Command Line","datePublished":"2019-07-23T10:17:10+00:00","dateModified":"2026-02-27T09:46:22+00:00","mainEntityOfPage":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/learn-to-access-the-command-line\/"},"wordCount":405,"commentCount":0,"image":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/learn-to-access-the-command-line\/#primaryimage"},"thumbnailUrl":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/07\/command-prompt-run-min-1.png","articleSection":["Other"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.milesweb.in\/hosting-faqs\/learn-to-access-the-command-line\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/learn-to-access-the-command-line\/","url":"https:\/\/www.milesweb.in\/hosting-faqs\/learn-to-access-the-command-line\/","name":"Learn to Access the Command Line in Simple Steps","isPartOf":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/learn-to-access-the-command-line\/#primaryimage"},"image":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/learn-to-access-the-command-line\/#primaryimage"},"thumbnailUrl":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/07\/command-prompt-run-min-1.png","datePublished":"2019-07-23T10:17:10+00:00","dateModified":"2026-02-27T09:46:22+00:00","author":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945"},"description":"The article describes the steps to access the command line.","breadcrumb":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/learn-to-access-the-command-line\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.in\/hosting-faqs\/learn-to-access-the-command-line\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/learn-to-access-the-command-line\/#primaryimage","url":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/07\/command-prompt-run-min-1.png","contentUrl":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/07\/command-prompt-run-min-1.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/learn-to-access-the-command-line\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.in\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"Learn to Access the Command Line"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.in\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.in\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945","name":"Pallavi Godse","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/3602d0ac1ab89332aea8205dcf474af4ff4eb319cfd584544038908cd5e4c966?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3602d0ac1ab89332aea8205dcf474af4ff4eb319cfd584544038908cd5e4c966?s=96&d=blank&r=g","caption":"Pallavi Godse"},"description":"Pallavi is a Digital Marketing Executive at MilesWeb and has an experience of over 4 years in content development. She is interested in writing engaging content on business, technology, web hosting and other topics related to information technology.","sameAs":["https:\/\/www.milesweb.in"],"url":"https:\/\/www.milesweb.in\/hosting-faqs\/author\/pallavi\/"}]}},"_links":{"self":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/7795","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=7795"}],"version-history":[{"count":1,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/7795\/revisions"}],"predecessor-version":[{"id":7819,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/7795\/revisions\/7819"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=7795"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=7795"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=7795"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}