{"id":67,"date":"2013-07-14T13:24:12","date_gmt":"2013-07-14T18:24:12","guid":{"rendered":"http:\/\/ivanx.com\/blog\/?p=67"},"modified":"2023-09-10T11:27:15","modified_gmt":"2023-09-10T16:27:15","slug":"apple-ii-cloud-learn-some-unix","status":"publish","type":"post","link":"https:\/\/appleii.ivanx.com\/a2cloud\/apple-ii-cloud-learn-some-unix\/","title":{"rendered":"11. Learn some Unix"},"content":{"rendered":"<p>Once you&#8217;re logged into your Raspberry Pi, you can download disk images and use them with VSDRIVE or transfer them with ADTPro.<\/p>\n<p>To do so, you&#8217;ll need to know some Unix. Just think of it as fancy ProDOS. Everything you type at a prompt is a Unix command, either built-in, or a program that gets executed. Most commands can take additional arguments (parameters) separated by spaces to modify how they operate. Note that everything in Unix is (usually) case-sensitive &#8212; that is, &#8220;ls&#8221; is not the same thing as &#8220;LS&#8221;.<\/p>\n<p>Here&#8217;s some basics:<\/p>\n<p><code>pwd<\/code> will print the path of the current directory (like PREFIX)<\/p>\n<p><code>cd \/path\/name<\/code> will change the directory to \/path\/name (like PREFIX \/PATH\/NAME)<\/p>\n<p><code>ls <\/code>will list the files in the current directory (like CAT)<\/p>\n<p><code>ls -lp<\/code> will list the files in the current directory in long format (like CATALOG)<\/p>\n<p><code>cp sourceFilePath targetFilePath<\/code> will copy a file<\/p>\n<p><code>mv filePath newFilePath<\/code> will move or rename a file (like RENAME)<\/p>\n<p><code>rm filePath<\/code> will delete a file (like DELETE)<\/p>\n<p><code>mkdir dirPath<\/code> will create a subdirectory (like CREATE)<\/p>\n<p><code>rmdir dirPath<\/code> will delete a subdirectory (like DELETE)<\/p>\n<p><code>logout<\/code>\u00a0logs you out<\/p>\n<p><code>sudo shutdown -h now<\/code>\u00a0will shut down your Pi<\/p>\n<p><code>sudo shutdown -r now<\/code>\u00a0will restart your Pi<\/p>\n<p>&nbsp;<\/p>\n<p>There are also three &#8220;special&#8221; directories, indicated by a single or double period, or a tilde:<\/p>\n<p><code>.<\/code> means the current directory<\/p>\n<p><code>..<\/code> means the parent (enclosing) directory<\/p>\n<p><code>~<\/code> means your home directory (on the Pi&#8217;s default user, it&#8217;s \/home\/pi)<\/p>\n<p>&nbsp;<\/p>\n<p>A couple of tips:<\/p>\n<p>pressing up-arrow (or solidApple-up-arrow in ProTERM on a IIe\/IIc, or in Z-Link) \u00a0at the command prompt will display previously typed commands<\/p>\n<p>pressing ctrl-A while editing a command will take you to the beginning of a line<\/p>\n<p>pressing ctrl-E while editing will take you to the end of a line<\/p>\n<p>&nbsp;<\/p>\n<p>A2CLOUD provides some specialized commands as well, some of which will be covered in upcoming posts. To see a full list, type <code>a2cloud-help<\/code>.<\/p>\n<p>If you need additional explanation of a command and its arguments, you can sometimes type &#8220;command -h&#8221; or &#8220;command &#8211;help&#8221;, and for most commands, extensive help is available by typing &#8220;man command&#8221;.<\/p>\n<p>This is just the tip of the iceberg. There are lots and lots of Unix commands for every purpose imaginable. If you think there are others which should be included here, please mention them in the comments.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Once you&#8217;re logged into your Raspberry Pi, you can download disk images and use them with VSDRIVE or transfer them with ADTPro. To do so, you&#8217;ll need to know some Unix. Just think of it as fancy ProDOS. Everything you type at a prompt is a Unix command, either built-in, or a program that gets [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,5,2,4],"tags":[],"_links":{"self":[{"href":"https:\/\/appleii.ivanx.com\/a2cloud\/wp-json\/wp\/v2\/posts\/67"}],"collection":[{"href":"https:\/\/appleii.ivanx.com\/a2cloud\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/appleii.ivanx.com\/a2cloud\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/appleii.ivanx.com\/a2cloud\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/appleii.ivanx.com\/a2cloud\/wp-json\/wp\/v2\/comments?post=67"}],"version-history":[{"count":30,"href":"https:\/\/appleii.ivanx.com\/a2cloud\/wp-json\/wp\/v2\/posts\/67\/revisions"}],"predecessor-version":[{"id":856,"href":"https:\/\/appleii.ivanx.com\/a2cloud\/wp-json\/wp\/v2\/posts\/67\/revisions\/856"}],"wp:attachment":[{"href":"https:\/\/appleii.ivanx.com\/a2cloud\/wp-json\/wp\/v2\/media?parent=67"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/appleii.ivanx.com\/a2cloud\/wp-json\/wp\/v2\/categories?post=67"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/appleii.ivanx.com\/a2cloud\/wp-json\/wp\/v2\/tags?post=67"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}