{"id":6085,"date":"2019-07-23T10:18:56","date_gmt":"2019-07-23T10:18:56","guid":{"rendered":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?p=6085"},"modified":"2019-07-23T10:18:56","modified_gmt":"2019-07-23T10:18:56","slug":"learn-to-access-the-command-line","status":"publish","type":"post","link":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/learn-to-access-the-command-line\/","title":{"rendered":"Learn to Access the Command Line in Simple Steps"},"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.co.uk\/hosting-faqs\/wp-content\/uploads\/2019\/07\/command-prompt-run-min-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6088\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2019\/07\/command-prompt-run-min-1.png\" alt=\"\" width=\"399\" height=\"485\" srcset=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2019\/07\/command-prompt-run-min-1.png 399w, https:\/\/www.milesweb.co.uk\/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<p>&nbsp;<\/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.co.uk\/hosting-faqs\/wp-content\/uploads\/2019\/07\/macros-min-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-6090 size-full\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2019\/07\/macros-min-1.png\" alt=\"\" width=\"762\" height=\"467\" srcset=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2019\/07\/macros-min-1.png 762w, https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2019\/07\/macros-min-1-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":[9],"tags":[888,887,152],"class_list":["post-6085","post","type-post","status-publish","format-standard","placeholder-for-hentry","category-cpanel-faq","tag-access-command-line","tag-command-line","tag-cpanel"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\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.co.uk\/hosting-faqs\/learn-to-access-the-command-line\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\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.co.uk\/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:18:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2019\/07\/command-prompt-run-min-1.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=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/learn-to-access-the-command-line\/\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/learn-to-access-the-command-line\/\",\"name\":\"Learn to Access the Command Line in Simple Steps\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/learn-to-access-the-command-line\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/learn-to-access-the-command-line\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2019\/07\/command-prompt-run-min-1.png\",\"datePublished\":\"2019-07-23T10:18:56+00:00\",\"author\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945\"},\"description\":\"The article describes the steps to access the command line.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/learn-to-access-the-command-line\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/learn-to-access-the-command-line\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/learn-to-access-the-command-line\/#primaryimage\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2019\/07\/command-prompt-run-min-1.png\",\"contentUrl\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2019\/07\/command-prompt-run-min-1.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/learn-to-access-the-command-line\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Learn to Access the Command Line in Simple Steps\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945\",\"name\":\"Pallavi Godse\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/eefc9695ea2b2c6e143c9c9919701aaa?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/eefc9695ea2b2c6e143c9c9919701aaa?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.\",\"url\":\"https:\/\/www.milesweb.co.uk\/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.co.uk\/hosting-faqs\/learn-to-access-the-command-line\/","og_locale":"en_GB","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.co.uk\/hosting-faqs\/learn-to-access-the-command-line\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2019-07-23T10:18:56+00:00","og_image":[{"url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2019\/07\/command-prompt-run-min-1.png","type":"","width":"","height":""}],"author":"Pallavi Godse","twitter_misc":{"Written by":"Pallavi Godse","Estimated reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/learn-to-access-the-command-line\/","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/learn-to-access-the-command-line\/","name":"Learn to Access the Command Line in Simple Steps","isPartOf":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/learn-to-access-the-command-line\/#primaryimage"},"image":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/learn-to-access-the-command-line\/#primaryimage"},"thumbnailUrl":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2019\/07\/command-prompt-run-min-1.png","datePublished":"2019-07-23T10:18:56+00:00","author":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945"},"description":"The article describes the steps to access the command line.","breadcrumb":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/learn-to-access-the-command-line\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.co.uk\/hosting-faqs\/learn-to-access-the-command-line\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/learn-to-access-the-command-line\/#primaryimage","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2019\/07\/command-prompt-run-min-1.png","contentUrl":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2019\/07\/command-prompt-run-min-1.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/learn-to-access-the-command-line\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"Learn to Access the Command Line in Simple Steps"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945","name":"Pallavi Godse","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/eefc9695ea2b2c6e143c9c9919701aaa?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/eefc9695ea2b2c6e143c9c9919701aaa?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.","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/pallavi\/"}]}},"views":661,"_links":{"self":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/6085","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=6085"}],"version-history":[{"count":1,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/6085\/revisions"}],"predecessor-version":[{"id":6096,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/6085\/revisions\/6096"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=6085"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=6085"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=6085"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}