[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-719798-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-719798-en":130,"doc-similar-719798":170},{"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","an-introduction-to-unix-michaelmas-2006-basic-unix","An Introduction to UNIX - Michaelmas 2006 - Basic UNIX","","An Introduction to UNIX explains how to become effective in a UNIX environment through deliberate learning and practice. It introduces the command-line terminal, contrasts CLI and GUI capabilities, and describes core shell behavior such as prompts and directory navigation. The guide covers simple file operations (cp, mv, rm), safe deletion cautions, directory tidiness, tree-based paths, and key usability techniques like cursor recall, filename completion, and wildcards. It also details ls output basics, permissions via chmod, and the UNIX one-thing philosophy with pipes.",{"@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/an-introduction-to-unix-michaelmas-2006-basic-unix/719798/",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/an-introduction-to-unix-michaelmas-2006-basic-unix/719798.png","ImageObject",300,407,{"name":42,"@type":43},"dbqoiu","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-28","2026-11-18",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",7,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"How should a beginner approach learning UNIX effectively?","Question",{"text":63,"@type":64},"Spend time discovering UNIX through courses, online resources, books, and asking experienced people. Learning from those who know little is discouraged, as it rarely leads to good outcomes.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"Why is the terminal/CLI considered powerful in UNIX?",{"text":68,"@type":64},"A CLI is more powerful and flexible than a graphical interface, and commands typed in a terminal can be turned into scripts, reused, run remotely, or executed in the background.",{"name":70,"@type":61,"acceptedAnswer":71},"What are the basic commands for copying, renaming, and deleting files?",{"text":72,"@type":64},"Use cp to copy, mv to move (rename), and rm to remove. Deletion is irreversible, so rm requires careful use.","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},719798,1795032115,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,105,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":102,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":103,"slug":104},6,50,"technology",{"id":55,"doc_module":4,"doc_module_name":25,"category_name":106,"show_sort_weight":107,"slug":108},"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":102,"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":102,"preview_urls":145},3985747862462,"https://ap-avatar.wpscdn.com/davatar_3d24733baf745e90a7e4bdd5f77d97b2","An Introduction to UNIX  \nMichael Rutter mjr19@cam  \nMichaelmas 2006  \n(Minor updates 2009 – 2021)  \nBasic UNIX  \nOne cannot teach in a few dozen pages all the UNIX you need in order to operate effectively in a UNIX-based environment. Time spent discovering more about UNIX, by:  \n􀀏 attending free courses (e.g. those provided by the University Information Services: [http://www.training.cam.ac.uk/ucs/](http://www.training.cam.ac.uk/ucs/))  \n􀀏 reading on-line resources (including the computing section of TCM's intranet site!)  \n􀀏 reading books  \n􀀏 asking those who know more  \nis time well spent.  \nTime spent learning from those who know little is less well spent. The blind leading the blind rarely has an auspicious outcome.  \nThe ﬁrst part of this booklet, in large type, is pretty basic. The second half exists to convince you that there are (many) more useful tricks which are worth ﬁnding: it is not exhaustive!  \nCLI or GUI?  \nThe terminal is a most useful and necessary application. It provides a command-line interface to the operating system. A command line interface (CLI) is generally more powerful and ﬂexible than a graphical interface. And commands typed in a terminal can trivially be turned into a script which can then be run multiple times, or on a remote supercomputer via a queueing system, or set to run in the background whilst one logs out.  \nThe terminal itself is a resize-able window, with a vertical scroll-bar, in which a shell or command interpreter runs. The latter obeys our commandsand produces a prompt consisting of the machine name followed by the name of the current directory. (A directory is what the real world calls that which Windows and MacOS call a `folder'.)  \nMany alternatives to the default terminal exist, all with slightly different features. All take much more memory and start-up time than the simplexterm, which dates from the 1980s. More modern alternatives include gnome-terminal, xfce4-terminal and konsole.  \nOn many systems (including TCM!), not all installed programs have entries in the menu system, and the command line is the most obvious way to ﬁnd them. The amount of typing required in a terminal is not that great once one understands the virtues of laziness (see page 5) .  \nSimple File Operations  \nFiles can be copied, moved (renamed) and removed (deleted) using the commands cp, mv and rm. Their names are listed by ls.  \nBe Careful!: deletion is irreversible!  \npc30:˜$ cp thesis .tex new_book .tex  \npc30:˜$ ls  \nmail results .dat  \nnew_book .tex thesis .tex  \nIt may be possible to recover ﬁles deleted from one's home directory from the backup. Please ask a CO.  \nTidiness  \nIt is best to place ﬁles in tidy groups in subdirectories, rather than having everything in one directory. The command mkdir creates a directory, andrmdir will remove one provided it is empty. The cd command changes the current directory.  \npc30:˜$ mkdir test  \npc30:˜$ ls  \nmail results .dat thesis .tex  \nnew_book .tex test pc30:˜$ cd test  \npc30:˜/test$ ls  \npc30:˜/test$  \nTrees  \nDirectories form a tree: each directory has one parent directory, and may have multiple subdirectories. A ﬁlename is assumed to refer to the current directory. Other locations can be speciﬁed by forming a path using `/' to separate the components of the path, and ` .. ' to refer to a directory's parent.  \npc30:˜$ ls-Fa/ results .dat  \npc30:˜$ cp results .dat a/results .dat  \npc30:˜$ ls-RF  \n. :  \na/ results .dat  \n. /a:  \nresults .dat pc30:˜$ mkdir b  \npc30:˜$ cd b  \npc30:˜/b$ cp . . /a/results .dat .  \npc30:˜/b$ cd . .  \npc30:˜$  \nls-F distinguishes directories by placing a `/' after their names.  \nls-R lists all subdirectories in a recursive fashion.  \ncd typed on its own returns one to one's home directory.  \nLaziness  \nYou have probably discovered that the cursor keys allow you to edit the current command and recall previous commands in an intuitive manner.  \nNote also that pressing fTAB g when part-way through typing a ﬁlename will cause the r","cbCaiihXwOSwrraB","https://ap.wps.com/l/cbCaiihXwOSwrraB","pdf",191763,52,"English","# Basic UNIX\n## CLI or GUI?\n## Simple File Operations\n## Tidiness\n## Trees\n## Laziness\n## More ls\n## One Thing at a Time","[{\"question\":\"How should a beginner approach learning UNIX effectively?\",\"answer\":\"Spend time discovering UNIX through courses, online resources, books, and asking experienced people. Learning from those who know little is discouraged, as it rarely leads to good outcomes.\"},{\"question\":\"Why is the terminal/CLI considered powerful in UNIX?\",\"answer\":\"A CLI is more powerful and flexible than a graphical interface, and commands typed in a terminal can be turned into scripts, reused, run remotely, or executed in the background.\"},{\"question\":\"What are the basic commands for copying, renaming, and deleting files?\",\"answer\":\"Use cp to copy, mv to move (rename), and rm to remove. Deletion is irreversible, so rm requires careful use.\"}]","An Introduction to UNIX - Michaelmas 2006 - Basic UNIX | PDF",131,[146,150,154,158,162,166],{"page_no":22,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/e4ad4ee173d26e87671cd4a2a2e10809.webp",983,1390,{"page_no":26,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/30cd0ae81fbb208e24723ffe7203e610.webp",982,1388,{"page_no":30,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/3b68a62fa3744a8f3bf6dbf61823c1ca.webp",981,1387,{"page_no":33,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/20c413f35bbbe53ac7a63e9b870bab55.webp",980,1385,{"page_no":97,"url":163,"width":164,"height":165},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/46ac1df2f229cc64d3ce405c58dadcf5.webp",979,1384,{"page_no":102,"url":167,"width":168,"height":169},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/e2882cdb1c88d9c493405d85b0f9520d.webp",978,1383,{"list":171,"token":11},[172,178,184,190,196,202,209,215,221,227],{"doc_id":173,"doc_title":174,"file_type":137,"home_preview_img_url":175,"slug":176,"view_count":33,"category_name":29,"create_tm":177},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=1796111459&Signature=XSANAg%2FALbH5l7pZSLmbrii9OJQ%3D","basic-linux-terminal-commands-quick-introduction",1794084146,{"doc_id":179,"doc_title":180,"file_type":137,"home_preview_img_url":181,"slug":182,"view_count":30,"category_name":29,"create_tm":183},687680,"Campus Network Design and Security Workshop - A few Linux basics - Ubuntu Linux 14.04 LTS 32-bit","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000649992/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111459&Signature=VxzXmviLIzTeVEqFX%2BAXVw8SSwE%3D","campus-network-design-and-security-workshop-a-few-linux-basics-ubuntu-linux-1404-lts-32-bit",1794084504,{"doc_id":185,"doc_title":186,"file_type":137,"home_preview_img_url":187,"slug":188,"view_count":97,"category_name":29,"create_tm":189},689147,"Learning the vi and Vim Editors - Seventh Edition","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001521964/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111459&Signature=%2FT1VQj9hs7YWWKnCgwwKJRRv4pU%3D","learning-the-vi-and-vim-editors-seventh-edition",1794097598,{"doc_id":191,"doc_title":192,"file_type":137,"home_preview_img_url":193,"slug":194,"view_count":102,"category_name":29,"create_tm":195},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=1796111459&Signature=priaaI6rNm5LeDW8NDBH9SoI4yU%3D","cs2043-unix-tools-scripting-lecture-04",1794479393,{"doc_id":197,"doc_title":198,"file_type":137,"home_preview_img_url":199,"slug":200,"view_count":97,"category_name":29,"create_tm":201},692887,"CA Spectrum - Command Line Interface User Guide - Release 9.3","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230005006892/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111459&Signature=wz%2B54LeWZHT2MPMFau2Ud%2F4KDUo%3D","ca-spectrum-command-line-interface-user-guide-release-93",1794241754,{"doc_id":203,"doc_title":204,"file_type":137,"home_preview_img_url":205,"slug":206,"view_count":207,"category_name":29,"create_tm":208},671808,"The Linux Programmer’s Guide - Version 0.4 - March 1995","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229988776636/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111459&Signature=AgnNO%2BNYopYWeP9jbUYUuYQc4n0%3D","the-linux-programmers-guide-version-04-march-1995",12,1793580874,{"doc_id":210,"doc_title":211,"file_type":137,"home_preview_img_url":212,"slug":213,"view_count":102,"category_name":29,"create_tm":214},733023,"Knowledge Gateway MCP Integration Guide - v3 - integration steps","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031782552/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111459&Signature=NF%2FWKnvAmcKmdI1esaInLD7bvuw%3D","knowledge-gateway-mcp-integration-guide-v3-integration-steps",1795383349,{"doc_id":216,"doc_title":217,"file_type":137,"home_preview_img_url":218,"slug":219,"view_count":102,"category_name":29,"create_tm":220},687585,"Vim Editor Tutorial - Chapter 1 Basic Editing","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001262640/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111459&Signature=Ii%2FHVuJyupclz1JRqJlBjxoTxI0%3D","vim-editor-tutorial-chapter-1-basic-editing",1794084209,{"doc_id":222,"doc_title":223,"file_type":137,"home_preview_img_url":224,"slug":225,"view_count":55,"category_name":29,"create_tm":226},721427,"FortiOS 7.4.8 Release Notes - Upgrade information","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024101383/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111459&Signature=2okzmsvJpuWWWLZoB2JCxobjT1g%3D","fortios-748-release-notes-upgrade-information",1795044810,{"doc_id":228,"doc_title":229,"file_type":137,"home_preview_img_url":230,"slug":231,"view_count":22,"category_name":29,"create_tm":232},760308,"Table of Useful R commands","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230044228940/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111459&Signature=KEEgBB9ObGccbAshKot891Ik%2Bqs%3D","table-of-useful-r-commands",1795899489]