{"id":37,"date":"2016-01-12T15:51:24","date_gmt":"2016-01-12T15:51:24","guid":{"rendered":"http:\/\/wp-p3d2tsa2xh.pairsite.com\/?p=37"},"modified":"2019-06-26T09:56:12","modified_gmt":"2019-06-26T13:56:12","slug":"unix-basics","status":"publish","type":"ht_kb","link":"https:\/\/www.pair.com\/support\/kb\/unix-basics\/","title":{"rendered":"Unix Basics"},"content":{"rendered":"<p class=\"p1\"><span class=\"s1\"><a style=\"color:#fff; text-decoration:none!important;\" href=\"https:\/\/www.pair.com\/support\/kb\/tags\/shared-hosting\/\"><p style=\"background-color:#1a3d6e !important;color:#fff;padding:6px; display:inline-block!important;font-size:12px;font-weight:bold; border-radius:3px;\">Shared<\/p><\/a> <a style=\"color:#fff; text-decoration:none!important;\" href=\"https:\/\/www.pair.com\/support\/kb\/tags\/vps\/\"><p style=\"background-color:#1a3d6e !important;color:#fff;padding:6px; display:inline-block!important;font-size:12px;font-weight:bold; border-radius:3px;\">VPS<\/p><\/a> <a style=\"color:#fff; text-decoration:none!important;\" href=\"https:\/\/www.pair.com\/support\/kb\/tags\/qs-dedicated\/\"><p style=\"background-color:#1a3d6e !important;color:#fff;padding:6px; display:inline-block!important;font-size:12px; font-weight:bold; border-radius:3px;\">Dedicated<\/p><\/a>\u00a0<a style=\"color:#fff; text-decoration:none!important;\" href=\"https:\/\/www.pair.com\/support\/kb\/tags\/wp-professional\/\"><p style=\"background-color:#1a3d6e !important;color:#fff !important;padding:6px; display:inline-block!important;font-size:12px;font-weight:bold; border-radius:3px;\">WP Professional<\/p><\/a> <a style=\"color:#fff; text-decoration:none!important;\" href=\"https:\/\/www.pair.com\/support\/kb\/tags\/wp-professional-plus\/\"><p style=\"background-color:#1a3d6e !important;color:#fff !important;padding:6px; display:inline-block!important;font-size:12px;font-weight:bold; border-radius:3px;\">WP Professional Plus<\/p><\/a><\/span><\/p>\n<p>If you've been managing your Web files solely through <a href=\"\/support\/knowledge_base\/the_basics\/uploading_files_using_ftp.html\">FTP<\/a>, the thought of learning Unix might be a little daunting. But it's actually not that bad once you get the hang of it. We'll get you started with a short introduction.<\/p>\n<p>The first step is to log into the server using <a href=\"\/support\/knowledge_base\/the_basics\/connecting_with_ssh.html\">SSH<\/a>.<\/p>\n<h3>See Existing Files (ls)<\/h3>\n<p>Once you're logged in, type in the command <kbd>ls<\/kbd>. This gives you a listing of all your files and directories (the Unix term for folders). You should see a directory called <strong>public_html<\/strong>. This is your web directory, where all your website files should be stored<\/p>\n<h3>Enter a New Directory (cd)<\/h3>\n<p>Now enter the command <kbd>cd public_html<\/kbd> to move into that directory. This is like double-clicking on a folder to open it. To see the files in the new directory, enter the <kbd>ls<\/kbd> command again to see its contents.<\/p>\n<h3>Return to the Previous Directory (cd ..)<\/h3>\n<p>You can return to your public_html directory by typing <kbd>cd ..<\/kbd> This command will always take you up one level no matter where you are.<\/p>\n<h3>Create New File (pico)<\/h3>\n<p>Once you're in the new directory, you can create a new file by typing <kbd>pico newfilename<\/kbd> where \"newfilename\" is replaced with whatever you want to call it.<\/p>\n<p>You'll see command options at the bottom of the window.<\/p>\n    \t\t<div class=\"hts-messages hts-messages--success  hts-messages--withtitle hts-messages--withicon \"   >\r\n    \t\t\t<span class=\"hts-messages__title\">Tip!<\/span>    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\tThe <kbd>^<\/kbd> symbol means the <kbd>Ctrl<\/kbd> key. So to scroll down a page you would press the <kbd>Ctrl<\/kbd> and <kbd>V<\/kbd> keys at the same time.    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n<p>You can exit the text editor by pressing <kbd>Ctrl<\/kbd> and <kbd>X<\/kbd>. If you've made changes to the file it will ask if you want to save them. Hit <kbd>Y<\/kbd> to confirm, then hit <kbd>Enter<\/kbd>.<\/p>\n<h3>Editing a File (pico)<\/h3>\n<p>Let's edit a file. Enter the command <kbd>pico filename<\/kbd>. Replace \"filename\" with the name of one of your files. This will open the file right in the command line for you to edit.<\/p>\n    \t\t<div class=\"hts-messages hts-messages--success  hts-messages--withtitle hts-messages--withicon \"   >\r\n    \t\t\t<span class=\"hts-messages__title\">Tip!<\/span>    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\tThe <kbd>^<\/kbd> symbol means the <kbd>Ctrl<\/kbd> key. So to scroll down a page you would press the <kbd>Ctrl<\/kbd> and <kbd>V<\/kbd> keys at the same time.    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n<p>You can exit the text editor by pressing <kbd>Ctrl<\/kbd> and <kbd>X<\/kbd>. If you've made changes to the file it will ask if you want to save them. Hit <kbd>Y<\/kbd> to confirm, then hit <kbd>Enter<\/kbd>.<\/p>\n<h3>Creating a Directory (mkdir)<\/h3>\n<p>Now let's create a brand new directory. Type <kbd>mkdir directoryname<\/kbd> where \"directoryname\" is the name of the new directory. Then, to enter the directory, type <kbd>cd directoryname<\/kbd>.<\/p>\n<h3>To Learn More<\/h3>\n<p>There are many other things that you can do with Unix. For now, you may just want to get comfortable with these commands. You can learn more about each of them by typing <kbd>man commandname<\/kbd>, such as <kbd>man ls<\/kbd> or <kbd>man cd<\/kbd>.<\/p>\n<p>You can also find more help here:<\/p>\n<p><a href=\"http:\/\/www.ugu.com\/sui\/ugu\/show?help.beginners\" target=\"_blank\" rel=\"noopener noreferrer\">UNIX Beginners Guide<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0 If you&#8217;ve been managing your Web files solely through FTP, the thought of learning Unix might be a little daunting. But it&#8217;s actually not that bad once you get the hang of it. We&#8217;ll get you started with a short introduction. The first step is to log into the&#8230;<\/p>\n","protected":false},"author":12,"comment_status":"closed","ping_status":"open","template":"","format":"standard","meta":[],"ht-kb-category":[2],"ht-kb-tag":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.8.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Unix Basics - Knowledge Base - Pair Networks<\/title>\n<meta name=\"description\" content=\"If you&#039;ve been managing your Web files solely through FTP, the thought of learning Unix might be a little daunting. But it&#039;s actually not that bad once you get the hang of it. We&#039;ll get you started with a short introduction.\" \/>\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.pair.com\/support\/kb\/unix-basics\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Unix Basics - Knowledge Base - Pair Networks\" \/>\n<meta property=\"og:description\" content=\"If you&#039;ve been managing your Web files solely through FTP, the thought of learning Unix might be a little daunting. But it&#039;s actually not that bad once you get the hang of it. We&#039;ll get you started with a short introduction.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.pair.com\/support\/kb\/unix-basics\/\" \/>\n<meta property=\"og:site_name\" content=\"Knowledge Base - Pair Networks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/pairnetworks\/\" \/>\n<meta property=\"article:modified_time\" content=\"2019-06-26T13:56:12+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@pairNetworks\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.pair.com\/support\/kb\/unix-basics\/\",\"url\":\"https:\/\/www.pair.com\/support\/kb\/unix-basics\/\",\"name\":\"Unix Basics - Knowledge Base - Pair Networks\",\"isPartOf\":{\"@id\":\"https:\/\/www.pair.com\/support\/kb\/#website\"},\"datePublished\":\"2016-01-12T15:51:24+00:00\",\"dateModified\":\"2019-06-26T13:56:12+00:00\",\"description\":\"If you've been managing your Web files solely through FTP, the thought of learning Unix might be a little daunting. But it's actually not that bad once you get the hang of it. We'll get you started with a short introduction.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.pair.com\/support\/kb\/unix-basics\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.pair.com\/support\/kb\/unix-basics\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.pair.com\/support\/kb\/unix-basics\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.pair.com\/support\/kb\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Unix Basics\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.pair.com\/support\/kb\/#website\",\"url\":\"https:\/\/www.pair.com\/support\/kb\/\",\"name\":\"Knowledge Base - Pair Networks\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.pair.com\/support\/kb\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.pair.com\/support\/kb\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.pair.com\/support\/kb\/#organization\",\"name\":\"Pair Networks\",\"url\":\"https:\/\/www.pair.com\/support\/kb\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.pair.com\/support\/kb\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.pair.com\/support\/kb\/wp-content\/uploads\/2022\/02\/Gb_TUkUE_400x400.jpeg\",\"contentUrl\":\"https:\/\/www.pair.com\/support\/kb\/wp-content\/uploads\/2022\/02\/Gb_TUkUE_400x400.jpeg\",\"width\":360,\"height\":360,\"caption\":\"Pair Networks\"},\"image\":{\"@id\":\"https:\/\/www.pair.com\/support\/kb\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/pairnetworks\/\",\"https:\/\/twitter.com\/pairNetworks\",\"https:\/\/www.instagram.com\/pairnetworks\/\",\"https:\/\/www.linkedin.com\/company\/2269676\/\",\"https:\/\/www.pinterest.com\/pairnetworksinc\/pins\/\",\"https:\/\/www.youtube.com\/user\/pairnetworks\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Unix Basics - Knowledge Base - Pair Networks","description":"If you've been managing your Web files solely through FTP, the thought of learning Unix might be a little daunting. But it's actually not that bad once you get the hang of it. We'll get you started with a short introduction.","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.pair.com\/support\/kb\/unix-basics\/","og_locale":"en_US","og_type":"article","og_title":"Unix Basics - Knowledge Base - Pair Networks","og_description":"If you've been managing your Web files solely through FTP, the thought of learning Unix might be a little daunting. But it's actually not that bad once you get the hang of it. We'll get you started with a short introduction.","og_url":"https:\/\/www.pair.com\/support\/kb\/unix-basics\/","og_site_name":"Knowledge Base - Pair Networks","article_publisher":"https:\/\/www.facebook.com\/pairnetworks\/","article_modified_time":"2019-06-26T13:56:12+00:00","twitter_card":"summary_large_image","twitter_site":"@pairNetworks","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.pair.com\/support\/kb\/unix-basics\/","url":"https:\/\/www.pair.com\/support\/kb\/unix-basics\/","name":"Unix Basics - Knowledge Base - Pair Networks","isPartOf":{"@id":"https:\/\/www.pair.com\/support\/kb\/#website"},"datePublished":"2016-01-12T15:51:24+00:00","dateModified":"2019-06-26T13:56:12+00:00","description":"If you've been managing your Web files solely through FTP, the thought of learning Unix might be a little daunting. But it's actually not that bad once you get the hang of it. We'll get you started with a short introduction.","breadcrumb":{"@id":"https:\/\/www.pair.com\/support\/kb\/unix-basics\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.pair.com\/support\/kb\/unix-basics\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.pair.com\/support\/kb\/unix-basics\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.pair.com\/support\/kb\/"},{"@type":"ListItem","position":2,"name":"Unix Basics"}]},{"@type":"WebSite","@id":"https:\/\/www.pair.com\/support\/kb\/#website","url":"https:\/\/www.pair.com\/support\/kb\/","name":"Knowledge Base - Pair Networks","description":"","publisher":{"@id":"https:\/\/www.pair.com\/support\/kb\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.pair.com\/support\/kb\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.pair.com\/support\/kb\/#organization","name":"Pair Networks","url":"https:\/\/www.pair.com\/support\/kb\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pair.com\/support\/kb\/#\/schema\/logo\/image\/","url":"https:\/\/www.pair.com\/support\/kb\/wp-content\/uploads\/2022\/02\/Gb_TUkUE_400x400.jpeg","contentUrl":"https:\/\/www.pair.com\/support\/kb\/wp-content\/uploads\/2022\/02\/Gb_TUkUE_400x400.jpeg","width":360,"height":360,"caption":"Pair Networks"},"image":{"@id":"https:\/\/www.pair.com\/support\/kb\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/pairnetworks\/","https:\/\/twitter.com\/pairNetworks","https:\/\/www.instagram.com\/pairnetworks\/","https:\/\/www.linkedin.com\/company\/2269676\/","https:\/\/www.pinterest.com\/pairnetworksinc\/pins\/","https:\/\/www.youtube.com\/user\/pairnetworks"]}]}},"_links":{"self":[{"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/ht-kb\/37"}],"collection":[{"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/comments?post=37"}],"version-history":[{"count":10,"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/ht-kb\/37\/revisions"}],"predecessor-version":[{"id":6975,"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/ht-kb\/37\/revisions\/6975"}],"wp:attachment":[{"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/media?parent=37"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/ht-kb-category?post=37"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/ht-kb-tag?post=37"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}