{"id":212,"date":"2020-09-21T16:58:27","date_gmt":"2020-09-21T16:58:27","guid":{"rendered":"https:\/\/scholarblogs.emory.edu\/rsph-hpc\/?page_id=212"},"modified":"2020-09-21T17:04:40","modified_gmt":"2020-09-21T17:04:40","slug":"using-nano","status":"publish","type":"page","link":"https:\/\/scholarblogs.emory.edu\/rsph-hpc\/using-nano\/","title":{"rendered":"Using nano"},"content":{"rendered":"\n<p>GNU nano is a text editor for Unix-like computing systems or operating environments using a command-line interface. Here is a quick tutorial for how to use nano.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>To create a file named &#8216;slurm.example&#8217;, type &#8216;<em><strong>nano slurm.example<\/strong><\/em>&#8216;.<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"713\" height=\"122\" src=\"https:\/\/scholarblogs.emory.edu\/rsph-hpc\/files\/2020\/09\/1-3.png\" alt=\"\" class=\"wp-image-213\" srcset=\"https:\/\/scholarblogs.emory.edu\/rsph-hpc\/files\/2020\/09\/1-3.png 713w, https:\/\/scholarblogs.emory.edu\/rsph-hpc\/files\/2020\/09\/1-3-300x51.png 300w\" sizes=\"auto, (max-width: 713px) 100vw, 713px\" \/><\/figure>\n\n\n\n<p>2. After typing &#8216;<em>nano slurm.example<\/em>&#8216;, you will see the interface below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"544\" src=\"https:\/\/scholarblogs.emory.edu\/rsph-hpc\/files\/2020\/09\/2-1024x544.png\" alt=\"\" class=\"wp-image-214\" srcset=\"https:\/\/scholarblogs.emory.edu\/rsph-hpc\/files\/2020\/09\/2-1024x544.png 1024w, https:\/\/scholarblogs.emory.edu\/rsph-hpc\/files\/2020\/09\/2-300x159.png 300w, https:\/\/scholarblogs.emory.edu\/rsph-hpc\/files\/2020\/09\/2-768x408.png 768w, https:\/\/scholarblogs.emory.edu\/rsph-hpc\/files\/2020\/09\/2.png 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>3. Now you can edit this file by directly typing in the terminal.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"546\" src=\"https:\/\/scholarblogs.emory.edu\/rsph-hpc\/files\/2020\/09\/3-1024x546.png\" alt=\"\" class=\"wp-image-215\" srcset=\"https:\/\/scholarblogs.emory.edu\/rsph-hpc\/files\/2020\/09\/3-1024x546.png 1024w, https:\/\/scholarblogs.emory.edu\/rsph-hpc\/files\/2020\/09\/3-300x160.png 300w, https:\/\/scholarblogs.emory.edu\/rsph-hpc\/files\/2020\/09\/3-768x410.png 768w, https:\/\/scholarblogs.emory.edu\/rsph-hpc\/files\/2020\/09\/3.png 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>4. After editing, save the file by &#8216;<strong><em>Ctrl + O<\/em><\/strong>&#8216;. You will be asked to input the file name. Since we already named the file &#8216;slurm.example&#8217;, just press &#8216;<strong><em>Enter<\/em><\/strong>&#8216;. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"638\" src=\"https:\/\/scholarblogs.emory.edu\/rsph-hpc\/files\/2020\/09\/4-1024x544.png\" alt=\"\" class=\"wp-image-216\" srcset=\"https:\/\/scholarblogs.emory.edu\/rsph-hpc\/files\/2020\/09\/4-1024x544.png 1024w, https:\/\/scholarblogs.emory.edu\/rsph-hpc\/files\/2020\/09\/4-300x160.png 300w, https:\/\/scholarblogs.emory.edu\/rsph-hpc\/files\/2020\/09\/4-768x408.png 768w, https:\/\/scholarblogs.emory.edu\/rsph-hpc\/files\/2020\/09\/4.png 1200w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n\n\n\n<p>5. Once the file is saved, you can exit <em>nano <\/em>by typing &#8216;<em><strong>Ctrl + X<\/strong><\/em>&#8216;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"547\" src=\"https:\/\/scholarblogs.emory.edu\/rsph-hpc\/files\/2020\/09\/5-1024x547.png\" alt=\"\" class=\"wp-image-217\" srcset=\"https:\/\/scholarblogs.emory.edu\/rsph-hpc\/files\/2020\/09\/5-1024x547.png 1024w, https:\/\/scholarblogs.emory.edu\/rsph-hpc\/files\/2020\/09\/5-300x160.png 300w, https:\/\/scholarblogs.emory.edu\/rsph-hpc\/files\/2020\/09\/5-768x410.png 768w, https:\/\/scholarblogs.emory.edu\/rsph-hpc\/files\/2020\/09\/5.png 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>6. After exiting the editor, you will return to the shell interface. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"645\" height=\"145\" src=\"https:\/\/scholarblogs.emory.edu\/rsph-hpc\/files\/2020\/09\/6.png\" alt=\"\" class=\"wp-image-218\" srcset=\"https:\/\/scholarblogs.emory.edu\/rsph-hpc\/files\/2020\/09\/6.png 645w, https:\/\/scholarblogs.emory.edu\/rsph-hpc\/files\/2020\/09\/6-300x67.png 300w\" sizes=\"auto, (max-width: 645px) 100vw, 645px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>GNU nano is a text editor for Unix-like computing systems or operating environments using a command-line interface. Here is a quick tutorial for how to use nano. To create a file named &#8216;slurm.example&#8217;, type &#8216;nano slurm.example&#8216;. 2. After typing &#8216;nano slurm.example&#8216;, you will see the interface below. 3. Now you can edit this file by &#8230; <a title=\"Using nano\" class=\"read-more\" href=\"https:\/\/scholarblogs.emory.edu\/rsph-hpc\/using-nano\/\" aria-label=\"Read more about Using nano\">Read more<\/a><\/p>\n","protected":false},"author":7027,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-212","page","type-page","status-publish"],"_links":{"self":[{"href":"https:\/\/scholarblogs.emory.edu\/rsph-hpc\/wp-json\/wp\/v2\/pages\/212","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/scholarblogs.emory.edu\/rsph-hpc\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/scholarblogs.emory.edu\/rsph-hpc\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/scholarblogs.emory.edu\/rsph-hpc\/wp-json\/wp\/v2\/users\/7027"}],"replies":[{"embeddable":true,"href":"https:\/\/scholarblogs.emory.edu\/rsph-hpc\/wp-json\/wp\/v2\/comments?post=212"}],"version-history":[{"count":4,"href":"https:\/\/scholarblogs.emory.edu\/rsph-hpc\/wp-json\/wp\/v2\/pages\/212\/revisions"}],"predecessor-version":[{"id":227,"href":"https:\/\/scholarblogs.emory.edu\/rsph-hpc\/wp-json\/wp\/v2\/pages\/212\/revisions\/227"}],"wp:attachment":[{"href":"https:\/\/scholarblogs.emory.edu\/rsph-hpc\/wp-json\/wp\/v2\/media?parent=212"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}