[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-687564-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-687564-en":130,"doc-similar-687564":169},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","introduction-to-terminal-computing-in-optimization-and-statistics","Introduction to Terminal - Computing in Optimization and Statistics","","This document provides a foundational introduction to the command-line terminal, specifically focusing on the Bash shell as used in the context of computing for optimization and statistics. It covers the core rationale for utilizing a text-based interface, emphasizing efficiency, universal applicability, and essential remote server management capabilities. The material details fundamental navigation commands such as pwd, ls, and cd, alongside an overview of file management, shell redirection, and environment variable configuration to equip students and developers with the primary skills required for efficient command-line interaction and system navigation within a UNIX-like environment.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/introduction-to-terminal-computing-in-optimization-and-statistics/687564/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/introduction-to-terminal-computing-in-optimization-and-statistics/687564.png","ImageObject",300,407,{"name":42,"@type":43},"Nguyễn Văn Học","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-29","2026-11-07",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",6,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"What is the terminal?","Question",{"text":63,"@type":64},"The terminal is a text-based interface that allows users to interact directly with the computer system through commands.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"What is the primary function of the Bash shell?",{"text":68,"@type":64},"Bash acts as an interpreter that processes the commands input by the user into the terminal.",{"name":70,"@type":61,"acceptedAnswer":71},"Which commands are used for basic directory navigation?",{"text":72,"@type":64},"Common navigation commands include 'pwd' to print the working directory, 'ls' to list contents of a directory, and 'cd' to change the current working directory.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},687564,1794084152,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,104,109,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":97,"doc_module":4,"doc_module_name":25,"category_name":98,"show_sort_weight":99,"slug":100},5,"Comic",60,"comic",{"id":55,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":102,"slug":103},50,"technology",{"id":105,"doc_module":4,"doc_module_name":25,"category_name":106,"show_sort_weight":107,"slug":108},7,"Healthcare",40,"healthcare",{"id":110,"doc_module":4,"doc_module_name":25,"category_name":111,"show_sort_weight":112,"slug":113},8,"Research & Report",30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":97,"slug":129},19,"General","general",{"code":4,"msg":82,"data":131},{"doc_id":79,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":55,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":80,"read_time":144,"preview_page_count":55,"preview_urls":145},1374402739827,"https://ap-avatar.wpscdn.com/avatar/14000c97e7351f1a627?x-image-process=image/resize,m_fixed,w_180,h_180&k=1787885694763230660","Introduction to Terminal  \nComputing in Optimization and Statistics: Lecture 1  \nJackie Baek  \nMIT  \nJanuary 10, 2017  \nOverview  \nIntroduction & Motivation Navigation commands Files  \nBasic 􀀌le commands File path shortcuts Hidden Files  \n. bashrc / . bash   pro􀀌le  \nRedirection  \nSSH  \nSimple Pattern Matching How bash works  \nEnvironment Variables  \nDocumentation  \nKey Takeaways  \nWhat is the terminal?  \nWhat is the terminal?  \nI The terminal is a text-based interface to interact with the computer.  \nI Alternate names: console, shell, command line, command prompt  \nExample  \nI Say you want to delete all 􀀌les in a directory that end with  \n.pyc  \n$ rm * .pyc  \nI This is possible to do without the terminal, but it requires much more e􀀋ort.  \nWhy should I learn it?  \nI You can do almost everything using just the terminal.  \nI It can do many tasks faster than using a graphic interface.  \nI It is sometimes the only option (e.g. accessing a client's server using SSH) .  \nI It is universal.  \nTerminal Basics  \nI We will be using a shell called bash: a program that interpretsand processes the commands you input into the terminal.  \nI The shell is always in a working directory.  \nI A typical command looks like:  \n$ command \u003Cargument1> \u003Cargument2> . . .  \nBasic navigation commands  \npwd: prints working directory.  \n$ pwd  \n/Users/jackiebaek  \nBasic navigation commands  \npwd: prints working directory.  \n$ pwd  \n/Users/jackiebaek  \nls: lists directory contents.  \n$ ls  \nApplications Movies  \nDesktop Music  \nDocuments Pictures  \nBasic navigation commands  \npwd: prints working directory.  \n$ pwd  \n/Users/jackiebaek  \nls: lists directory contents.  \n$ ls  \nApplications Movies  \nDesktop Music  \nDocuments Pictures  \ncd \u003Cdirectory>: change working directory to new directory.  \n$ cd Documents  \n$ pwd  \n/Users/jackiebaek/Documents","cbCaigK9dXJ6HPpn","https://ap.wps.com/l/cbCaigK9dXJ6HPpn","pdf",902353,56,"English","# Overview\n# What is the terminal?\n# Why learn the terminal?\n# Terminal basics\n# Basic navigation commands","[{\"question\":\"What is the terminal?\",\"answer\":\"The terminal is a text-based interface that allows users to interact directly with the computer system through commands.\"},{\"question\":\"What is the primary function of the Bash shell?\",\"answer\":\"Bash acts as an interpreter that processes the commands input by the user into the terminal.\"},{\"question\":\"Which commands are used for basic directory navigation?\",\"answer\":\"Common navigation commands include 'pwd' to print the working directory, 'ls' to list contents of a directory, and 'cd' to change the current working directory.\"}]","Introduction to Terminal - Computing in Optimization and Statistics | PDF",141,[146,150,154,158,162,165],{"page_no":22,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/a67aa53a1cbfa89677a4e7346604ce1f.webp",983,737,{"page_no":26,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/2998e5630ee43aea8b40eea54c93591e.webp",982,736,{"page_no":30,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/7a9c280c626ec896dd30379dbae00dcb.webp",981,735,{"page_no":33,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/ddd11c33d3e48585edcb4f58267e44a8.webp",980,734,{"page_no":97,"url":163,"width":164,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/70801719a9e339087dabad529455538b.webp",979,{"page_no":55,"url":166,"width":167,"height":168},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/dceb6e86e46d46ee27054a3a911d8bd7.webp",978,733,{"list":170,"token":11},[171,177,183,189,195,201,208,214,220,226],{"doc_id":172,"doc_title":173,"file_type":137,"home_preview_img_url":174,"slug":175,"view_count":123,"category_name":29,"create_tm":176},671803,"Linux Tutorial - Version 1.21 - Learn Linux command basics","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229988776479/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111279&Signature=l1siDVGf7Krmd5HObpBCazzoH%2Bo%3D","linux-tutorial-version-121-learn-linux-command-basics",1793580864,{"doc_id":178,"doc_title":179,"file_type":137,"home_preview_img_url":180,"slug":181,"view_count":55,"category_name":29,"create_tm":182},699566,"CS2043-Unix Tools & Scripting - lecture 04","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230011312335/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111279&Signature=4T771Y8eMm64Egq6ddkJXd1xZNo%3D","cs2043-unix-tools-scripting-lecture-04",1794479393,{"doc_id":184,"doc_title":185,"file_type":137,"home_preview_img_url":186,"slug":187,"view_count":105,"category_name":29,"create_tm":188},719798,"An Introduction to UNIX - Michaelmas 2006 - Basic UNIX","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230023662331/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111279&Signature=9Gs0b8c4XS1W9aQ5fTIoeFugP1E%3D","an-introduction-to-unix-michaelmas-2006-basic-unix",1795032115,{"doc_id":190,"doc_title":191,"file_type":137,"home_preview_img_url":192,"slug":193,"view_count":97,"category_name":29,"create_tm":194},687581,"CS 45 - Lecture 6 - Command Line Environment","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001262546/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111279&Signature=tcujY7Xy3LWLm1AvHrmF7INoqsg%3D","cs-45-lecture-6-command-line-environment",1794084186,{"doc_id":196,"doc_title":197,"file_type":137,"home_preview_img_url":198,"slug":199,"view_count":33,"category_name":29,"create_tm":200},687562,"BASIC LINUX TERMINAL COMMANDS - Quick Introduction","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001262448/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111279&Signature=%2FPNpJRuirSF8oQLqgSDXO3VHB2Q%3D","basic-linux-terminal-commands-quick-introduction",1794084146,{"doc_id":202,"doc_title":203,"file_type":137,"home_preview_img_url":204,"slug":205,"view_count":206,"category_name":29,"create_tm":207},116713,"BEST of BASH - 2026 Edition - Unsung Command-Line Tools","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229834364500/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111279&Signature=2D6A5kENgUMo59Y4aPxmJjE4GrI%3D","best-of-bash-2026-edition-unsung-command-line-tools",41,1785663519,{"doc_id":209,"doc_title":210,"file_type":137,"home_preview_img_url":211,"slug":212,"view_count":33,"category_name":29,"create_tm":213},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=1796111279&Signature=5Vs2AekA63Ls5fbCeOXmS5VDGBI%3D","an-introduction-to-the-linux-command-shell-for-beginners-a-gnu-free-documentation-license-manual",1794479414,{"doc_id":215,"doc_title":216,"file_type":137,"home_preview_img_url":217,"slug":218,"view_count":105,"category_name":29,"create_tm":219},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=1796111279&Signature=zfxgnK5dbvDNZnIgxslmGYM3bWc%3D","unixlinux-command-reference-read-online-free",1792753398,{"doc_id":221,"doc_title":222,"file_type":137,"home_preview_img_url":223,"slug":224,"view_count":33,"category_name":29,"create_tm":225},687609,"Lecture 11 - Bash Shell, Command Line","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001262831/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111279&Signature=0csEAUH33Oq2IPeN15Wd2KGdkKE%3D","lecture-11-bash-shell-command-line",1794084276,{"doc_id":227,"doc_title":228,"file_type":137,"home_preview_img_url":229,"slug":230,"view_count":105,"category_name":29,"create_tm":231},699571,"BashGuide - About This Guide - Understanding Bash","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010750079/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111279&Signature=1ZtxnSzDxxgSDF36c6S2H2ERx8U%3D","bashguide-about-this-guide-understanding-bash",1794479404]