[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-687610-105":59,"doc-detail-687610-en":130,"doc-similar-687610":154},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","02-cmd_line-command-line-introduction","02-cmd_line - Command Line Introduction","","Command Line Introduction material explains why Linux systems favor text-based interaction and how to work efficiently through the shell. It contrasts graphical and textual interfaces, describes how shell and terminal programs support command/response workflows, and highlights tools such as SSH, text editors, and common commands. The content also covers shell context, directory navigation, file operations, editing shortcuts, and practical access to the JMU CS student server stu for project submission and development tasks, including using VS Code Remote SSH.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/02-cmd_line-command-line-introduction/687610/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/02-cmd_line-command-line-introduction/687610.png","ImageObject",300,407,{"name":92,"@type":93},"anakgang17","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-22","2026-11-07",true,{"@type":102,"interactionType":103,"userInteractionCount":24},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What is the difference between graphical and textual interfaces in Linux?","Question",{"text":112,"@type":113},"In Windows and macOS, the primary interface is graphical, while in Linux the primary interface is textual. The text interface is based on interacting with the operating system through commands.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"What does shell context mean in a command-line environment?",{"text":117,"@type":113},"In a shell, the conversation context is the working directory, which is the current location in the file system. Commands like pwd and ls help you see and list what’s in that directory.",{"name":119,"@type":110,"acceptedAnswer":120},"How can JMU CS students access the stu server from the command line?",{"text":121,"@type":113},"Students can connect by running an SSH command to stu, using PowerShell on Windows (or PuTTY/MobaXterm), Terminal on macOS (or iTerm2), and gnome-terminal on Debian-based Linux. The document specifically shows using ssh with the student username and stu.cs.jmu.edu.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},687610,1794084278,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":24,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":129,"read_time":144,"preview_page_count":14,"preview_urls":145},962090883568,"https://ap-avatar.wpscdn.com/davatar_a8503ba1806abce46bf441b54a3ca4cd","CS 261 Fall 2025  \nSharon Simmons, Professor  \n\"Matrix_desktop\" by alex26gc is licensed under CC BY-SA 2.0  \nCommand Line Introduction  \nLinux and the command line  \n● Linux is a popular operating system in computer science  \n– We’ll study operating systems in more detail later this semester  \n– For now, think of it as the low-level software that manages the hardware  \n● You interact with your operating system through an interface  \n– In Windows and macOS , the primary interface is graphical  \n– In Linux , the primary interface is textual  \nGraphical interfaces Textual interface  \n‘  \n\"Windows 10 Creators Update\" by okubax \"about-this-mac\" by Wang Liang  \nis licensed under CC BY 2.0 is licensed under CC BY-NC 2.0  \nWhy use the command line?  \n● M– ore speed  \n– Typing is often quicker than clicking Easy to create shortcuts for common tasks  \n● More power –– Write custom software / scripts  \nChain together programs (e.g. , w/ pipes)  \n● M– ore flexibility  \n– Command-line arguments to customize behavior Work remotely even if your connection is slow  \nComputer conversations  \n● Shell programs facilitate a command/response conversation with a computer system  \n– Example: sh , bash , zsh , PowerShell  \n● >echo $SHELL  \n● Terminal programs provide a visual interface  \n– Examples: Terminal , iTerm2 , gnome-terminal  \n● SSH clients provide remote access  \n– Examples: ssh , PuTTY , MobaXterm  \n● Text editors allow you to edit files  \n– Examples: nano , emacs , vim  \nContext is important  \n● In a shell, the conversation context is the working directory  \n– This is your current location in the file system (also called ‘.’)  \n– Use ‘ pwd’ to see the full path  \n– Use ‘ ls’ to list the files in the working directory  \n– Other useful commands:  \ncd \u003Cdir> \"change directory\" to the given directory name  \ncd .. change to the parent of the current directory  \ncd change to your home directory  \nless \u003Cfile> view a long file one screen at a time  \ncp \u003Csrc> \u003Cdest> copy a file from \"src\" to \"dest\"  \nmv \u003Csrc> \u003Cdest> move/rename a file from \"src\" to \"dest\"  \nrm \u003Cfile> remove a file  \nmkdir \u003Cdir> create a new directory  \nrmdir \u003Cdir> remove a directory (it must be empty first!) man \u003Ccommand> read help text about the given command  \ntar -xvf \u003Cfile> extract a “tarball” (similar to a zip file) nano \u003Cfile> open a file in the Nano text editor  \nCommand-line text editing  \n● Recommended: learn emacs or vim  \n– Run “emacs” and press Ctrl-’h’ followed by ‘t’  \n– Run “vimtutor”  \n● Alternative: just use nano  \n– Run “nano \u003Cfilename>” to open or create a file  \n– Useful key combinations:  \nCtrl-O Save (“Write Out”)  \nCtrl-X Exit  \nCtrl-W Search  \nCtrl-K Cut line  \nCtrl-U Paste (“uncut”) line  \nCtrl-C See current line number  \nCtrl-_ Go to a specific line number  \nJMU CS student server  \n● “stu” is a server running Linux that is available to all JMU CS students  \n– Fully-qualified name: [stu.cs.jmu.edu](stu.cs.jmu.edu)  \n– Pre-configured for CS 261  \n– Use for all project distribution and submission  \n– You should already have an account  \n● Username is your eID  \n● Password is the same as your eID password  \n● For technical support, email [cs-sysadmin@jmu.edu](cs-sysadmin@jmu.edu)  \n–(also CC me!)  \nAccessing stu  \n● Windows  \n– Run PowerShell (or download PuTTY or MobaXterm)  \n● macOS  \n– Run Terminal (or download iTerm2)  \n● Debian-based Linux (e.g. , Ubuntu , Mint)  \n– Run gnome-terminal  \n● Run this command:  \n– ssh [simmonsj@stu.cs.jmu.edu](simmonsj@stu.cs.jmu.edu) (use your eID!)  \nMore info here: [wiki.cs.jmu.edu/student/stu/basics](wiki.cs.jmu.edu/student/stu/basics)  \nWorking on CS 261 projects  \n● New for 2022: support for Visual Studio Code  \n– Install VS Code on your local computer  \n● [https://code.visualstudio.com](https://code.visualstudio.com)  \n– Install Remote SSH extension  \n– Set up password-less SSH access to stu  \n– Connect to stu in VS Code  \n● Submit on stu via the command line  \n– Video tutorials:  \n● [https://youtu.be/-RBHz-Ep6Y0](https","cbCaio2ullluC1KM","https://ap.wps.com/l/cbCaio2ullluC1KM","pdf",404451,13,"English","# Linux and the command line\n## Why use the command line?\n# Computer conversations\n## Shell programs and examples\n## Terminal programs and remote access\n# Context is important\n## pwd and ls\n## Common navigation and file commands\n# Command-line text editing\n## emacs, vim, and nano\n# JMU CS student server (stu)\n## Accessing stu from Windows/macOS/Linux\n## Working on CS 261 projects\n# \"Hello, World\" in C","[{\"question\":\"What is the difference between graphical and textual interfaces in Linux?\",\"answer\":\"In Windows and macOS, the primary interface is graphical, while in Linux the primary interface is textual. The text interface is based on interacting with the operating system through commands.\"},{\"question\":\"What does shell context mean in a command-line environment?\",\"answer\":\"In a shell, the conversation context is the working directory, which is the current location in the file system. Commands like pwd and ls help you see and list what’s in that directory.\"},{\"question\":\"How can JMU CS students access the stu server from the command line?\",\"answer\":\"Students can connect by running an SSH command to stu, using PowerShell on Windows (or PuTTY/MobaXterm), Terminal on macOS (or iTerm2), and gnome-terminal on Debian-based Linux. The document specifically shows using ssh with the student username and stu.cs.jmu.edu.\"}]","02-cmd_line - Command Line Introduction | PDF",33,[146,150],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/b249fc1e69ab2e17f34f93168c0c3911.webp",983,737,{"page_no":14,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/6c8e3e92fd2bd85fb548e777aac65cf2.webp",982,736,{"list":155,"token":66},[156,163,169,175,181,187,193,199,205,211],{"doc_id":157,"doc_title":158,"file_type":137,"home_preview_img_url":159,"slug":160,"view_count":161,"category_name":30,"create_tm":162},686346,"Intro2LinuxMFF lesson1 - Introduction to the Linux OS","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000739120/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=VydxuwH%2FhCsDjlQfwTTS%2Bj9kyQ8%3D","intro2linuxmff-lesson1-introduction-to-the-linux-os",11,1794037851,{"doc_id":164,"doc_title":165,"file_type":137,"home_preview_img_url":166,"slug":167,"view_count":19,"category_name":30,"create_tm":168},689174,"Introduction to Linux for IMS students","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000683042/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=%2FKvvd9ldiqwFWCBiyC8D6oJSwDc%3D","introduction-to-linux-for-ims-students",1794098404,{"doc_id":170,"doc_title":171,"file_type":137,"home_preview_img_url":172,"slug":173,"view_count":19,"category_name":30,"create_tm":174},699572,"An Introduction to the Linux Command Shell - For Beginners - A GNU Free Documentation License Manual","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230011312375/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=Skt4k%2Fu12oE3E3ApNveyzfhoXq0%3D","an-introduction-to-the-linux-command-shell-for-beginners-a-gnu-free-documentation-license-manual",1794479414,{"doc_id":176,"doc_title":177,"file_type":137,"home_preview_img_url":178,"slug":179,"view_count":34,"category_name":30,"create_tm":180},646204,"Unix/Linux Command Reference - read online free","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229971484885/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=uxYZEpNIZhFfSUfG%2B8aA%2B2H1Njk%3D","unixlinux-command-reference-read-online-free",1792753398,{"doc_id":182,"doc_title":183,"file_type":137,"home_preview_img_url":184,"slug":185,"view_count":81,"category_name":30,"create_tm":186},687655,"Linux Command Tips - 100+ Practical Solutions for Daily Operations","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001263127/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=nsvmzjHhiZdm4DFfqIjf3bNYLck%3D","linux-command-tips-100-practical-solutions-for-daily-operations",1794084421,{"doc_id":188,"doc_title":189,"file_type":137,"home_preview_img_url":190,"slug":191,"view_count":139,"category_name":30,"create_tm":192},671807,"A Practical Guide to Linux Commands - Editors and Shell Programming - Third Edition","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229988776589/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=%2BnBpi1g8IFiuxdbtFhxGcXLhfvY%3D","a-practical-guide-to-linux-commands-editors-and-shell-programming-third-edition",1793580874,{"doc_id":194,"doc_title":195,"file_type":137,"home_preview_img_url":196,"slug":197,"view_count":19,"category_name":30,"create_tm":198},687043,"The Konsole Handbook - Introduction - Terminal Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001242176/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=Sdl7YSlbn0h9uySBRbqOzdUT63I%3D","the-konsole-handbook-introduction-terminal-guide",1794079541,{"doc_id":200,"doc_title":201,"file_type":137,"home_preview_img_url":202,"slug":203,"view_count":29,"category_name":30,"create_tm":204},686589,"Useful Commands for Linux, Yocto & Git - Shortcuts and tricks","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000539861/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=1BlaNWE%2FgxOY%2F8a6Q0z3cT%2B95cI%3D","useful-commands-for-linux-yocto-git-shortcuts-and-tricks",1794057231,{"doc_id":206,"doc_title":207,"file_type":137,"home_preview_img_url":208,"slug":209,"view_count":19,"category_name":30,"create_tm":210},687563,"Mac OS X Server Command-Line Administration - For Version 10.3 or Later","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001262450/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=u58EyQcnDBZhL%2B%2FOKoayF%2BhYu0w%3D","mac-os-x-server-command-line-administration-for-version-103-or-later",1794084148,{"doc_id":212,"doc_title":213,"file_type":137,"home_preview_img_url":214,"slug":215,"view_count":161,"category_name":30,"create_tm":216},687654,"Linux Keyboard Shortcuts - Terminal Shortcuts","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001263126/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=sIvTSYQ9Suv87QbOZAYHkvkCbWg%3D","linux-keyboard-shortcuts-terminal-shortcuts",1794084419]